mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-23 20:00:33 -04:00
Refactor for bank transactions
This commit is contained in:
parent
8f82e366c3
commit
1b8472fbc7
@ -54,6 +54,10 @@ class UpdateBankTransactionRequest extends Request
|
|||||||
{
|
{
|
||||||
$input = $this->all();
|
$input = $this->all();
|
||||||
|
|
||||||
|
|
||||||
|
if(array_key_exists('baseType', $input) && strlen($input['baseType']) > 1)
|
||||||
|
$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