From 31ec2f959b09817f75424b27be0f03c449e73081 Mon Sep 17 00:00:00 2001 From: phyusin Date: Wed, 29 Nov 2017 14:47:23 +0630 Subject: [PATCH] change JCB and Master in close cashier pdf --- app/pdf/close_cashier_pdf.rb | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/app/pdf/close_cashier_pdf.rb b/app/pdf/close_cashier_pdf.rb index 67ab06fe..290c33c5 100755 --- a/app/pdf/close_cashier_pdf.rb +++ b/app/pdf/close_cashier_pdf.rb @@ -183,14 +183,6 @@ class CloseCashierPdf < Prawn::Document text "#{other.visa_amount.round(2)}", :size => self.item_font_size, :align => :right 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 bounding_box([0,y_position], :width =>self.item_description_width, :height => 20) do 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 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 bounding_box([0,y_position], :width =>self.item_description_width, :height => 20) do text "Reedem Payment :", :size => self.item_font_size, :align => :right