kbzpay payment updated

This commit is contained in:
Zoey
2019-06-26 13:35:27 +06:30
parent 2e306a6339
commit 52a375f2a4
6 changed files with 35 additions and 17 deletions

View File

@@ -244,6 +244,16 @@ class CloseCashierPdf < Prawn::Document
end
end
if other.kbzpay_amount && other.kbzpay_amount.to_f > 0
y_position = cursor
bounding_box([0,y_position], :width =>self.item_description_width, :height => 20) do
text "KBZ Payment :", :size => self.item_font_size, :align => :right
end
bounding_box([self.item_description_width,y_position], :width =>self.price_width, :height => 20) do
text "#{ number_with_precision(other.kbzpay_amount, :precision => precision.to_i, :delimiter => delimiter)}", :size => self.item_font_size, :align => :right
end
end
if other.junctionpay_amount && other.junctionpay_amount.to_f > 0
y_position = cursor
bounding_box([0,y_position], :width =>self.item_description_width, :height => 20) do