fix get_order_items_details method in order_item and add taxes in receipt

This commit is contained in:
Yan
2017-06-15 17:57:58 +06:30
parent e085adab74
commit 03feae5b0f
6 changed files with 48 additions and 22 deletions

View File

@@ -157,10 +157,11 @@ $(document).ready(function(){
if(sale_item_id != null){
ajax_url = "/origami/" + sale_item_id + "/discount";
sub_total = $("#"+sale_item_id).children().find("#item-total-price").text();
}
// For Percentage Discount
if(discount_type == 1){
if(discount_type == 1){
discount_amount=(sub_total*discount_value)/100;
}