% if form.object.new_record? %> N/A <% else -%>
Subtotal | $<%= "%.2f" % form.object.line_items.inject(0) { |subtotal, li| subtotal + li.total } %> |
Shipping | $<%= "%.2f" % form.object.shipments.inject(0) { |shipping, shipment| shipping + shipment.total } %> |
Tax | $<%= "%.2f" % form.object.tax_charge %> |
Total | $<%= "%.2f" % form.object.total %> |
Payments | $<%= "%.2f" % form.object.payments.inject(0) { |total, payment| total + payment.total } %> |
Adjustments | $<%= "%.2f" % form.object.adjustments.inject(0) { |total, adj| total + adj.total.to_f } %> |
Balance Due | $<%= "%.2f" % form.object.total_due %> |
Created at | <%= form.object.created_at.strftime("%m-%d-%Y") %> |
Actions |
|
Actions |
|