ORDER INVOICE

<% if (invoice?.user_info) { let userInfoParts = invoice.user_info.split('|').map(part => part.trim()); let address = userInfoParts[1]; if (address && address !== '(null), (null), (null), (null)' && address.toLowerCase() !== 'null' && address.toLowerCase() !== 'undefined' && address !== '') { %> <% } else { %> <% } } else { %> <% } %>
Invoice To: <%= invoice?.user_details?.full_name %> Restaurant Name: <%= invoice?.name %>
Customer Address: <%= address %> Order ID: <%= invoice?.order_id %>
Order ID: <%= invoice?.order_id %>
Order ID: <%= invoice?.order_id %>
Restaurant Address: <%= invoice?.restaurant_address %>
Order Type: <%= invoice?.order_type %> Payment Mode: <%= invoice?.payment_mode %>
Invoice No: <%= invoiceNo %> Date of Invoice: <%= invoice?.o_complete_time %>
<% invoice?.details?.forEach((element, index) => { %> <% }); %>
Sr No Description Quantity Price Total (<%= invoice?.order_curr%>)
<%= index + 1 %>
<%= element.menu_item_name %>
<% if (element.menu_size_name) { %>
Size: <%= element.menu_size_name %>
<% } %> <% if (element.extra_items && element.extra_items.length > 0) { %>
Extras: <% element.extra_items.forEach((item) => { %>
<%= item.menu_extra_category_name %>: <%= item.menu_extra_item_name %>
<% }); %>
<% } %>
<%= element.quantity %> <%= invoice?.order_curr%><%= element?.order_unit_price %> <%= invoice?.order_curr%><%= element.total_price %>
Subtotal <%= invoice?.order_curr %> <% if (invoice?.pod_sub_total && invoice?.pod_sub_total !== invoice?.sub_total) { %> (<%= invoice.pod_sub_total %>) <% } %> <%= invoice?.sub_total %>
Promo Amount - <%= invoice?.order_curr%><%= invoice?.promo_amount || "0.00" %>
Delivery Fee <%= invoice?.order_curr%><%= invoice?.delivery_cost || "0.00" %>
Platform Fee <%= invoice?.order_curr%><%= invoice?.comp_comm_amt || "0.00" %>
Tip <%= invoice?.order_curr%><%= invoice?.added_tip || "0.00" %>
Tax <%= invoice?.order_curr%><%= invoice?.tax_amt || "0.00" %>
Total Amount: <%= invoice?.order_curr%> <%= invoice?.total_amount || "0.00" %>
<% if (bt_visible == 1) { %>
<% } %>