Fixes for gocardless import customers
This commit is contained in:
parent
b31b8dbe50
commit
e7a1ec5fca
|
|
@ -43,7 +43,7 @@ class StoreBankTransactionRequest extends Request
|
|||
|
||||
$rules['bank_integration_id'] = 'bail|required|exists:bank_integrations,id,company_id,'.$user->company()->id.',is_deleted,0';
|
||||
$rules['amount'] = ['sometimes', 'bail', 'numeric', 'nullable', 'max:99999999999999'];
|
||||
$rules['base_type'] = ['required','in:debit,credit', 'bail'];
|
||||
$rules['base_type'] = ['required','in:debit,credit,DEBIT,CREDIT', 'bail'];
|
||||
|
||||
return $rules;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -91,6 +91,11 @@ class UpdateInvoiceRequest extends Request
|
|||
|
||||
public function prepareForValidation()
|
||||
{
|
||||
|
||||
if (request()->has('paid')) {
|
||||
usleep(rand(100000, 150000));
|
||||
}
|
||||
|
||||
$input = $this->all();
|
||||
|
||||
$input = $this->decodePrimaryKeys($input);
|
||||
|
|
|
|||
Loading…
Reference in New Issue