tweak order_summary and receipt bill pdfs
This commit is contained in:
@@ -252,7 +252,7 @@ class ReceiptBillPdf < Prawn::Document
|
||||
show_price = Lookup.find_by_lookup_type("show_price")
|
||||
sale_items.each do |item|
|
||||
# check for item not to show
|
||||
|
||||
|
||||
if item.status != 'Discount' && item.qty > 0
|
||||
if !show_price.nil? && show_price.value.to_i > 0 && item.price == 0
|
||||
total_qty += item.qty
|
||||
@@ -263,6 +263,10 @@ class ReceiptBillPdf < Prawn::Document
|
||||
end
|
||||
end
|
||||
|
||||
if item.qty < 0 && item.status == 'void'
|
||||
total_qty += item.qty
|
||||
end
|
||||
|
||||
product_name = item.product_name
|
||||
|
||||
# if item.status = 'promotion' && (item.remark =='promotion nett price' || item.remark == 'promotion discount')
|
||||
|
||||
Reference in New Issue
Block a user