|
|
@@ -336,7 +336,6 @@ function report_customer_payment (reporting){
|
|
|
cobrado = (item.amount);
|
|
|
var AccountInvoice = self.getAccountInvoice(item.reference);
|
|
|
_.each(AccountInvoice,function(item2) {
|
|
|
-
|
|
|
var AccountInvoiceLine = self.getAccountInvoiceLine(item2.id);
|
|
|
_.each(AccountInvoiceLine, function(line_item){
|
|
|
if(item2.type == 'out_invoice'){
|
|
|
@@ -384,7 +383,7 @@ function report_customer_payment (reporting){
|
|
|
journal_id: item.journal_id[0],
|
|
|
partner_id: item.partner_id[0],
|
|
|
user_id : self.valorNull(item2.user_id[0]),
|
|
|
- user_name : item2.user_id.name,
|
|
|
+ user_name : item2.user_id[1],
|
|
|
in_amount: cobrado,
|
|
|
tcomision: tcomision,
|
|
|
tcomision_vendedor: tcomision,
|