Browse Source

Retoque de ticket pos

sebas 4 years ago
parent
commit
546232a565
3 changed files with 4 additions and 4 deletions
  1. 1 1
      static/src/js/customer.js
  2. 1 1
      static/src/js/screen.js
  3. 2 2
      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',
-                    ['fax'],
+                    ['ruc'],
                 );
 
             }).then(function(partners){

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

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

+ 2 - 2
static/src/xml/pos.xml

@@ -39,8 +39,8 @@
                     <t t-if="order.attributes.client.name">
                       Cliente: <t t-esc="order.attributes.client.name"/><br />
                     </t>
-                    <t t-if="order.attributes.client.fax">
-                      <!-- N° de legajo: <t t-esc="order.attributes.client.fax"/><br /> -->
+                    <t t-if="order.attributes.client.ruc">
+                       R.U.C. N°: <t t-esc="order.attributes.client.ruc"/><br />
                     </t>
                     <t t-if="order.attributes.client.phone">
                       Teléfono: <t t-esc="order.attributes.client.phone"/><br />