fix internal bank transfer and other payment types error

This commit is contained in:
Omair Saleh
2023-07-05 14:09:19 +08:00
parent f7446937a8
commit 724714479f
@@ -59,7 +59,7 @@ class UpdateBankStatementDetailLogic extends AbstractControllerLogic
$salesSystems = ['lite', 'cntr', 'probashi', 'pets'];
$allowedSystems = array_merge($salesSystems, ['exchange', 'izyim']);
if (!in_array($systemReference, $allowedSystems)) {
if (!in_array($systemReference, $allowedSystems) && !in_array($request->input('pay_for'), ['internal_bank_transfer', 'others'])) {
throw new MalformedRequestException('System Reference not allowed');
}