From 53ea83d3a18ba8e0979e40cd26cdf7399adbd379 Mon Sep 17 00:00:00 2001 From: KhatamNugraha Date: Thu, 4 Jul 2024 13:40:11 +0700 Subject: [PATCH] FIX term --- Entities/Account.php | 2 +- Http/Controllers/KonfirmasiBankController.php | 2 +- Resources/views/exportPdf.blade.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Entities/Account.php b/Entities/Account.php index 40e0d4a..f356cec 100644 --- a/Entities/Account.php +++ b/Entities/Account.php @@ -138,6 +138,7 @@ class Account extends Model $data = DB::connection("db2")->table("MIS.VW_AA_DEPO")->select('*') ->whereIn('NO_REK', $acc) ->where('PERIOD', $date) + ->where('JUMLAH_NOMINAL' <> 0) ->limit(100); return $data; } @@ -179,7 +180,6 @@ class Account extends Model ->where('SK_NASABAH', $cus_no) //->where('ARR_STATUS', 'CURRENT') ->where('PERIODE', $dateCore) - // ->where('ARR_STATUS', '<>', 'CLOSE') // ->where('PRODUCT_LINE', 'like', "%" .'LENDING' ."%") ->limit(100); diff --git a/Http/Controllers/KonfirmasiBankController.php b/Http/Controllers/KonfirmasiBankController.php index 248c54a..1493660 100644 --- a/Http/Controllers/KonfirmasiBankController.php +++ b/Http/Controllers/KonfirmasiBankController.php @@ -462,7 +462,7 @@ class KonfirmasiBankController extends Controller $DataDepo[$keyDep]['MATURITY_DATE'] = Carbon::parse($depo->JATUH_TEMPO)->format('d-m-Y'); $DataDepo[$keyDep]['ARRANGEMENT_ID'] = ''; $DataDepo[$keyDep]['FIXED_RATE'] = number_format($depo->SUKU_BUNGA, 2, ',', '.') ?? ''; - $DataDepo[$keyDep]['TERM'] = substr($depo->KODE_SUB_PRODUK, 0, -1); + $DataDepo[$keyDep]['TERM'] = $depo->KODE_SUB_PRODUK ; //substr($depo->KODE_SUB_PRODUK, 0, -1); } // dd($Deposito); diff --git a/Resources/views/exportPdf.blade.php b/Resources/views/exportPdf.blade.php index 60d3894..092db8d 100644 --- a/Resources/views/exportPdf.blade.php +++ b/Resources/views/exportPdf.blade.php @@ -189,7 +189,7 @@ {{ $depo['CURRENCY'] }} {{$depo['WORKING_BALANCE']}} - {{ $depo['TERM'] }} BLN + {{ $depo['TERM'] }} {{ $depo['FIXED_RATE'] }} % {{ $depo['MATURITY_DATE'] }} {{ $depo['ACCOUNT_NUMBER'] }}