|
@@ -451,13 +451,15 @@ function pos_screens(instance, module){ //module is instance.point_of_sale
|
|
|
var percent_10 = 0;
|
|
|
var percent_5 = 0;
|
|
|
if(item.product.taxes_id.length == 0){
|
|
|
- exempt = item.price
|
|
|
+ exempt = item.quantity * item.price
|
|
|
}
|
|
|
if(item.product.taxes_id == 3){
|
|
|
- percent_10 = item.price / 1.1;
|
|
|
+ // percent_10 = item.price / 1.1;
|
|
|
+ percent_10 = item.quantity * item.price
|
|
|
}
|
|
|
if(item.product.taxes_id == 1){
|
|
|
- percent_5 = item.price / 1.05;
|
|
|
+ // percent_5 = item.price / 1.05;
|
|
|
+ percent_5 = item.quantity * item.price
|
|
|
}
|
|
|
data.push({
|
|
|
qty: item.quantity,
|