Modified in all pdf can access Header & Item Font Size from Database
This commit is contained in:
@@ -4,6 +4,8 @@ class StockResultPdf < Prawn::Document
|
||||
def initialize(printer_settings, stockcheck, stockcheck_items, checker_name, shop_details)
|
||||
self.page_width = printer_settings.page_width #PrintSetting.where("name = ?","Close Cashier").first.page_width
|
||||
self.page_height = printer_settings.page_height
|
||||
self.header_font_size = printer_settings.header_font_size
|
||||
self.item_font_size = printer_settings.item_font_size
|
||||
self.margin = 5
|
||||
self.price_width = 40
|
||||
self.qty_width = 20
|
||||
@@ -35,9 +37,7 @@ class StockResultPdf < Prawn::Document
|
||||
end
|
||||
|
||||
# font "public/fonts/Zawgyi-One.ttf"
|
||||
# font "public/fonts/padauk.ttf"
|
||||
self.header_font_size = 10
|
||||
self.item_font_size = 8
|
||||
# font "public/fonts/padauk.ttf"
|
||||
|
||||
header(shop_details)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user