Prechádzať zdrojové kódy

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

Jose Miguel Ledon Nieblas 9 rokov pred
rodič
commit
25ee995dd1

+ 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">