Update tinker files to use new Helper implementations

This commit is contained in:
Afiq Hamzah
2023-11-27 10:17:57 +08:00
committed by Hafifie PKB
parent be9c20e767
commit 7255ef3ea9
3 changed files with 10 additions and 7 deletions
+6 -5
View File
@@ -7,6 +7,7 @@ use App\Gadai;
use App\Marhun;
use Illuminate\Database\Eloquent\Builder;
use Illuminate\Http\Request;
use App\Helper;
// test variable
$request = new Request();
@@ -150,9 +151,9 @@ $total_gadaian = $total_gadaian->zip($customer_info, $marhun_gadaian)->map(funct
'no_kp' => $gadai['nokp'],
'masa' => $gadai['masa'],
'marhun' => $marhun_gadaian,
'berat' => formatNumber($gadai['berat']),
'nilai_marhun' => formatNumber($gadai['nilaimarhun']),
'pembiayaan' => formatNumber($gadai['pinjaman']),
'berat' => Helper::formatNumber($gadai['berat']),
'nilai_marhun' => Helper::formatNumber($gadai['nilaimarhun']),
'pembiayaan' => Helper::formatNumber($gadai['pinjaman']),
'peratusan_margin_pinjaman' => $gadai['percentpinj'],
'teller' => $gadai['teller'],
];
@@ -170,8 +171,8 @@ $total_gadaian = $total_gadaian
$data = [
'query' => [
'startDate' => formatDate($request->startDate),
'endDate' => formatDate($request->endDate),
'startDate' => Helper::formatDate($request->startDate),
'endDate' => Helper::formatDate($request->endDate),
],
'cawangan_detail' => $cawangan_detail,
'gadaian' => $total_gadaian,