fixed at bitp and oqs print

This commit is contained in:
Yan
2017-07-03 17:40:12 +06:30
parent dac4c59007
commit ed0e627f34
6 changed files with 29 additions and 15 deletions

View File

@@ -1,7 +1,7 @@
class OrderSummaryPdf < Prawn::Document
attr_accessor :label_width,:price_column_width,:page_width, :page_height, :margin, :price_width, :item_width, :header_font_size, :item_font_size,:item_height,:qty_width,:total_width,:item_description_width
def initialize(print_settings,order, print_status, order_items = nil,alt_name)
self.page_width = 210
self.page_width = 180
self.page_height = 1450
self.margin = 5
self.price_width = 40 # No Need for item
@@ -10,7 +10,7 @@ class OrderSummaryPdf < Prawn::Document
self.item_width = self.page_width - (self.qty_width - self.margin)
self.item_height = 15
self.item_description_width = self.page_width - (self.price_width + self.qty_width + self.total_width)
self.label_width=100
self.label_width=90
super(:margin => [print_settings.heading_space, self.margin, self.margin, self.margin], :page_size => [self.page_width, self.page_height])