diff --git a/app/pdf/close_cashier_pdf.rb b/app/pdf/close_cashier_pdf.rb index 57ef7702..4dee2151 100755 --- a/app/pdf/close_cashier_pdf.rb +++ b/app/pdf/close_cashier_pdf.rb @@ -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