update shop note
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user