|
@@ -80,7 +80,7 @@ function report_ventas_fidelizacion(reporting){
|
|
|
=================================
|
|
|
*/
|
|
|
self.ResStore = IntialSQL.stores;
|
|
|
- console.log(self.ResStore);
|
|
|
+ // console.log(self.ResStore);
|
|
|
if(self.ResStore.length > 1){
|
|
|
self.$el.find('#current-store').append('<option value="9999999">Todas las sucursales</option>');
|
|
|
_.each(self.ResStore,function(item){
|
|
@@ -480,11 +480,11 @@ function report_ventas_fidelizacion(reporting){
|
|
|
getStoreName:function(store_id){
|
|
|
var self = this;
|
|
|
|
|
|
- console.log(store_id);
|
|
|
+ // console.log(store_id);
|
|
|
var ResStore = _.filter(self.ResStore,function (item) {
|
|
|
return item.id == store_id;
|
|
|
});
|
|
|
- console.log(ResStore);
|
|
|
+ // console.log(ResStore);
|
|
|
//return ResStore[0].name;
|
|
|
return ResStore.name;
|
|
|
},
|
|
@@ -520,6 +520,7 @@ function report_ventas_fidelizacion(reporting){
|
|
|
customer_name:self.valorNull(item.customer_name),
|
|
|
phone:self.valorNull(item.phone),
|
|
|
mobile:self.valorNull(item.mobile),
|
|
|
+ city:self.valorNull(item.city),
|
|
|
email:self.valorNull(item.email),
|
|
|
pos:PosOrder[0].length,
|
|
|
sale: AccountInvoice[0].length,
|
|
@@ -573,6 +574,7 @@ function report_ventas_fidelizacion(reporting){
|
|
|
customer_name:self.valorNull(item.customer_name),
|
|
|
phone:self.valorNull(item.phone),
|
|
|
mobile:self.valorNull(item.mobile),
|
|
|
+ city:self.valorNull(item.city),
|
|
|
email:self.valorNull(item.email),
|
|
|
pos: PosOrder[0].length,
|
|
|
sale: AccountInvoice[0].length,
|
|
@@ -684,6 +686,7 @@ function report_ventas_fidelizacion(reporting){
|
|
|
customer_ruc:{columnWidth: 15, halign:'left'},
|
|
|
phone:{columnWidth: 19, halign:'right'},
|
|
|
mobile:{columnWidth: 20, halign:'right'},
|
|
|
+ city:{columnWidth: 20, halign:'left'},
|
|
|
email:{ halign:'right'},
|
|
|
total:{columnWidth: 22, halign:'right'},
|
|
|
sale_type:{columnWidth: 15, halign:'center'},
|