change func: for receipt bill
This commit is contained in:
@@ -207,7 +207,9 @@ class ReceiptBillA5Pdf < Prawn::Document
|
|||||||
# check for item not to show
|
# check for item not to show
|
||||||
if item.price != 0
|
if item.price != 0
|
||||||
sub_total += item.price #(item.qty*item.unit_price) - comment for room charges
|
sub_total += item.price #(item.qty*item.unit_price) - comment for room charges
|
||||||
total_qty += item.qty
|
if item.status != 'Discount' && item.qty > 0
|
||||||
|
total_qty += item.qty
|
||||||
|
end
|
||||||
qty = item.qty
|
qty = item.qty
|
||||||
total_price = item.price #item.qty*item.unit_price - comment for room charges
|
total_price = item.price #item.qty*item.unit_price - comment for room charges
|
||||||
price = item.unit_price
|
price = item.unit_price
|
||||||
|
|||||||
@@ -201,7 +201,9 @@ class ReceiptBillPdf < Prawn::Document
|
|||||||
# check for item not to show
|
# check for item not to show
|
||||||
if item.price != 0
|
if item.price != 0
|
||||||
sub_total += item.price #(item.qty*item.unit_price) - comment for room charges
|
sub_total += item.price #(item.qty*item.unit_price) - comment for room charges
|
||||||
total_qty += item.qty
|
if item.status != 'Discount' && item.qty > 0
|
||||||
|
total_qty += item.qty
|
||||||
|
end
|
||||||
qty = item.qty
|
qty = item.qty
|
||||||
total_price = item.price #item.qty*item.unit_price - comment for room charges
|
total_price = item.price #item.qty*item.unit_price - comment for room charges
|
||||||
price = item.unit_price
|
price = item.unit_price
|
||||||
|
|||||||
Reference in New Issue
Block a user