To add the condition for CloseCashierCustmisePdf

This commit is contained in:
San Wai Lwin
2018-02-26 17:49:19 +06:30
parent 5dac521605
commit 7d8442fd09
3 changed files with 45 additions and 4 deletions

View File

@@ -416,7 +416,7 @@ class CloseCashierCustomisePdf < Prawn::Document
#end total amount by Account
#start total other charges amount
if total_other_charges > 0
if total_other_charges.present?
y_position = cursor
bounding_box([0,y_position], :width =>self.item_description_width, :height => 20) do
text "Total Other Charges :", :size => self.item_font_size, :align => :right