update menu cateogry and myanmar font in xls

This commit is contained in:
Aung Myo
2018-05-21 15:30:15 +06:30
parent 073e054666
commit f5ad727c08
18 changed files with 139 additions and 23 deletions

View File

@@ -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