|
@@ -482,6 +482,13 @@ function report_cuenta_resumen_dna(reporting){
|
|
|
_.each(AccountInvoice,function(item2) {
|
|
|
if(item2.is_anticipo == false){
|
|
|
var total_sale = 0;
|
|
|
+ var forma = 'Contado';
|
|
|
+ if (item2.contado == true){
|
|
|
+ forma = 'Contado'
|
|
|
+ };
|
|
|
+ if (item2.credito == true){
|
|
|
+ forma = 'Credito'
|
|
|
+ };
|
|
|
var partner= self.getResPartner(item2.partner_id[0]);
|
|
|
var currency = self.getResCurrency(item2.company_currency[0]).shift();
|
|
|
data.push({
|
|
@@ -497,6 +504,7 @@ function report_cuenta_resumen_dna(reporting){
|
|
|
partner_mobile: self.valorNull(item2.partner_id[4]),
|
|
|
invoice_name : self.valorNull(item2.number),
|
|
|
supplier_invoice_number: self.valorNull(item2.supplier_invoice_number),
|
|
|
+ forma: forma,
|
|
|
date_due: moment(item2.date_due).format('DD/MM/YYYY'),
|
|
|
amount_total: accounting.formatMoney(item2.amount_total_currency, '', CurrencyBase.decimal_places, CurrencyBase.thousands_separator, CurrencyBase.decimal_separator),
|
|
|
amount_pagado:accounting.formatMoney(item2.amount_total - item2.residual,'',CurrencyBase.decimal_places,CurrencyBase.thousands_separator,CurrencyBase.decimal_separator),
|
|
@@ -517,7 +525,7 @@ function report_cuenta_resumen_dna(reporting){
|
|
|
decimal_separator: CurrencyBase.decimal_separator,
|
|
|
|
|
|
});
|
|
|
- }
|
|
|
+ }
|
|
|
});
|
|
|
});
|
|
|
|
|
@@ -596,9 +604,10 @@ function report_cuenta_resumen_dna(reporting){
|
|
|
partner_email: {columnWidth: 37, halign:'left'},
|
|
|
invoice_name : {columnWidth: 25, halign:'center'},
|
|
|
supplier_invoice_number : {columnWidth: 24, halign:'center'},
|
|
|
- date_due: {columnWidth: 24, halign:'center'},
|
|
|
- amount_total: {columnWidth: 21, halign:'right'},
|
|
|
- amount_pagado : {columnWidth: 21, halign:'right'},
|
|
|
+ forma: forma,
|
|
|
+ date_due: {columnWidth: 23, halign:'center'},
|
|
|
+ amount_total: {columnWidth: 20, halign:'right'},
|
|
|
+ amount_pagado : {columnWidth: 20, halign:'right'},
|
|
|
amount_residual : {columnWidth: 18, halign:'right'},
|
|
|
user_name : {columnWidth: 21, halign:'center'},
|
|
|
|