DONE: feature flags by branches
This commit is contained in:
@@ -7,6 +7,7 @@ use App\Bank;
|
||||
use App\BatchPembiayaanOnline;
|
||||
use App\Cawangan;
|
||||
use App\Customer;
|
||||
use App\Feature;
|
||||
use App\Gadai;
|
||||
use App\PembiayaanOnline;
|
||||
use Carbon\Carbon;
|
||||
@@ -67,6 +68,10 @@ class PembiayaanOnlineService
|
||||
}
|
||||
$mysql = $resolved['mysql'];
|
||||
|
||||
if (!Feature::enabled($kodcaw, Feature::PEMBIAYAAN_ONLINE)) {
|
||||
return Feature::denied('Pembiayaan online tidak diaktifkan untuk cawangan ini');
|
||||
}
|
||||
|
||||
$norujukan = trim((string) ($data['norujukan'] ?? ''));
|
||||
$nokp = trim((string) ($data['nokp'] ?? ''));
|
||||
$pinjaman = round((float) ($data['pinjaman'] ?? 0), 2);
|
||||
|
||||
Reference in New Issue
Block a user