|
@@ -580,6 +580,13 @@ function report_sale_resumen_dna(reporting){
|
|
_.each(AccountInvoice,function(item2) {
|
|
_.each(AccountInvoice,function(item2) {
|
|
var total_sale = 0;
|
|
var total_sale = 0;
|
|
var partner= self.getResPartner(item2.partner_id[0]);
|
|
var partner= self.getResPartner(item2.partner_id[0]);
|
|
|
|
+ var forma = 'Contado';
|
|
|
|
+ if (item.contado == true){
|
|
|
|
+ forma = 'Contado'
|
|
|
|
+ };
|
|
|
|
+ if (item.credito == true){
|
|
|
|
+ forma = 'Credito'
|
|
|
|
+ };
|
|
var AccountInvoiceLine = self.getAccountInvoiceLine(item2.id);
|
|
var AccountInvoiceLine = self.getAccountInvoiceLine(item2.id);
|
|
_.each(AccountInvoiceLine, function(line_item){
|
|
_.each(AccountInvoiceLine, function(line_item){
|
|
if(item2.is_anticipo == false){
|
|
if(item2.is_anticipo == false){
|
|
@@ -617,6 +624,7 @@ function report_sale_resumen_dna(reporting){
|
|
partner_email: self.valorNull(item2.partner_id[3]),
|
|
partner_email: self.valorNull(item2.partner_id[3]),
|
|
partner_mobile: self.valorNull(item2.partner_id[4]),
|
|
partner_mobile: self.valorNull(item2.partner_id[4]),
|
|
invoice_name : self.valorNull(item2.number),
|
|
invoice_name : self.valorNull(item2.number),
|
|
|
|
+ forma: forma,
|
|
supplier_invoice_number: self.valorNull(item2.supplier_invoice_number),
|
|
supplier_invoice_number: self.valorNull(item2.supplier_invoice_number),
|
|
product_code : self.valorNull(line_item.product_id.default_code),
|
|
product_code : self.valorNull(line_item.product_id.default_code),
|
|
barcode : self.valorNull(line_item.product_id.ean13),
|
|
barcode : self.valorNull(line_item.product_id.ean13),
|
|
@@ -711,12 +719,13 @@ function report_sale_resumen_dna(reporting){
|
|
partner_name : {columnWidth: 23, halign:'center'},
|
|
partner_name : {columnWidth: 23, halign:'center'},
|
|
invoice_name : {columnWidth: 25, halign:'center'},
|
|
invoice_name : {columnWidth: 25, halign:'center'},
|
|
supplier_invoice_number : {columnWidth: 28, halign:'center'},
|
|
supplier_invoice_number : {columnWidth: 28, halign:'center'},
|
|
|
|
+ forma : {columnWidth: 13, halign:'center'},
|
|
product_brand_id : {columnWidth: 21, halign:'center'},
|
|
product_brand_id : {columnWidth: 21, halign:'center'},
|
|
barcode : {columnWidth: 23, halign:'center'},
|
|
barcode : {columnWidth: 23, halign:'center'},
|
|
- product_code : {columnWidth: 21, halign:'center'},
|
|
|
|
|
|
+ product_code : {columnWidth: 19, halign:'center'},
|
|
product_name : {columnWidth: 40, halign:'center'},
|
|
product_name : {columnWidth: 40, halign:'center'},
|
|
item_price : {columnWidth: 21, halign:'right'},
|
|
item_price : {columnWidth: 21, halign:'right'},
|
|
- qty : {columnWidth: 16, halign:'center'},
|
|
|
|
|
|
+ qty : {columnWidth: 14, halign:'center'},
|
|
total_price : {columnWidth: 21, halign:'right'},
|
|
total_price : {columnWidth: 21, halign:'right'},
|
|
user_name : {columnWidth: 23, halign:'center'},
|
|
user_name : {columnWidth: 23, halign:'center'},
|
|
|
|
|