DONE: feature flags by branches
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
namespace App\Services\PembiayaanOnline;
|
||||
|
||||
use App\Cawangan;
|
||||
use App\Feature;
|
||||
use App\ModalOnline;
|
||||
use App\RequestModalOnline;
|
||||
use Carbon\Carbon;
|
||||
@@ -208,6 +209,10 @@ class ModalOnlineService
|
||||
return $resolved;
|
||||
}
|
||||
|
||||
if (!Feature::enabled($kodcaw, Feature::PEMBIAYAAN_ONLINE)) {
|
||||
return Feature::denied('Pembiayaan online tidak diaktifkan untuk cawangan ini');
|
||||
}
|
||||
|
||||
$mysql = $resolved['mysql'];
|
||||
$amaun = round((float) $amaun, 2);
|
||||
|
||||
@@ -294,6 +299,10 @@ class ModalOnlineService
|
||||
}
|
||||
$mysql = $resolved['mysql'];
|
||||
|
||||
if (!Feature::enabled($kodcaw, Feature::PEMBIAYAAN_ONLINE)) {
|
||||
return Feature::denied('Pembiayaan online tidak diaktifkan untuk cawangan ini');
|
||||
}
|
||||
|
||||
$amaun = round((float) $amaun, 2);
|
||||
$dimohonOleh = trim((string) $dimohonOleh);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user