deisy 5 лет назад
Родитель
Сommit
5e0eb10e42
1 измененных файлов с 14 добавлено и 12 удалено
  1. 14 12
      static/src/js/reports/report_ventas_fidelizacion.js

+ 14 - 12
static/src/js/reports/report_ventas_fidelizacion.js

@@ -500,13 +500,14 @@ function report_ventas_fidelizacion(reporting){
             _.each(PosOrder[0], function(item){
 
                 var utc = moment.utc(item.date,'YYYY-MM-DD h:mm:ss A');
+
                 data.push({
                     id:item.id,
                     store: self.getStoreName(item.store_id),
                     origin:'',
                     number:item.name,
                     type: 'TPV',
-                    date:moment(utc._d).format('DD/MM/YYYY'),
+                    date:moment(utc._d).format('DD/MM/YYYY H:mm:ss'),
                     sale_type: 'Tienda',
                     user_name:item.user_name,
                     user_id:item.user_id,
@@ -667,21 +668,22 @@ function report_ventas_fidelizacion(reporting){
                 var pdf_type = 'l';
                 var pdf_name = 'fidelizacion_de_ventas_';
                 var pdf_columnStyles = {
-                    store:{halign:'left'},
-                    user_name:{ halign:'left'},
-                    date:{halign:'center'},
-                    type:{halign:'left'},
+                    store:{columnWidth:17, halign:'left'},
+                    user_name:{columnWidth: 22, halign:'left'},
+                    date:{columnWidth: 16, halign:'center'},
+                    type:{columnWidth: 16,halign:'left'},
                     number:{halign:'left'},
                     supplier_invoice_number:{halign:'left'},
-                    origin:{ halign:'left'},
-                    customer_name:{ halign:'left'},
-                    customer_ruc:{ halign:'left'},
-                    phone:{ halign:'right'},
-                    mobile:{ halign:'right'},
+                    origin:{columnWidth: 15, halign:'left'},
+                    customer_name:{columnWidth: 25, halign:'left'},
+                    customer_ruc:{columnWidth: 15, halign:'left'},
+                    phone:{columnWidth: 19, halign:'right'},
+                    mobile:{columnWidth: 20, halign:'right'},
                     email:{ halign:'right'},
                     total:{columnWidth: 22, halign:'right'},
-                    pos:{ halign:'center'},
-                    sale:{ halign:'center'},
+                    sale_type:{columnWidth: 15, halign:'center'},
+                    pos:{columnWidth: 10,halign:'center'},
+                    sale:{columnWidth: 14, halign:'center'},
                     sale_amount:{columnWidth: 22, halign:'right'},
                 };
                 /*