Quellcode durchsuchen

bugfix in credit payment receipt, the image was causing an error

Jose Miguel Ledon Nieblas vor 9 Jahren
Ursprung
Commit
25ee995dd1
1 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen
  1. 2 2
      app/views/sales/receipt_credit_payment.pdf.erb

+ 2 - 2
app/views/sales/receipt_credit_payment.pdf.erb

@@ -2,9 +2,9 @@
   	<header class='document-header'>
     	<h1 class='text-center'>
     		<% if sale.get_pointsale.img_pointsale.present? %>
-      			<%= wicked_pdf_image_tag_for_public(sale.get_pointsale.img_pointsale(:medium), :style => "margin-top:10px") %>
+      			<%= wicked_pdf_image_tag_for_public(sale.get_pointsale.img_pointsale_url, :style => "margin-top:10px") %>
   			<% elsif @pos_config.ticket_img.present? %>
-      			<%= wicked_pdf_image_tag_for_public(@pos_config.ticket_img(:medium), :style => "margin-top:10px") %>
+      			<%= wicked_pdf_image_tag_for_public(@pos_config.ticket_img_url, :style => "margin-top:10px") %>
       		<% end %>
     	</h1>
 	    <p style="margin-top:10px">