update shop note

This commit is contained in:
Aung Myo
2018-08-31 13:49:39 +06:30
parent fef6a4ccd0
commit efcef4d27b
7 changed files with 48 additions and 12 deletions

View File

@@ -92,6 +92,10 @@ class ReceiptBillA5Pdf < Prawn::Document
sign(sale_data)
if shop_details.note != nil
shop_note(printed_status)
end
footer(printed_status)
end
@@ -647,6 +651,19 @@ class ReceiptBillA5Pdf < Prawn::Document
end
def shop_note(shop)
move_down line_move
stroke_horizontal_rule
move_down line_move
move_down line_move
y_position = cursor
text "#{shop.note}", :size => self.item_font_size,:align => :left
move_down line_move
end
def footer(printed_status)
move_down line_move
stroke_horizontal_rule