stock module latest today vadivel J 15-02-2025
This commit is contained in:
parent
cc39f48ae5
commit
255aba3cb3
@ -151,6 +151,8 @@ class TrpProductionModel extends Model
|
||||
|
||||
$builder->join("({$subquery2}) tdmd", 'tdmd.date = tpmd.date', 'left');
|
||||
|
||||
|
||||
|
||||
// Subquery: Core Sand Reclaimed by Clients
|
||||
|
||||
$crsClientList = $this->db->table('ip_clients clients')
|
||||
@ -164,7 +166,7 @@ class TrpProductionModel extends Model
|
||||
->get()
|
||||
->getResultArray();
|
||||
|
||||
if(!empty($crsClientList)){
|
||||
|
||||
$crsClientList = array_column($crsClientList, 'client_name');
|
||||
|
||||
// Initialize an empty array for dynamic SQL conditions
|
||||
@ -202,11 +204,13 @@ class TrpProductionModel extends Model
|
||||
$builder->join("({$subquery3}) invItems", 'invItems.item_date_added = tpmd.date', 'left');
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
$materialCodes = ! empty($materialCodes) ? $materialCodes : [''] ;
|
||||
$materialCodes = ! empty($materialCodes) ? $materialCodes : ['600374','600422','600434'];
|
||||
|
||||
|
||||
// Subquery: Waste Core Sand Suppliers
|
||||
$subquery4 = $this->db->table('t_igr_details tigrd')
|
||||
|
||||
@ -485,7 +485,7 @@ $timeOtions[] = "12:00 AM";
|
||||
|
||||
<?php if (!empty($trpProductionDetails)) {
|
||||
|
||||
// dd(array_keys($trpProductionDetails[0]));
|
||||
dd(array_keys($trpProductionDetails[0]));
|
||||
// dd($trpProductionDetails);
|
||||
|
||||
?>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user