fix dining and change price for total price not (qty*unit_price) for sale item in bill
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user