ソースを参照

Retocar informe de comision.

SEBAS 3 ヶ月 前
コミット
10a07226db
1 ファイル変更1 行追加2 行削除
  1. 1 2
      static/src/js/reports/report_customer_payment.js

+ 1 - 2
static/src/js/reports/report_customer_payment.js

@@ -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,