Update tinker files to use new Helper implementations
This commit is contained in:
@@ -7,6 +7,7 @@ use App\Gadai;
|
|||||||
use App\Marhun;
|
use App\Marhun;
|
||||||
use Illuminate\Database\Eloquent\Builder;
|
use Illuminate\Database\Eloquent\Builder;
|
||||||
use Illuminate\Http\Request;
|
use Illuminate\Http\Request;
|
||||||
|
use App\Helper;
|
||||||
|
|
||||||
// test variable
|
// test variable
|
||||||
$request = new Request();
|
$request = new Request();
|
||||||
@@ -150,9 +151,9 @@ $total_gadaian = $total_gadaian->zip($customer_info, $marhun_gadaian)->map(funct
|
|||||||
'no_kp' => $gadai['nokp'],
|
'no_kp' => $gadai['nokp'],
|
||||||
'masa' => $gadai['masa'],
|
'masa' => $gadai['masa'],
|
||||||
'marhun' => $marhun_gadaian,
|
'marhun' => $marhun_gadaian,
|
||||||
'berat' => formatNumber($gadai['berat']),
|
'berat' => Helper::formatNumber($gadai['berat']),
|
||||||
'nilai_marhun' => formatNumber($gadai['nilaimarhun']),
|
'nilai_marhun' => Helper::formatNumber($gadai['nilaimarhun']),
|
||||||
'pembiayaan' => formatNumber($gadai['pinjaman']),
|
'pembiayaan' => Helper::formatNumber($gadai['pinjaman']),
|
||||||
'peratusan_margin_pinjaman' => $gadai['percentpinj'],
|
'peratusan_margin_pinjaman' => $gadai['percentpinj'],
|
||||||
'teller' => $gadai['teller'],
|
'teller' => $gadai['teller'],
|
||||||
];
|
];
|
||||||
@@ -170,8 +171,8 @@ $total_gadaian = $total_gadaian
|
|||||||
|
|
||||||
$data = [
|
$data = [
|
||||||
'query' => [
|
'query' => [
|
||||||
'startDate' => formatDate($request->startDate),
|
'startDate' => Helper::formatDate($request->startDate),
|
||||||
'endDate' => formatDate($request->endDate),
|
'endDate' => Helper::formatDate($request->endDate),
|
||||||
],
|
],
|
||||||
'cawangan_detail' => $cawangan_detail,
|
'cawangan_detail' => $cawangan_detail,
|
||||||
'gadaian' => $total_gadaian,
|
'gadaian' => $total_gadaian,
|
||||||
|
|||||||
@@ -3,10 +3,11 @@
|
|||||||
use App\Cawangan;
|
use App\Cawangan;
|
||||||
use App\Customer;
|
use App\Customer;
|
||||||
use App\Gadai;
|
use App\Gadai;
|
||||||
|
use App\Helper;
|
||||||
|
|
||||||
$tarikh = '2023-11-01';
|
$tarikh = '2023-11-01';
|
||||||
|
|
||||||
$active_cawangan_db_connection = getActiveCawanganDbConnection();
|
$active_cawangan_db_connection = Helper::getActiveCawanganDbConnection();
|
||||||
|
|
||||||
$active_cawangan_db = array_map(function($connection){
|
$active_cawangan_db = array_map(function($connection){
|
||||||
return config('database.connections.' . $connection)['database'];
|
return config('database.connections.' . $connection)['database'];
|
||||||
|
|||||||
@@ -3,9 +3,10 @@
|
|||||||
use App\Cawangan;
|
use App\Cawangan;
|
||||||
use App\Gadai;
|
use App\Gadai;
|
||||||
use Illuminate\Support\Facades\DB;
|
use Illuminate\Support\Facades\DB;
|
||||||
|
use App\Helper;
|
||||||
|
|
||||||
$tarikh = '2023-11-01';
|
$tarikh = '2023-11-01';
|
||||||
$active_cawangan_db_connection = getActiveCawanganDbConnection();
|
$active_cawangan_db_connection = Helper::getActiveCawanganDbConnection();
|
||||||
|
|
||||||
$active_cawangan_db_name = array_map(function($db_connection){
|
$active_cawangan_db_name = array_map(function($db_connection){
|
||||||
return config('database.connections' . '.' . $db_connection. '.' . 'database' );
|
return config('database.connections' . '.' . $db_connection. '.' . 'database' );
|
||||||
|
|||||||
Reference in New Issue
Block a user