From 492e4d2bb6d249027af79bc27136845944edc917 Mon Sep 17 00:00:00 2001 From: Suvodip Date: Wed, 26 Mar 2025 12:01:32 +0530 Subject: [PATCH] s11 --- customers/.hta_slug/edit-invoice.php | 6 +- customers/.hta_slug/print-invoice.php | 10 +-- my-account/.hta_slug/print-invoice.php | 110 +++++++++++++++++-------- 3 files changed, 83 insertions(+), 43 deletions(-) diff --git a/customers/.hta_slug/edit-invoice.php b/customers/.hta_slug/edit-invoice.php index fdd729d..302deb8 100644 --- a/customers/.hta_slug/edit-invoice.php +++ b/customers/.hta_slug/edit-invoice.php @@ -251,10 +251,10 @@
-
+
- - Print Invoice + + Print Invoice
diff --git a/customers/.hta_slug/print-invoice.php b/customers/.hta_slug/print-invoice.php index 4d0d5e8..65921dc 100644 --- a/customers/.hta_slug/print-invoice.php +++ b/customers/.hta_slug/print-invoice.php @@ -107,11 +107,11 @@ if ($invoiceInfo['tenure'] > 1) { - - - - - + + + + + diff --git a/my-account/.hta_slug/print-invoice.php b/my-account/.hta_slug/print-invoice.php index 9556c89..65921dc 100644 --- a/my-account/.hta_slug/print-invoice.php +++ b/my-account/.hta_slug/print-invoice.php @@ -22,22 +22,33 @@ if ($invoiceInfo['tenure'] > 1) {
-

Invoice


-
-
-
Invoice ID:
-
Customer:
-

Address:

-
-
-
Invoice Date:
-
Payment Mode:
-

Agent:

+
+ +
+

Invoice

+

#

- -
Payment AmountPayment DatePayment SourceTransaction IDRemarksAmountDateSourceTransaction IDRemarks
- +
+
+

Bill To:

+

+
+ +

+

Invoice Date:

+
+
+

CLASSBOXES TECHNOLOGY

+

+ 371 Hoes Lane, Suite #200
+ Piscataway New Jersey
+ US 08854 +

+
+
+
+ @@ -60,12 +71,11 @@ if ($invoiceInfo['tenure'] > 1) {
Item Description
- + 1): ?> -

EMI Payment Plan

- +
EMI Payment Plan
+
@@ -77,7 +87,7 @@ if ($invoiceInfo['tenure'] > 1) { - + @@ -88,14 +98,43 @@ if ($invoiceInfo['tenure'] > 1) { Paid' : 'Pending' ?> - +
EMI No.
- + 0) { ?> +
Additional Payment Details:
+ + + + + + + + + + + + 0) { + ?> + + + + + + + + + +
AmountDateSourceTransaction IDRemarks
+

Admin Note:

- - +

Invoice Generate Date:

@@ -104,18 +143,19 @@ if ($invoiceInfo['tenure'] > 1) {
+ document.getElementById('invoiceGenDate').textContent = new Date().toLocaleDateString('en-GB'); + function downloadPDF() { + const invoice = document.getElementById("invoice-box"); + html2pdf(invoice, { + margin: 10, + filename: 'invoice.pdf', + image: { type: 'jpeg', quality: 0.98 }, + html2canvas: { scale: 2 }, + jsPDF: { unit: 'mm', format: 'a4', orientation: 'portrait' } + }); + } +