diff --git a/app/Controllers/Inwardgateregister.php b/app/Controllers/Inwardgateregister.php
index 9a338ea4..209ca1bc 100755
--- a/app/Controllers/Inwardgateregister.php
+++ b/app/Controllers/Inwardgateregister.php
@@ -402,9 +402,9 @@ class Inwardgateregister extends BaseController
$IsThisOpenOrderPO = $this->request->getPost('hiddenIsOpenOrder');
$DeliveryChellanOrInvoiceNo = $this->request->getPost('InvoiceNo');
$DeliveryChellan = (string)$this->request->getPost('InvoiceDate');
- $DeliveryChellanDate = get_date_time_dynamical_format('d-m-Y','',$DeliveryChellan);
+ $DeliveryChellanDate = !$DeliveryChellan || $DeliveryChellan === null ? NULL : get_date_time_format($DeliveryChellan);
$Mat_Rcvd_Dt = (string)$this->request->getPost('MaterialRcvdDate');
- $MaterialRcvdDt = get_date_time_dynamical_format('d-m-Y','',$Mat_Rcvd_Dt);
+ $MaterialRcvdDt = !$Mat_Rcvd_Dt || $Mat_Rcvd_Dt === null ? NULL : get_date_time_format($Mat_Rcvd_Dt);
$VehicleNo = $this->request->getPost('VehicleNo');
$TransporterId = $this->request->getPost('TransporterId');
$DriverName = $this->request->getPost('DriverName');
@@ -834,6 +834,7 @@ function viewIGRDetails()
$getigrstatus = $this->inwardgateregister_model->getigrstatus($IGRNo);
$getigrstatus = $getigrstatus->IGRStatus;
$updateigrmaster = $this->inwardgateregister_model->updateigr($igrarr, $IGRNo);
+
log_message('error', "Master updated successfully: " . $updateigrmaster);
if(!empty($tableData )){
@@ -893,76 +894,89 @@ function viewIGRDetails()
$notification = new Notification();
- $history_content = "IGR History
";
+ $history_content = "
IGR History
-
-
-
-
- *
-
-
-
-
-
@@ -827,6 +802,31 @@ if (!empty($EmpDetails)) {
title="Enter the valid PF Rate, Minimum 1 digit, Maximum 2 digits"
readonly />
+
+
+
+
diff --git a/app/Views/editRawmaterial.php b/app/Views/editRawmaterial.php
index 67a0832a..5f4ac772 100755
--- a/app/Views/editRawmaterial.php
+++ b/app/Views/editRawmaterial.php
@@ -414,12 +414,7 @@ if ($total <= $reorder) {
$('#loader').show();
$.ajax({
- data: {
- materialCode,
- materialName,
- materialCategory,
- materialType
- },
+ data: {materialCode,materialName,materialCategory},
type: "POST",
url: "materialExist",
success: function(data) {
diff --git a/app/Views/editconfig.php b/app/Views/editconfig.php
index 20bf6e67..e5a198d9 100755
--- a/app/Views/editconfig.php
+++ b/app/Views/editconfig.php
@@ -149,7 +149,11 @@ if (!empty($master)) {
} ?>">
|
-
ConfigValue; ?> |
+ Config_ID === 'C023'){ ?>
+
ConfigValue ?> |
+
+
ConfigValue; ?> |
+
isActive == 0) { ?>
@@ -308,6 +312,25 @@ if (!empty($master)) {
+
+
@@ -489,6 +512,90 @@ if (!empty($master)) {
}
}
+
+ $(".config-category").click(function () {
+
+ const key_id = $(this).data("key");
+ const value = $(this).data("value");
+ $('#loader').show();
+
+ $('#scrollableModalTitle').text(`List of PO created using ${value} `);
+ // AJAX API call
+ $.ajax({
+ url: "",
+ data: { key_id: key_id },
+ method: 'POST',
+ dataType: 'json',
+ success: function (response) {
+ if (response.length > 0) {
+ let tableHtml = `
+
+
+
+ | PO Number |
+ PO Date |
+ Material Name |
+ PO Type |
+ PO Status |
+
+
+
+
+ `;
+
+ response.forEach(item => {
+
+ tableHtml += `
+
+ |
+ ${item.PONO}
+ |
+ ${item.PODate} |
+ ${item.MaterialName} |
+ ${item.POType} |
+ ${item.StatusName} |
+
+
+ `;
+ });
+
+ tableHtml += `
+
+
+ `;
+
+ // Insert the table into the modal body
+ $('#scrollable-modal .modal-body').html(tableHtml);
+
+ // Show the modal
+ $('#scrollable-modal').modal('show');
+
+ // Attach click event to PONO cells after the table is rendered
+ $('.pono-cell').click(function () {
+ const pono = $(this).data('pono');
+ const ReqType = $(this).data('potype');
+ const CapitalRange = $(this).data('capitalrange');
+ const url = 'EditPO?PONO=' + pono +'&ReqType='+ReqType+'&CapitalRange='+CapitalRange;
+
+ window.open(url, '_blank');
+ // window.location.href = url;
+ });
+
+ } else {
+ $('#scrollable-modal .modal-body').html('No data found. ');
+ $('#scrollable-modal').modal('show');
+ }
+
+ $('#loader').hide();
+ },
+ error: function (xhr, status, error) {
+ // Handle any errors
+ console.error("API Error:", error);
+ alert("Failed to load material data.");
+ }
+ });
+ });
+
});
diff --git a/app/Views/po_pdf.php b/app/Views/po_pdf.php
index 683d364f..b2b75fd7 100755
--- a/app/Views/po_pdf.php
+++ b/app/Views/po_pdf.php
@@ -519,7 +519,6 @@
|
|
-
|
|
@@ -581,19 +580,23 @@
MaterialCode . ' - ') . ($item->MaterialName . $item->ServiceMaterialDescription);
+ echo ($item->LineitemAuditorNotes == '-' ? '' : ' ( ' . $item->LineitemAuditorNotes. ' )');
} ?>
MaterialCode . ' - ') . ($item->MaterialName ? $item->MaterialName : $item->ServiceMaterialDescription);
+ echo ($item->LineitemAuditorNotes == '-' ? '' : ' ( ' . $item->LineitemAuditorNotes. ' )');
} ?>
MaterialCode . ' - ') . ($item->MaterialName);
+ echo ($item->LineitemAuditorNotes == '-' ? '' : ' ( ' . $item->LineitemAuditorNotes. ' )');
} ?>
MaterialCode . ' - ') . ($item->MaterialName);
+ echo ($item->LineitemAuditorNotes == '-' ? '' : ' ( ' . $item->LineitemAuditorNotes. ' )');
+ //old -- echo ($item->LineitemAuditorNotes == '-' ? '' : ' '.$item->LineitemAuditorNotes );
} ?>
|
HSNCODE ?? 'N/A'; ?> |
-
LineitemAuditorNotes; ?> |
Quantity > 0) {
echo number_alignment($item->Quantity);
if ($item->Per) : ?>
@@ -658,14 +661,13 @@
| |
|
|
-
|
- | TOTAL |
+ TOTAL |
|
|
-
+
-
+
@@ -1351,12 +1351,12 @@
// let fieldName = str.replace(/([a-z])([A-Z])/g, '$1 $2');
let sentence = " ";
if (parseInt(record.is_add) === 1) {
- sentence += record.IGR_No + " was added by "+record.FullName+ " on "+record.indian_date+" at "+record.indian_time;
+ sentence += record.IGR_No + " was Created by "+record.FullName+ " on "+record.indian_date+" at "+record.indian_time;
} else if (parseInt(record.is_edit) === 1) {
- if(record.field != "UpdateBY"){
let str = record.field;
- let fieldName = str.replace(/([a-z])([A-Z])/g, '$1 $2');
- sentence += fieldName+" "+record.old_data + " was updated into " + record.new_data + " by "+record.FullName+ " on "+record.indian_date+" at "+record.indian_time;
+ if (str !== "UpdateBY" && str !== "MaterialRcvdDate" && str !== "DeliveryChellanDate") {
+ let fieldName = str.replace(/([a-z])([A-Z])/g, '$1 $2');
+ sentence += ((record.IGRItem_No) ? record.MaterialName+" ( "+ record.MaterialCode + " ) - " : "")+fieldName+" "+record.old_data + " was Updated into " + record.new_data + " by "+record.FullName+ " on "+record.indian_date+" at "+record.indian_time;
}
} else if (parseInt(record.is_delete) === 1) {
let str = record.field;
|