fixing list data deposito
This commit is contained in:
@ -102,6 +102,7 @@ class Account extends Model
|
||||
|
||||
public function getAA($cust, $acc, $dataCore)
|
||||
{
|
||||
//dd($cust, $acc, $dataCore);
|
||||
$timestamp = strtotime($dataCore);
|
||||
// Format the timestamp into a date format
|
||||
$Year = date("Y", $timestamp);
|
||||
@ -112,8 +113,8 @@ class Account extends Model
|
||||
->where('ARR_STATUS', '<>', 'CLOSE')
|
||||
->where('PRODUCT_LINE', 'like', "%" .'DEPOSITS' ."%")
|
||||
->where('LINKED_APPL_ID', $acc)
|
||||
->whereYear('BATCH_DATE', $Year)
|
||||
->groupBy('LINKED_APPL_ID', 'CUSTOMER', 'RENEWAL_DATE', 'START_DATE', 'FIXED_RATE', 'BATCH_DATE', 'PRODUCT_LINE', 'ARR_STATUS')
|
||||
//->whereYear('BATCH_DATE', $Year)
|
||||
->groupBy('LINKED_APPL_ID', 'CUSTOMER', 'START_DATE', 'FIXED_RATE', 'BATCH_DATE', 'PRODUCT_LINE', 'ARR_STATUS','RENEWAL_DATE')
|
||||
->orderBy('BATCH_DATE', 'DESC')
|
||||
->limit(100);
|
||||
return $data;
|
||||
|
Reference in New Issue
Block a user