change dailysale report and check tax in add to existing

This commit is contained in:
phyusin
2018-05-17 11:21:38 +06:30
parent dc23df673f
commit 62dec82bd8
6 changed files with 23 additions and 31 deletions

View File

@@ -116,7 +116,9 @@
<td><b><%= number_with_precision(discount_amt, precision: precision.to_i ,delimiter: delimiter) rescue '-' %></b></td>
<% if !@sale_taxes.empty?
@sale_taxes.each do |tax| %>
<td><b><%= number_with_precision(tax.st_amount, precision: precision.to_i ,delimiter: delimiter) rescue '-' %></b></td>
<td>
<b><%= number_with_precision(tax.st_amount, precision: precision.to_i ,delimiter: delimiter) rescue '-' %></b>
</td>
<% end %>
<% else %>
<% @tax_profiles.each do |tax| %>