update menu cateogry and myanmar font in xls
This commit is contained in:
@@ -187,7 +187,7 @@ class ReceiptBillPdf < Prawn::Document
|
||||
total_qty = 0.0
|
||||
sale_items.each do |item|
|
||||
# check for item not to show
|
||||
show_price = Lookup.find_by_lookup_type("show_price").value
|
||||
show_price = Lookup.find_by_lookup_type("show_price")
|
||||
|
||||
sub_total += item.price #(item.qty*item.unit_price) - comment for room charges
|
||||
if item.status != 'Discount' && item.qty > 0
|
||||
@@ -198,7 +198,7 @@ class ReceiptBillPdf < Prawn::Document
|
||||
price = item.unit_price
|
||||
product_name = item.product_name
|
||||
|
||||
if show_price.to_i>0
|
||||
if !show_price.nil? && show_price.value.to_i>0
|
||||
item_row(item,precision,delimiter,product_name,price,qty ,total_price)
|
||||
else
|
||||
if item.price != 0
|
||||
|
||||
Reference in New Issue
Block a user