update login To show dashboard screen with available features based on user type

This commit is contained in:
Aung Myo
2017-07-24 17:42:34 +06:30
parent 8db4a8cc05
commit a7cbea5dbb
7 changed files with 158 additions and 156 deletions

View File

@@ -6,7 +6,7 @@ class OrderItemPdf < Prawn::Document
self.page_height = 1450
self.margin = 0
self.price_width = 40 # No Need for item
self.qty_width = 35
self.qty_width = 40
self.total_width = 40 # No Need for item
self.item_width = self.page_width - (self.qty_width - self.margin)
self.item_height = 15
@@ -80,7 +80,7 @@ class OrderItemPdf < Prawn::Document
text "#{order_item.item_name}", :size => self.item_font_size,:align => :left
end
bounding_box([self.item_width,y_position], :width => self.qty_width) do
bounding_box([self.item_width-4,y_position], :width => self.qty_width) do
text "[#{number_with_precision(order_item.qty.to_i, :precision => precision.to_i)}]", :size => self.item_font_size,:align => :left
end