update reprint

This commit is contained in:
Aung Myo
2017-06-21 18:19:44 +06:30
parent d2549df2e9
commit d9d07a1cdc
6 changed files with 22 additions and 11 deletions

View File

@@ -250,14 +250,16 @@ class ReceiptBillPdf < Prawn::Document
end
move_down 5
end
stroke_horizontal_rule
end
# show member information
def member_info(member_info,customer_name,rebate_amount,sale_data)
if rebate_amount != nil
if rebate_amount["status"] == true
stroke_horizontal_rule
rebate_amount["data"].each do |res|
if res["receipt_no"]== sale_data.receipt_no && res["status"]== "Rebate"