diff --git a/app/Config/Routes.php b/app/Config/Routes.php index aa81e5b6..72eb1f88 100755 --- a/app/Config/Routes.php +++ b/app/Config/Routes.php @@ -275,6 +275,7 @@ $routes->match(['GET', 'POST', 'PUT', 'DELETE'], 'EditStoreRequisition', 'Storer $routes->get('AddIGR', 'Inwardgateregister::addIGR'); // ADD IGR page - working $routes->get('ViewIGR', 'Inwardgateregister::viewIGR'); // View IGR PAGE - Working $routes->post('ViewIGR', 'Inwardgateregister::viewIGR');//for filter purpose +$routes->get('accountsDashboard', 'Inwardgateregister::accountsDashboard'); // View IGR PAGE - Working $routes->post('ViewIGRDetails', 'Inwardgateregister::viewIGRDetails'); $routes->post('GetIGRLineItemDetails', 'Inwardgateregister::getIGRLineItemDetails'); $routes->post('SaveIGR', 'Inwardgateregister::SaveIGR');// Save IGR PAGE - Working diff --git a/app/Controllers/Inwardgateregister.php b/app/Controllers/Inwardgateregister.php index 86bc1379..89aadcd7 100755 --- a/app/Controllers/Inwardgateregister.php +++ b/app/Controllers/Inwardgateregister.php @@ -92,6 +92,43 @@ class Inwardgateregister extends BaseController $this->loadViews("viewinwardgateregister", $this->global, $data, NULL); } + + function accountsDashboard(){ + + $toDate = date('Y-m-d'); + $fromDate = date('Y-m-d'); + + + $this->global['pageTitle'] = 'Accounts Dashboard'; + $result = $this->inwardgateregister_model->ViewigrListing($fromDate, $toDate); + $igrList = $result[0]; + + foreach ($igrList as &$igr) { + $igrNo = $igr->IGRNO; + $fileDetails = $this->inwardgateregister_model->getAllIgrFileDetails($igrNo); + $igr->isIgrFilePresent = false; // Initialize the key + + foreach ($fileDetails as $file) { + if (!empty($file->file)) { + $igr->isIgrFilePresent = true; + break; + } + } + } + + // Unset reference to avoid side effects + unset($igr); + + $data['IGR'] = $igrList; + $data['IGRDownload'] = $result[1]; + $data['userRole'] = $this->session->get('role'); + $data['transporter'] = $this->inwardgateregister_model->transporter(); + $data['fromDate'] = date('d-m-Y', strtotime($fromDate)); + $data['toDate'] = date('d-m-Y', strtotime($toDate)); + + $this->loadViews("accountsDashboard", $this->global, $data, NULL); + } + function addIGR() { diff --git a/app/Views/accountsDashboard.php b/app/Views/accountsDashboard.php new file mode 100644 index 00000000..5e958bc5 --- /dev/null +++ b/app/Views/accountsDashboard.php @@ -0,0 +1,1792 @@ + + + + + + + + + +
+
+ +
+ +
+
+
+
+
+ +
+
+
+ +
+ getFlashdata('message')): ?> + + + +
+
+
+
+
+
+ + + + + + + + + + + + +
+
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + CreatedDate); + $date = $createddate->format('d-m-Y'); + $time = $createddate->format('h:i A'); + $draft = []; + $record->IGRStatus == 'ST074'? $draft [] = $record:''; + if(!empty($draft)){ + ?> + + + + + + + + + + + + + + + + + + +
Create DateIGR NoPO NoSupplier NameInvoice NoInvoice Date Item CountRec QtyNet WeightVechicle NoDriverTransporterIGR StatusAction
+ IGRNO ?> + + PONO ?> + SupplierName ?>DeliveryChellanOrInvoiceNo ?>DeliveryChellanDate); + echo $date->format('d-m-Y'); ?>itemCount ?>ReceivedQuantity ?>NetWeight ?>VehicleNo ?>DriverName ?>TransporterName ?>IGRStatus == 'ST074' ? 'Draft' : 'Completed'; ?> + + + + + +   + + + isIgrFilePresent)){ ?> + + + +   + +
+ + +
+
+
+
+
+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/app/Views/includes/new_header.php b/app/Views/includes/new_header.php index c06de7e0..d59c3d27 100755 --- a/app/Views/includes/new_header.php +++ b/app/Views/includes/new_header.php @@ -847,15 +847,20 @@ - - + + + + + + diff --git a/app/Views/incomingSandSilicaLabReportDownload.php b/app/Views/incomingSandSilicaLabReportDownload.php deleted file mode 100644 index fdf4a285..00000000 --- a/app/Views/incomingSandSilicaLabReportDownload.php +++ /dev/null @@ -1,295 +0,0 @@ - - - - - - - - - - -
- -
-
RI/PUR/R 02
- -
-
- -
-
-

Resico India Pvt ltd

-
-
-
- -

- - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Supplier Name
Invoice No8946551665
Invoice Date2/12/1996
Vehicle NoTn 25 bb 6919
IGR No25126919
Igr Date10/12/2024
Quantity69199
Time
Grade50-60
Clay %20
Moisture %10
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -   - - - - -   - - - - - -
-
-
-

-
-
-
-
-
-

-
-

-
102.020005
200.85085010
300.60060020
400.42042530
500.30030040
700.21021250
1000.15015070
1400.1060106100
2000.0750075140
3000.0530053200
PANPAN300
 TOTAL
AFS
- -

- - - - - - - - - - - - - - - - - - - - -
AcceptedOK
Accepted Under Deviation
Rejected
Remarks
- -
- - - - - - - - - - - - - -
    
Tested ByApproved By
- -
- - - - - -
* This is a system generated
-
- - - - - - - -
- - - \ No newline at end of file diff --git a/app/Views/incomingSilicaSandDetails.php b/app/Views/incomingSilicaSandDetails.php index 742bf431..e8b3680e 100644 --- a/app/Views/incomingSilicaSandDetails.php +++ b/app/Views/incomingSilicaSandDetails.php @@ -726,7 +726,7 @@
-

RESICO (INDIA) PVT.LTD.

+

RESICO (INDIA) PVT.LTD.

@@ -738,12 +738,9 @@ - + -
- - -
+
@@ -934,7 +931,7 @@
-

+
@@ -974,16 +971,10 @@
- -
- - - - -
* This is a system generated
-
- + * This is a system generated +
+