<% const creditCompany = typeof company !== 'undefined' && company ? company : {}; const creditHeader = typeof header !== 'undefined' && header ? header : {}; const creditBillTo = typeof billTo !== 'undefined' && billTo ? billTo : {}; const creditMeta = typeof meta !== 'undefined' && meta ? meta : {}; const creditVessel = typeof vessel !== 'undefined' && vessel ? vessel : {}; const creditOrderMeta = typeof orderMeta !== 'undefined' && orderMeta ? orderMeta : {}; const creditItems = typeof items !== 'undefined' && Array.isArray(items) ? items : []; const creditApprovedByLabel = typeof approvedByLabel !== 'undefined' && approvedByLabel ? approvedByLabel : 'Approved by GLMS Finance Dept.'; const creditDepartmentLabel = typeof departmentLabel !== 'undefined' && departmentLabel ? departmentLabel : 'GLMS - Accounts Department'; %>
<%= creditCompany.name || 'GREEK-LANKA MARITIME SERVICES (PVT) LTD' %>
<%= creditCompany.addressLine1 || '' %>
<%= creditCompany.addressLine2 || '' %>
<%= creditCompany.addressLine3 || '' %>
<%= creditCompany.postal || '' %>
<%= creditCompany.contact || '' %>
<%= creditCompany.br || '' %>
<%= creditCompany.license || '' %>
GREEK
LANKA
We Serve the Ocean
CREDIT NOTE
<%= creditHeader.title || 'CREDIT NOTE' %>
Bill To : <%= creditBillTo.name || 'Master & Owner of MV TEAM VENTURES' %>
<%- (creditBillTo.details || '').replace(/\n/g, '
') || 'VRIDHI MARITIME SHIP MANAGEMENT & OPERATION LLC
Office No: 2004, The Prism Tower, Dubai' %>
CRN NO :<%= creditMeta.crnNo || 'N/A' %>
DATE :<%= creditMeta.date || 'N/A' %>
Vessel Name : <%= creditVessel.name || 'N/A' %>
Port : <%= creditVessel.port || 'N/A' %>
Name of Agent : <%= creditVessel.agent || 'N/A' %>
GRT : <%= creditVessel.grt || 'N/A' %>
IMO Number : <%= creditVessel.imo || 'N/A' %>
Port/Country : <%= creditVessel.portCountry || 'N/A' %>
<% if (creditItems.length > 0) { %> <% creditItems.forEach((item, index) => { %> <% }); %> <% } %>
DESCRIPTION AMOUNT
<%= item.description || item.desc || '' %> <% if (item.note) { %>
<%= item.note %>
<% } %>
<%= (typeof item.amount !== 'undefined') ? item.amount : '' %>
Total Amount <%= total || totalAmount || 0 %>
<%= creditApprovedByLabel %>