s1
This commit is contained in:
@@ -36,7 +36,7 @@ if ($invoiceInfo['tenure'] > 1) {
|
||||
<span><strong><?= $invoiceInfo['customerName'] ?></strong></span><br>
|
||||
<span style=""><?= $invoiceInfo['address'] ?></span>
|
||||
</p>
|
||||
<p style="margin-top: -15px; font-size: 14px;">Invoice Date: <?= $invoiceInfo['invoiceDate'] ?></p>
|
||||
<p style="margin-top: -15px; font-size: 14px;">Invoice Date: <?= date('m/d/Y', strtotime($invoiceInfo['invoiceDate'])) ?></p>
|
||||
</div>
|
||||
<div>
|
||||
<p style="font-size: 14px;"><strong>CLASSBOXES TECHNOLOGY</strong></p>
|
||||
@@ -90,8 +90,8 @@ if ($invoiceInfo['tenure'] > 1) {
|
||||
<?php foreach ($emiPlans as $emi): if($emi['emiAmount'] !== null) {?>
|
||||
<tr>
|
||||
<td><?= $emi['emiNumber'] ?></td>
|
||||
<td><?= $emi['emiDate'] ?></td>
|
||||
<td><?= $emi['payStatus'] == 1 ? $emi['paymentDate'] : 'Unpaid' ?></td>
|
||||
<td><?= date('m/d/Y', strtotime($emi['emiDate'])) ?></td>
|
||||
<td><?= $emi['payStatus'] == 1 ? date('m/d/Y', strtotime($emi['paymentDate'])) : 'Unpaid' ?></td>
|
||||
<td>$<?= number_format($emi['emiAmount'], 2) ?></td>
|
||||
<td>$<?= number_format($emi['outstanding'], 2) ?></td>
|
||||
<td>
|
||||
@@ -121,7 +121,7 @@ if ($invoiceInfo['tenure'] > 1) {
|
||||
?>
|
||||
<tr>
|
||||
<td><?= number_format($emiAdditional['adPaymentAmount'], 2) ?></td>
|
||||
<td><?= !empty($emiAdditional['adPaymentDate']) ? $emiAdditional['adPaymentDate'] : '-' ?></td>
|
||||
<td><?= !empty($emiAdditional['adPaymentDate']) ? date('m/d/Y', strtotime($emiAdditional['adPaymentDate'])) : '-' ?></td>
|
||||
<td><?= !empty($emiAdditional['adPaymentSource']) ? $emiAdditional['adPaymentSource'] : '-' ?></td>
|
||||
<td><?= !empty($emiAdditional['adPaymentTran']) ? $emiAdditional['adPaymentTran'] : '-' ?></td>
|
||||
<td><?= !empty($emiAdditional['adPaymentRemarks']) ? $emiAdditional['adPaymentRemarks'] : '-' ?></td>
|
||||
@@ -143,7 +143,7 @@ if ($invoiceInfo['tenure'] > 1) {
|
||||
</div>
|
||||
<script src="/assets/js/html2pdf.bundle.min.js"></script>
|
||||
<script>
|
||||
document.getElementById('invoiceGenDate').textContent = new Date().toLocaleDateString('en-GB');
|
||||
document.getElementById('invoiceGenDate').textContent = new Date().toLocaleDateString('en-US');
|
||||
|
||||
function downloadPDF() {
|
||||
const invoice = document.getElementById("invoice-box");
|
||||
|
||||
Reference in New Issue
Block a user