From 0ab6b686d935e0cc2145e926e11f1fd4f88ca906 Mon Sep 17 00:00:00 2001 From: aadhavan valli Date: Fri, 3 May 2024 18:46:13 +0530 Subject: [PATCH] CHANGE_INVOCIE_NEW_CUSTOMER_CREATE_ADDRESS_NOT_ADD_ISSUE_BILLING_AND_SHIPPING_ADDRESS_ISSUE : AADHAVAN --- app/Controllers/Invoice.php | 6 +- app/Views/invoice_form.php | 164 +++++++++++++------ app/Views/invoice_print_preview_template.php | 5 +- app/Views/offline_invoice_list.php | 1 + app/Views/template/header.php | 30 ++++ 5 files changed, 149 insertions(+), 57 deletions(-) diff --git a/app/Controllers/Invoice.php b/app/Controllers/Invoice.php index 67a60e9e..e7d5a377 100644 --- a/app/Controllers/Invoice.php +++ b/app/Controllers/Invoice.php @@ -670,9 +670,9 @@ class Invoice extends BaseController $this->logger->info("Approve notification Email Request data = " . json_encode($records)); $email_result = $notification->sendEmail($records); $this->logger->info("Approve notification Email Response = " . json_encode($email_result)); - $this->logger->info("Approve notification Whatsapp Request data = " . json_encode($params)); - $whatsapp_result = $notification->sendWhatsAppMessage(SEND_WAAI_URL, "POST", $params); - $this->logger->info("Approve notification Whatsapp Response = " . json_encode($whatsapp_result)); + // $this->logger->info("Approve notification Whatsapp Request data = " . json_encode($params)); + // $whatsapp_result = $notification->sendWhatsAppMessage(SEND_WAAI_URL, "POST", $params); + // $this->logger->info("Approve notification Whatsapp Response = " . json_encode($whatsapp_result)); } ## To Generate Invoice PDF based on invoice ID diff --git a/app/Views/invoice_form.php b/app/Views/invoice_form.php index fddefd83..c09a44fe 100644 --- a/app/Views/invoice_form.php +++ b/app/Views/invoice_form.php @@ -16,6 +16,8 @@


" id="myForm"> + +
@@ -126,7 +128,6 @@ Item Details - Description Qty Rate Tax @@ -141,7 +142,8 @@ $ii_details) : ?> - bookSelect" name="item_details[]" onchange="displayBookTag(this,)" required data-toggle="select2" style="width: 249px !important;"> @@ -157,8 +159,9 @@ echo $book->title; } ?> - - + + + " name="quantity[]" oninput="calculateInvoice(this,)" value="" min="1" /> " name="rate[]" oninput="calculateInvoice(this,)" value="" readonly /> @@ -201,8 +204,9 @@ + - + @@ -616,8 +620,12 @@ Account No : 89900787655