mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-08-19 04:23:55 +00:00
fix internal bank transfer and other payment types error
This commit is contained in:
@@ -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');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user