From 3e5fc00da93d493d158d1e803a057078901a3224 Mon Sep 17 00:00:00 2001 From: phyusin Date: Wed, 29 Nov 2017 13:42:33 +0630 Subject: [PATCH] change bold in close cashier --- app/pdf/close_cashier_pdf.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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