a5 print format done
This commit is contained in:
@@ -4,13 +4,13 @@ class ReceiptBillA5Pdf < Prawn::Document
|
||||
def initialize(printer_settings, sale_items, sale_data, customer_name, item_price_by_accounts, discount_price_by_accounts, member_info = nil,rebate_amount = nil,shop_details, printed_status,current_balance)
|
||||
self.page_width = printer_settings.page_width
|
||||
self.page_height = printer_settings.page_height
|
||||
self.margin = 20
|
||||
self.margin = 15
|
||||
self.price_width = 120
|
||||
self.qty_width = 50
|
||||
self.total_width = 120
|
||||
self.item_width = self.page_width - ((self.qty_width + self.price_width + self.total_width))
|
||||
self.item_height = 25
|
||||
self.item_description_width = (self.page_width-20) / 2
|
||||
self.item_description_width = (self.page_width-40) / 2
|
||||
self.label_width = 150
|
||||
|
||||
self.description_width = 500
|
||||
@@ -494,11 +494,11 @@ class ReceiptBillA5Pdf < Prawn::Document
|
||||
move_down 10
|
||||
|
||||
y_position = cursor
|
||||
bounding_box([0, y_position], :width =>self.label_width) do
|
||||
bounding_box([0, y_position], :width =>self.item_description_width) do
|
||||
text "#{printed_status}",:style => :bold, :size => header_font_size,:align => :left
|
||||
end
|
||||
bounding_box([self.description_width,y_position], :width =>self.description_width, :height => self.item_height) do
|
||||
text "Thank You! See you Again", :left_margin => -5, :size => self.item_font_size,:align => :left
|
||||
bounding_box([self.item_description_width,y_position], :width =>self.item_description_width, :height => self.item_height) do
|
||||
text "Thank You! See you Again", :left_margin => -5, :size => self.item_font_size,:align => :right
|
||||
end
|
||||
|
||||
move_down 10
|
||||
|
||||
Reference in New Issue
Block a user