Update tinker files to use new Helper implementations
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -3,10 +3,11 @@
|
||||
use App\Cawangan;
|
||||
use App\Customer;
|
||||
use App\Gadai;
|
||||
use App\Helper;
|
||||
|
||||
$tarikh = '2023-11-01';
|
||||
|
||||
$active_cawangan_db_connection = getActiveCawanganDbConnection();
|
||||
$active_cawangan_db_connection = Helper::getActiveCawanganDbConnection();
|
||||
|
||||
$active_cawangan_db = array_map(function($connection){
|
||||
return config('database.connections.' . $connection)['database'];
|
||||
|
||||
@@ -3,9 +3,10 @@
|
||||
use App\Cawangan;
|
||||
use App\Gadai;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
use App\Helper;
|
||||
|
||||
$tarikh = '2023-11-01';
|
||||
$active_cawangan_db_connection = getActiveCawanganDbConnection();
|
||||
$active_cawangan_db_connection = Helper::getActiveCawanganDbConnection();
|
||||
|
||||
$active_cawangan_db_name = array_map(function($db_connection){
|
||||
return config('database.connections' . '.' . $db_connection. '.' . 'database' );
|
||||
|
||||
Reference in New Issue
Block a user