Browse Source

Agregar en informe de ventas por médico, ciudad, celular y correo

sebas 2 years ago
parent
commit
f41dc6fa3e

+ 6 - 0
static/src/js/reports/report_guide_smile_analytic.js

@@ -557,6 +557,9 @@ function report_guide_smile_analytic(reporting){
                               id : invoice.id,
                               number : (invoice.number),
                               doctor_name : partner[0].medic[1],
+                              mobile : self.valorNull(partner[0].mobile),
+                              email : self.valorNull(partner[0].email),
+                              city : self.valorNull(partner[0].city),
                               product_id : item.product_id[0],
                               product_name : item.product_id[1],
                               ean13 : self.valorNull(product.ean13),
@@ -849,6 +852,9 @@ function report_guide_smile_analytic(reporting){
                                 number: {columnWidth: 24},
                                 date_create :{columnWidth: 17},
                                 partner_name:{columnWidth: 20},
+                                mobile : {columnWidth: 12},
+                                email : {columnWidth: 15},
+                                city : {columnWidth: 15},
                                 ean13:{columnWidth: 10},
                                 doctor_name :{columnWidth: 40},
                                 product_name :{columnWidth: 40},

+ 3 - 0
static/src/reports/report_guide_smile_analytic.xml

@@ -118,6 +118,9 @@
             <th data-field="number" data-sortable="true">Factura</th>
             <th data-field="date_create">Fecha</th>
             <th data-field="partner_name" data-sortable="true">Cliente</th>
+            <th data-field="mobile" data-sortable="true">Celular</th>
+            <th data-field="email" data-sortable="true">Email</th>
+            <th data-field="city" data-sortable="true">Ciudad</th>
             <th data-field="doctor_name" data-sortable="true">Doctor</th>
             <th data-field="ean13" data-sortable="true">Cod. Barra</th>
             <th data-field="product_name" >Producto</th>