no change but edit line space in bill pdf

This commit is contained in:
Yan
2017-08-10 14:15:20 +06:30
parent c522ba3cab
commit 02c71f1961

View File

@@ -238,11 +238,9 @@ class ReceiptBillPdf < Prawn::Document
end end
def sale_payment(sale_data,precision,delimiter) def sale_payment(sale_data,precision,delimiter)
stroke_horizontal_rule stroke_horizontal_rule
move_down 5 move_down 5
SalePayment.where('sale_id = ?', sale_data.sale_id).each do |payment| SalePayment.where('sale_id = ?', sale_data.sale_id).each do |payment|
y_position = cursor y_position = cursor
if payment.payment_method == "paypar" if payment.payment_method == "paypar"
bounding_box([0,y_position], :width =>self.item_description_width, :height => self.item_height) do bounding_box([0,y_position], :width =>self.item_description_width, :height => self.item_height) do
@@ -270,14 +268,11 @@ class ReceiptBillPdf < Prawn::Document
end end
move_down 5 move_down 5
end end
end end
# show member information # show member information
def member_info(member_info,customer_name,rebate_amount,sale_data,precision,delimiter) def member_info(member_info,customer_name,rebate_amount,sale_data,precision,delimiter)
if rebate_amount != nil if rebate_amount != nil
if rebate_amount["status"] == true if rebate_amount["status"] == true
stroke_horizontal_rule stroke_horizontal_rule
total = 0 total = 0
@@ -429,6 +424,5 @@ class ReceiptBillPdf < Prawn::Document
move_down 5 move_down 5
end end
end end