<% const customTitle = typeof title !== 'undefined' && title ? title : 'CUSTOM DOCUMENT'; const customDate = typeof date !== 'undefined' && date ? date : 'N/A'; const customTelePhone = typeof telePhone !== 'undefined' && telePhone ? telePhone : ''; const customEmail = typeof emailAddress !== 'undefined' && emailAddress ? emailAddress : ''; const customOfficeAddressLine1 = typeof officeAddressLine1 !== 'undefined' && officeAddressLine1 ? officeAddressLine1 : ''; const customOfficeAddressLine2 = typeof officeAddressLine2 !== 'undefined' && officeAddressLine2 ? officeAddressLine2 : ''; const customOfficeAddressLine3 = typeof officeAddressLine3 !== 'undefined' && officeAddressLine3 ? officeAddressLine3 : ''; const customDirectorOfCustoms = typeof directorOfCustoms !== 'undefined' && directorOfCustoms ? directorOfCustoms : ''; const customVehicleNo = typeof vehicleNo !== 'undefined' && vehicleNo ? vehicleNo : ''; const customPermitNo = typeof permitNo !== 'undefined' && permitNo ? permitNo : ''; const customChiefSecurityOfficer = typeof chiefSecurityOfficer !== 'undefined' && chiefSecurityOfficer ? chiefSecurityOfficer : ''; const customExportGate = typeof exportGate !== 'undefined' && exportGate ? exportGate : ''; const customSlpa = typeof slpa !== 'undefined' && slpa ? slpa : ''; const customGateNo = typeof gateNo !== 'undefined' && gateNo ? gateNo : ''; const customPermissionText = typeof permissionText !== 'undefined' && permissionText ? permissionText : ''; const customCompanyName = typeof companyName !== 'undefined' && companyName ? companyName : 'Oceanic Maritime Solutions (Pvt) Ltd'; const customSubtitle = typeof subtitle !== 'undefined' && subtitle ? subtitle : 'LICENSED SHIPCHANDLERS'; const customSectionCode = typeof sectionCode !== 'undefined' && sectionCode ? sectionCode : 'SC/FORM/06'; const customDateLabel = typeof dateLabel !== 'undefined' && dateLabel ? dateLabel : 'DATE :'; const customItems = typeof items !== 'undefined' && Array.isArray(items) ? items : []; const rows = Math.max(7, customItems.length); %>
Tele : <%= customTelePhone || '' %>
E-mail Address : <%= customEmail || '' %>
<%= customOfficeAddressLine1 %>
<%= customOfficeAddressLine2 %>
<%= customOfficeAddressLine3 %>
The Director of Customs
<%= customDirectorOfCustoms %>
Export Gate
Colombo 1.
Vehicle No. / Permit No.
<%= customVehicleNo %> / <%= customPermitNo %>
Chief Security Officer
<%= customChiefSecurityOfficer %>
SLPA
<%= customSlpa %>
Gate No.
<%= customGateNo %>
<%= customPermissionText %>
............................................................
<%= customCompanyName %>
<%= customSubtitle %>
<%= customDateLabel %> <%= customDate %>
<%= customSectionCode %>
<% for (let index = 0; index < rows; index++) { %> <% const item = customItems[index] || {}; %> <% } %>
NO QTY UNIT DESCRIPTION RATE TOTAL Confirm
Order Rate
<%= index + 1 %> <%= item.quantity || item.qty || '' %> <%= item.unit || '' %> <%= item.description || item.item_name || item.name || '' %> <%= item.rate || item.unit_price || '-' %> <%= item.total || item.amount || '-' %> <%= item.confirmOrderRate || item.confirm_order_rate || '' %>