change bold in close cashier

This commit is contained in:
phyusin
2017-11-29 13:42:33 +06:30
parent 75ee51fd9f
commit 3e5fc00da9

View File

@@ -229,10 +229,10 @@ class CloseCashierPdf < Prawn::Document
y_position = cursor
bounding_box([0,y_position], :width =>self.item_description_width, :height => 20) do
text "Total :", :styles => [:bold], :size => self.item_font_size, :align => :right
text "Total :", :style => :bold, :size => self.item_font_size, :align => :right
end
bounding_box([self.item_description_width,y_position], :width =>self.price_width, :height => 20) do
text "#{@total_payment.round(2)}", :styles => [:bold], :size => self.item_font_size, :align => :right
text "#{@total_payment.round(2)}", :style => :bold, :size => self.item_font_size, :align => :right
end
# end other payment details
@@ -261,10 +261,10 @@ class CloseCashierPdf < Prawn::Document
y_position = cursor
bounding_box([0,y_position], :width =>self.item_description_width, :height => 20) do
text "Net Sales :", :styles => [:bold], :size => self.item_font_size, :align => :right
text "Net Sales :", :style => :bold, :size => self.item_font_size, :align => :right
end
bounding_box([self.item_description_width,y_position], :width =>self.price_width, :height => 20) do
text "#{shift_sale.nett_sales}", :styles => [:bold] , :size => self.item_font_size, :align => :right
text "#{shift_sale.nett_sales}", :style => :bold , :size => self.item_font_size, :align => :right
end
#end for service charges and commercial tax
#COMMENTED FOR NO NEED AND NOT CORRECT WHEN OTHER CHARGES