This commit is contained in:
@@ -405,12 +405,16 @@ class ReceiptBillA5Pdf < Prawn::Document
|
||||
y_position = cursor
|
||||
if payment.payment_method == "paypar"
|
||||
bounding_box([0,y_position], :width =>self.description_width, :height => self.item_height) do
|
||||
text "Redeem Payment", :size => self.item_font_size,:align => :left
|
||||
end
|
||||
text "Redeem Payment", :size => self.item_font_size,:align => :left
|
||||
end
|
||||
else
|
||||
payment_method = payment.payment_method.capitalize
|
||||
if payment.payment_method == "paymal"
|
||||
payment_method ='Card'
|
||||
end
|
||||
bounding_box([0,y_position], :width =>self.description_width, :height => self.item_height) do
|
||||
text "#{payment.payment_method.capitalize} Payment", :size => self.item_font_size,:align => :left
|
||||
end
|
||||
text "#{payment_method} Payment", :size => self.item_font_size,:align => :left
|
||||
end
|
||||
end
|
||||
|
||||
bounding_box([self.description_width,y_position], :width =>self.label_width) do
|
||||
|
||||
Reference in New Issue
Block a user