<% if(final_items_discount_amount && final_items_discount_amount > 0) {%> <% items.forEach(function(item){ %> <% }); %> <% if(shipping_cost > 0) {%> <% } %> <% if(final_discount_amount > 0) {%> <% } %>

Item

Price

Qty

Discount

Total

<%= item.name %>

<% if(item.sub_name.length > 0){ %>

<%- item.sub_name %>

<% }; %> <% if(item.bundles.length > 0){ %> <% item.bundles.forEach(function(bundle){ %>

<%- bundle.qty %> x <%- bundle.label %>

<% }); %> <% }; %>

<%= item.final_price_currency_formatted %> <% if( item.price_currency_formatted != item.final_price_currency_formatted ) {%> <%= item.price_currency_formatted %> <% }; %>

<%= item.qty %>

<%= item.final_discount_amount_currency_formatted %>

<%= item.total_currency_formatted %>

Sub Total

<%= sub_total_currency_formatted %>

Shipping

<%= shipping_cost_currency_formatted %>

Discount

<%= final_discount_amount_currency_formatted %>

Tax

<%= tax_amount_currency_formatted %>

Grand Total

<%= grand_total_currency_formatted %>

<% } else{ %> <% items.forEach(function(item){ %> <% }); %>

Item

Price

Qty

Total

<%= item.name %>

<% if(item.sub_name.length > 0){ %>

<%- item.sub_name %>

<% }; %>

<% if( item.price_currency_formatted != item.final_price_currency_formatted ) {%> <%= item.price_currency_formatted %> <% }; %> <%= item.final_price_currency_formatted %>

<%= item.qty %>

<%= item.total_currency_formatted %>

Sub Total

<%= sub_total_currency_formatted %>

Shipping

<%= shipping_cost_currency_formatted %>

Discount

<%= final_discount_amount_currency_formatted %>

Tax

<%= tax_amount_currency_formatted %>

Grand Total

<%= grand_total_currency_formatted %>

<% } %>