fix dining and change price for total price not (qty*unit_price) for sale item in bill

This commit is contained in:
Yan
2017-11-08 17:12:36 +06:30
parent 482d0559eb
commit d928deaa2f
2 changed files with 23 additions and 19 deletions

View File

@@ -145,9 +145,9 @@ class ReceiptBillPdf < Prawn::Document
sale_items.each do |item|
# check for item not to show
if item.price != 0
sub_total += (item.qty*item.unit_price)
sub_total += item.price #(item.qty*item.unit_price) - comment for room charges
qty = item.qty
total_price = item.qty*item.unit_price
total_price = item.price #item.qty*item.unit_price - comment for room charges
price = item.unit_price
product_name = item.product_name