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

Item

Price

Qty

Discount

Total

<%= item.name %>

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

<%- item.sub_name %>

<% }; %>

<%= item.final_price %>

<%= item.qty %>

<%= item.final_discount_amount %>

<%= item.total %>

Sub Total

<%= sub_total %>

Shipping

<%= shipping_cost %>

Discount

<%= final_discount_amount %>

Tax

<%= tax_amount %>

Grand Total

<%= grand_total %>

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

Item

Price

Qty

Total

<%= item.name %>

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

<%- item.sub_name %>

<% }; %>

<%= item.final_price %>

<%= item.qty %>

<%= item.total %>

Sub Total

<%= sub_total %>

Shipping

<%= shipping_cost %>

Discount

<%= final_discount_amount %>

Tax

<%= tax_amount %>

Grand Total

<%= grand_total %>

<% } %>