diff --git a/app/views/reports/receipt_no_detail/index.html.erb b/app/views/reports/receipt_no_detail/index.html.erb index 9f5841a2..c766108b 100755 --- a/app/views/reports/receipt_no_detail/index.html.erb +++ b/app/views/reports/receipt_no_detail/index.html.erb @@ -136,23 +136,24 @@ <% 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 %> -
| <%= t("views.right_panel.detail.shift_name") %> = <%= @shift_from %> - <%= @shift_to %> ( <%= cashier_name %> ) | <%= t("views.right_panel.detail.shift_name") %> | <%= t("views.right_panel.detail.table") %> | <%= t("views.right_panel.detail.receipt_no") %> | -<%= t :cashier %> <%= t("views.right_panel.detail.name") %> | +<%= t :cashier %> <%= t("views.right_panel.detail.name") %> | <%= t("views.right_panel.detail.revenue") %> | -+ | @@ -47,7 +47,7 @@ | <%= @shift_from %> - <%= @shift_to %> | <%= table_type %> - <%= table_name %> | <%= result.receipt_no rescue '-' %> | -<%= result.cashier_name rescue '-' %> | +<%= result.cashier_name rescue '-' %> | <%=result.grand_total%> | @@ -66,8 +66,8 @@ <% if item.price.to_i < 0.to_i %> <% if item.qty.to_i < 0.to_i%> [PROMO QTY]<%= item.product_name rescue '-' %> - <% else %> - [PROMO PRICE]<%= item.product_name rescue '-' %> + <% else %> + [PROMO PRICE]<%= item.product_name rescue '-' %> <% end %> <% else %> <%= item.product_name rescue '-' %> @@ -76,71 +76,71 @@<%= item.qty rescue '-' %> | <%= item.unit_price rescue '-' %> | <%= item.price rescue '-' %> | -<%=l item.created_at.utc.getlocal, :format => :short rescue '-' %> | +<%=l item.created_at.utc.getlocal, :format => :short rescue '-' %> | <% end %> - +
|---|---|---|---|---|---|---|
| - | + | No. of Guest | <%= survey.total_customer rescue '-' %> | -- | + + <% end %> + <% if !result.total_amount.nil?%> | |
| - | + | <%= t("views.right_panel.detail.total") %> <%= t("views.right_panel.detail.amount") %> | <%= result.total_amount %> | -- | + <% end %> <% if result.total_discount.to_f > 0 %> | |
| - | + | <%= t("views.right_panel.detail.total") %> - <%= t("views.right_panel.detail.discount") %> + <%= t("views.right_panel.detail.discount") %> <%= t("views.right_panel.detail.amount") %> | - <%= result.total_discount %> | -- | + <% end %> - + <% if !result.total_tax.nil? %> | |
| - | + | Tax Amount | <%= result.total_tax %> | -+ | ||
| - | + | Payment <%= rec.payment_method.upcase %> | <%= rec.payment_amount %> ( <%= rec.payment_status %> ) | - | ||
| - | + | Payment Ref. | <%= rec.payment_reference %> | @@ -148,10 +148,10 @@ <% end %> <% end %> <% end %> - <% if result.amount_changed != 0 && !result.amount_changed.nil? %> + <% if result.amount_changed != 0 && !result.amount_changed.nil? %> | ||
| - | + | <%= t("views.right_panel.detail.change") %> <%= t("views.right_panel.detail.amount") %> | <%= result.amount_changed %> | @@ -160,32 +160,32 @@ <% if !result.customer_id.nil?%> | ||
| - | + | Customer | -<%= result.customer.name rescue '-'%> + | <%= result.customer.name rescue '-'%> (<%= result.customer.company rescue '-' %>) | ||
| Total Nett - <%= grand_total %> | -+ | |||||