align center for receipt
This commit is contained in:
@@ -92,7 +92,7 @@ class ReceiptBillA5Pdf < Prawn::Document
|
||||
|
||||
sign(sale_data)
|
||||
|
||||
if shop_details.note != nil
|
||||
if shop_details.note && !shop_details.note.nil?
|
||||
shop_note(printed_status)
|
||||
end
|
||||
|
||||
@@ -659,7 +659,7 @@ class ReceiptBillA5Pdf < Prawn::Document
|
||||
move_down line_move
|
||||
y_position = cursor
|
||||
|
||||
text "#{shop.note}", :size => self.item_font_size,:align => :left
|
||||
text "#{shop.note}", :size => self.item_font_size,:align => :center
|
||||
|
||||
move_down line_move
|
||||
end
|
||||
|
||||
@@ -659,7 +659,7 @@ class ReceiptBillPdf < Prawn::Document
|
||||
move_down line_move
|
||||
y_position = cursor
|
||||
|
||||
text "#{shop.note}", :size => self.item_font_size,:align => :left
|
||||
text "#{shop.note}", :size => self.item_font_size,:align => :center
|
||||
|
||||
move_down line_move
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user