|
|
@@ -377,14 +377,17 @@ function report_customer_payment (reporting){
|
|
|
product_name : product_name,
|
|
|
amount_in: accounting.formatMoney(cobrado,'', CurrencyBase.decimal_places, CurrencyBase.thousands_separator, CurrencyBase.decimal_separator),
|
|
|
total_comision: accounting.formatMoney(tcomision,'', CurrencyBase.decimal_places, CurrencyBase.thousands_separator, CurrencyBase.decimal_separator),
|
|
|
+ total_comision_vendedor: accounting.formatMoney(tcomision,'', CurrencyBase.decimal_places, CurrencyBase.thousands_separator, CurrencyBase.decimal_separator),
|
|
|
date: item.date,
|
|
|
empl_name: self.valorNull(item.employee_id),
|
|
|
employee_name: self.valorNull(item.employee_id2),
|
|
|
journal_id: item.journal_id[0],
|
|
|
partner_id: item.partner_id[0],
|
|
|
-
|
|
|
+ user_id : self.valorNull(item.user_id[0]),
|
|
|
+ user_name : item.user_id[1],
|
|
|
in_amount: cobrado,
|
|
|
tcomision: tcomision,
|
|
|
+ tcomision_vendedor: tcomision,
|
|
|
|
|
|
//TOTAL FOOTER CONFIGURATION
|
|
|
decimal_places : CurrencyBase.decimal_places,
|
|
|
@@ -429,11 +432,13 @@ function report_customer_payment (reporting){
|
|
|
|
|
|
var total_price = totalPriceFormatter(row);
|
|
|
var tcomision = totalUtilityFormatter(row);
|
|
|
+ var tcomision_vendedor = totalUtilityvenFormatter(row);
|
|
|
|
|
|
row.push({
|
|
|
date_voucher: 'Totales',
|
|
|
total_price: total_price,
|
|
|
tcomision:tcomision,
|
|
|
+ tcomision_vendedor:tcomision_vendedor,
|
|
|
})
|
|
|
|
|
|
if (action === 'pdf') {
|
|
|
@@ -461,9 +466,10 @@ function report_customer_payment (reporting){
|
|
|
partner : {columnWidth: 21, halign:'left'},
|
|
|
product_name : {columnWidth: 20, halign:'left'},
|
|
|
amount_in : {columnWidth: 18, halign:'right'},
|
|
|
- tcomision : {columnWidth: 18, halign:'right'},
|
|
|
- empl_name: {columnWidth: 18, halign:'left'},
|
|
|
employee_name : {columnWidth: 18, halign:'left'},
|
|
|
+ tcomision : {columnWidth: 18, halign:'right'},
|
|
|
+ user_name : {columnWidth: 18, halign:'left'},
|
|
|
+ tcomision_vendedor : {columnWidth: 18, halign:'right'},
|
|
|
};
|
|
|
/*
|
|
|
============================================================
|