change JCB and Master in close cashier pdf
This commit is contained in:
@@ -183,14 +183,6 @@ class CloseCashierPdf < Prawn::Document
|
|||||||
text "#{other.visa_amount.round(2)}", :size => self.item_font_size, :align => :right
|
text "#{other.visa_amount.round(2)}", :size => self.item_font_size, :align => :right
|
||||||
end
|
end
|
||||||
|
|
||||||
y_position = cursor
|
|
||||||
bounding_box([0,y_position], :width =>self.item_description_width, :height => 20) do
|
|
||||||
text "JCB 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 "#{other.jcb_amount.round(2)}", :size => self.item_font_size, :align => :right
|
|
||||||
end
|
|
||||||
|
|
||||||
y_position = cursor
|
y_position = cursor
|
||||||
bounding_box([0,y_position], :width =>self.item_description_width, :height => 20) do
|
bounding_box([0,y_position], :width =>self.item_description_width, :height => 20) do
|
||||||
text "Master Payment :", :size => self.item_font_size, :align => :right
|
text "Master Payment :", :size => self.item_font_size, :align => :right
|
||||||
@@ -199,6 +191,14 @@ class CloseCashierPdf < Prawn::Document
|
|||||||
text "#{other.master_amount.round(2)}", :size => self.item_font_size, :align => :right
|
text "#{other.master_amount.round(2)}", :size => self.item_font_size, :align => :right
|
||||||
end
|
end
|
||||||
|
|
||||||
|
y_position = cursor
|
||||||
|
bounding_box([0,y_position], :width =>self.item_description_width, :height => 20) do
|
||||||
|
text "JCB 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 "#{other.jcb_amount.round(2)}", :size => self.item_font_size, :align => :right
|
||||||
|
end
|
||||||
|
|
||||||
y_position = cursor
|
y_position = cursor
|
||||||
bounding_box([0,y_position], :width =>self.item_description_width, :height => 20) do
|
bounding_box([0,y_position], :width =>self.item_description_width, :height => 20) do
|
||||||
text "Reedem Payment :", :size => self.item_font_size, :align => :right
|
text "Reedem Payment :", :size => self.item_font_size, :align => :right
|
||||||
|
|||||||
Reference in New Issue
Block a user