update shop note
This commit is contained in:
@@ -93,6 +93,10 @@ class ReceiptBillPdf < Prawn::Document
|
||||
|
||||
sign(sale_data)
|
||||
|
||||
if shop_details.note != nil
|
||||
shop_note(shop_details)
|
||||
end
|
||||
|
||||
footer(printed_status)
|
||||
end
|
||||
|
||||
@@ -647,6 +651,19 @@ class ReceiptBillPdf < 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