update receipt no detail report

This commit is contained in:
Thein Lin Kyaw
2020-01-03 16:43:05 +06:30
parent b3eead7aa2
commit 8b5478cf27
2 changed files with 54 additions and 53 deletions

View File

@@ -136,7 +136,7 @@
<% sale_payments = result.sale_payments %>
<% if sale_payments.length > 0%>
<% sale_payments.each do |rec| %>
<% next if rec.payment_method == 'credit_note' && result.payments_for_credits_amount < rec.payment_amount %>
<% if rec.payment_amount > 0 %>
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
@@ -155,6 +155,7 @@
</tr>
<% end %>
<% end %>
<% end %>
<% if result.amount_changed != 0 %>
<tr>
<td>&nbsp;</td>

View File

@@ -125,7 +125,7 @@
</tr>
<% end %>
<% sale_payments = SalePayment.get_sale_payments(result) %>
<% sale_payments = result.sale_payments %>
<% if sale_payments.length > 0%>
<% sale_payments.each do |rec| %>
<%if rec.payment_amount.to_f > 0 %>