mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-31 12:44:35 -04:00
Refactor for bank transactions
This commit is contained in:
parent
013a7430b3
commit
99704a3dbd
@ -56,7 +56,7 @@ class UpdateBankTransactionRequest extends Request
|
|||||||
|
|
||||||
|
|
||||||
if(array_key_exists('baseType', $input) && strlen($input['baseType']) > 1)
|
if(array_key_exists('baseType', $input) && strlen($input['baseType']) > 1)
|
||||||
$input['base_type'] = $input['baseType'] == 'deposit' ? 'CREDIT' : 'DEBIT';
|
$input['base_type'] = $input['baseType']; //== 'deposit' ? 'CREDIT' : 'DEBIT';
|
||||||
|
|
||||||
if(array_key_exists('vendor_id', $input) && strlen($input['vendor_id']) > 1)
|
if(array_key_exists('vendor_id', $input) && strlen($input['vendor_id']) > 1)
|
||||||
$input['vendor_id'] = $this->decodePrimaryKey($input['vendor_id']);
|
$input['vendor_id'] = $this->decodePrimaryKey($input['vendor_id']);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user