ソースを参照

Ticket impresion oikoite

sebas 4 年 前
コミット
9190dafa11
3 ファイル変更6 行追加3 行削除
  1. 1 1
      static/src/js/customer.js
  2. 2 1
      static/src/js/screen.js
  3. 3 1
      static/src/xml/pos.xml

+ 1 - 1
static/src/js/customer.js

@@ -9,7 +9,7 @@ function pos_customer(instance, module){
             loaded = loaded.then(function(){
                 return self.fetch(
                     'res.partner',
-                    ['ruc','mobile'],
+                    ['ruc','mobile','street'],
                 );
 
             }).then(function(partners){

+ 2 - 1
static/src/js/screen.js

@@ -227,7 +227,8 @@ function pos_screens(instance, module){ //module is instance.point_of_sale
             this.reload_partners().then(function(){
                 var partner = self.pos.db.get_partner_by_id(partner_id);
                 partner['ruc'] = fields.ruc;
-                partner['fax'] = fields.fax;
+                partner['mobile'] = fields.mobile;
+                partner['street'] = fields.street;
                 if (partner) {
                     self.new_client = partner;
                     self.toggle_save_button();

+ 3 - 1
static/src/xml/pos.xml

@@ -7,6 +7,7 @@
                     <img t-att-src="logo" style="width:100%;"/>
                 </div> -->
                 <center>OIKOITE PIZZERIA</center>
+                <center>0973 558806</center>
                 <br/>
                 <div class="pos-center-align"><t t-esc="new Date().toString(Date.CultureInfo.formatPatterns.shortDate + ' ' +
                     Date.CultureInfo.formatPatterns.longTime)"/>
@@ -25,7 +26,8 @@
                 <t t-if="order.attributes.client">
 
                     Cliente: <t t-esc="order.attributes.client.name ? order.attributes.client.name : ''"/><br />
-                    N° de legajo: <t t-esc="order.attributes.client.mobile ? order.attributes.client.mobile : ''"/>
+                    Dirección: <t t-esc="order.attributes.client.street ? order.attributes.client.street : ''"/><br />
+                    Contacto: <t t-esc="order.attributes.client.mobile ? order.attributes.client.mobile : ''"/>
                 </t>
                 <br/>
                 <br />