Browse Source

Retocar informe de comision.

SEBAS 3 months ago
parent
commit
5b4e2b14c4
1 changed files with 2 additions and 2 deletions
  1. 2 2
      static/src/js/reports/report_customer_payment.js

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

@@ -341,13 +341,13 @@ function report_customer_payment (reporting){
                       _.each(AccountInvoiceLine, function(line_item){
                         if(item2.type == 'out_invoice'){
                                 product_name = line_item.product_id.name + " " +line_item.product_id.name,
-                                total_comision = 5;
+                                total_comision = line_item.product_id.comision_vendedor;
                                 // total_price = total_sale * line_item.quantity;
                                 // tcomision = (total_price*total_comision)/100;
                         }
                         if(item2.type == 'out_refund'){
                           product_name = line_item.product_id.name + " " +line_item.product_id.name,
-                          total_comision = 5;
+                          total_comision = line_item.product_id.comision_vendedor;
                           // total_price = -(total_sale * line_item.quantity);
                           // tcomision = - ((total_price*total_comision)/100);
                         }