|
|
@@ -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);
|
|
|
}
|