Refactor for bank transactions
This commit is contained in:
parent
8f82e366c3
commit
1b8472fbc7
1 changed files with 4 additions and 0 deletions
|
|
@ -54,6 +54,10 @@ class UpdateBankTransactionRequest extends Request
|
|||
{
|
||||
$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)
|
||||
$input['vendor_id'] = $this->decodePrimaryKey($input['vendor_id']);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue