300 lines
8.4 KiB
Plaintext
300 lines
8.4 KiB
Plaintext
<!DOCTYPE html>
|
|
<html>
|
|
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<style>
|
|
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
body {
|
|
background: white;
|
|
font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', sans-serif;
|
|
padding: 20px;
|
|
}
|
|
|
|
.container {
|
|
max-width: 1000px;
|
|
margin: 0 auto;
|
|
background: white;
|
|
}
|
|
|
|
.header-section {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 30px;
|
|
border-bottom: 2px solid #1a7a4d;
|
|
padding-bottom: 15px;
|
|
}
|
|
|
|
.header-section img {
|
|
height: 80px;
|
|
}
|
|
|
|
.po-title {
|
|
font-size: 28px;
|
|
font-weight: bold;
|
|
color: #1a7a4d;
|
|
text-align: center;
|
|
flex: 1;
|
|
}
|
|
|
|
.info-grid {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
gap: 20px;
|
|
margin-bottom: 30px;
|
|
background: #e8f5e9;
|
|
padding: 15px;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.info-left,
|
|
.info-right {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
}
|
|
|
|
.info-row {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
.info-label {
|
|
font-weight: bold;
|
|
color: #2e7d32;
|
|
min-width: 150px;
|
|
}
|
|
|
|
.info-value {
|
|
color: #333;
|
|
}
|
|
|
|
table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.items-table thead {
|
|
background-color: #2e7d32;
|
|
color: white;
|
|
}
|
|
|
|
.items-table th {
|
|
padding: 12px;
|
|
text-align: left;
|
|
font-weight: bold;
|
|
font-size: 12px;
|
|
}
|
|
|
|
.items-table td {
|
|
padding: 12px;
|
|
border-bottom: 1px solid #ddd;
|
|
}
|
|
|
|
.items-table tbody tr:nth-child(even) {
|
|
background-color: #f5f5f5;
|
|
}
|
|
|
|
.summary-area {
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
margin-top: 30px;
|
|
margin-bottom: 30px;
|
|
}
|
|
|
|
.summary-table {
|
|
width: 400px;
|
|
}
|
|
|
|
.summary-table td {
|
|
padding: 10px;
|
|
border: 1px solid #ddd;
|
|
}
|
|
|
|
.summary-table td:first-child {
|
|
font-weight: bold;
|
|
background-color: #f5f5f5;
|
|
width: 60%;
|
|
}
|
|
|
|
.summary-table td:last-child {
|
|
text-align: right;
|
|
}
|
|
|
|
.total-row {
|
|
background-color: #2e7d32;
|
|
color: white;
|
|
font-weight: bold;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.total-row td {
|
|
border-color: #1a7a4d;
|
|
}
|
|
|
|
.footer-note {
|
|
text-align: center;
|
|
margin-top: 40px;
|
|
border-top: 2px solid #ddd;
|
|
padding-top: 20px;
|
|
}
|
|
|
|
.footer-note img {
|
|
max-width: 100%;
|
|
height: auto;
|
|
}
|
|
|
|
.text-black{
|
|
color: black !important;
|
|
}
|
|
</style>
|
|
</head>
|
|
|
|
<body>
|
|
<div class="container">
|
|
<!-- HEADER SECTION -->
|
|
<div class="header-section">
|
|
<div>
|
|
<% if (logoBase64) { %>
|
|
<img src="<%= logoBase64 %>" alt="Company Logo" />
|
|
<% } %>
|
|
</div>
|
|
<div class="po-title">PRICE QUOTATION</div>
|
|
</div>
|
|
|
|
<!-- INFO GRID -->
|
|
<div class="info-grid">
|
|
<div class="info-left">
|
|
<div class="info-row">
|
|
<span class="info-label">VESSEL NAME :</span>
|
|
<span class="info-value">
|
|
<%= vesselName %>
|
|
</span>
|
|
</div>
|
|
<div class="info-row">
|
|
<span class="info-label">SUPPLY PORT :</span>
|
|
<span class="info-value">
|
|
<%= supplierName || 'Supplier Name' %>
|
|
</span>
|
|
</div>
|
|
</div>
|
|
<div class="info-right">
|
|
<div class="info-row">
|
|
<span class="info-label">CLIENT RFQ :</span>
|
|
<span class="info-value">
|
|
<%= clientRfqNum || 'RFQ-001' %>
|
|
</span>
|
|
</div>
|
|
<div class="info-row">
|
|
<span class="info-label">OMS RFQ :</span>
|
|
<span class="info-value">
|
|
<%= omsRfqNum || 'RFQ-001' %>
|
|
</span>
|
|
</div>
|
|
<div class="info-row">
|
|
<span class="info-label">DATE :</span>
|
|
<span class="info-value">
|
|
<%= date || 'Current Date' %>
|
|
</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- ITEMS TABLE -->
|
|
<div style="overflow-x: auto;">
|
|
<table class="items-table">
|
|
<thead>
|
|
<tr>
|
|
<th>ITEM NO</th>
|
|
<th>DESCRIPTION</th>
|
|
<th>REMARKS</th>
|
|
<th>QTY</th>
|
|
<th>UNIT</th>
|
|
<th>UNIT PRICE</th>
|
|
<th>TOTAL PRICE</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<% if (items && items.length> 0) { %>
|
|
<% items.forEach((item, index)=> { %>
|
|
<tr>
|
|
<td>
|
|
<%= index + 1 %>
|
|
</td>
|
|
<td>
|
|
<%= item.item_name || '' %>
|
|
</td>
|
|
<td>
|
|
<%= item.customer_remark || '' %>
|
|
</td>
|
|
<td>
|
|
<%= item.quantity || 0 %>
|
|
</td>
|
|
<td>
|
|
<%= item.unit || '' %>
|
|
</td>
|
|
<td>
|
|
<%= item.unit_price || 0 %>
|
|
</td>
|
|
<td>
|
|
<%= (item.quantity || 0) * (item.unit_price || 0) %>
|
|
</td>
|
|
</tr>
|
|
<% }); %>
|
|
<% } %>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<!-- SUMMARY SECTION -->
|
|
<div class="summary-area">
|
|
<table class="summary-table">
|
|
<tr>
|
|
<td>SUB TOTAL</td>
|
|
<td>
|
|
<%= subtotal || 0 %>
|
|
</td>
|
|
</tr>
|
|
|
|
<% if (discount && Number(discount) !==0) { %>
|
|
<tr>
|
|
<td>DISCOUNT (%)</td>
|
|
<td>
|
|
<%= discount %>
|
|
</td>
|
|
</tr>
|
|
<% } %>
|
|
|
|
<% if (additionalCharges && Number(additionalCharges) !==0) { %>
|
|
<tr>
|
|
<td>ADDITIONAL CHARGES<br />(CUSTOM/HANDLING/TRANSPORT)</td>
|
|
<td>
|
|
<%= additionalCharges %>
|
|
</td>
|
|
</tr>
|
|
<% } %>
|
|
|
|
<tr class="total-row">
|
|
<td class="text-black" >GRAND TOTAL</td>
|
|
<td>
|
|
<%= fullTotal || 0 %>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
|
|
<!-- FOOTER -->
|
|
<div class="footer-note">
|
|
<img src="https://res.cloudinary.com/dtthuvvir/image/upload/v1780748661/footer_ax2jyz.png" alt="Footer">
|
|
</div>
|
|
</div>
|
|
</body>
|
|
|
|
</html> |