oqs print format for 76

This commit is contained in:
Yan
2017-07-05 15:29:34 +06:30
parent 7cee40746d
commit 7bf9ce64b4
2 changed files with 5 additions and 5 deletions

View File

@@ -2,13 +2,13 @@ class OrderItemPdf < Prawn::Document
include ActionView::Helpers::NumberHelper
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_item, print_status, options, alt_name)
self.page_width = 180
self.page_width = 185
self.page_height = 1450
self.margin = 0
self.price_width = 40 # No Need for item
self.qty_width = 30
self.qty_width = 35
self.total_width = 40 # No Need for item
self.item_width = self.page_width - self.qty_width
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=90

View File

@@ -2,11 +2,11 @@ class OrderSummaryPdf < Prawn::Document
include ActionView::Helpers::NumberHelper
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 = 180
self.page_width = 190
self.page_height = 1450
self.margin = 0
self.price_width = 40 # No Need for item
self.qty_width = 30
self.qty_width = 35
self.total_width = 40 # No Need for item
self.item_width = self.page_width - (self.qty_width - self.margin)
self.item_height = 15