<% items.forEach(function(item){ %> <% var date = new Date(item.update_time); var tmonthNames = ["01", "02", "03", "04", "05", "06", "07", "08", "09", "10", "11", "12" ]; %> <% for(var i=0; i< item.qty; i++){%>

<%-date.getDate() %>/<%- tmonthNames[date.getMonth()] %>/<%-date.getFullYear() %>

OpenPOS

<%= item.name %> <% if(item.sub_name.length > 0){ %> <%- item.sub_name %> <% }; %> <% item.bundles.forEach(function(bundle){ %> <%- bundle.qty %>x<%- bundle.label %> <% })%>

Total: <%= item.final_price_incl_tax.toFixed(2) %>

Thank You For Your Purchase

 

<% } %> <% }) %>