mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 13:12:50 +01:00
Save Bank Transaction manually
This commit is contained in:
parent
f5ee320ce2
commit
b1dc70f18a
@ -206,7 +206,7 @@ class Handler extends ExceptionHandler
|
||||
} elseif ($exception instanceof StripeConnectFailure) {
|
||||
return response()->json(['message' => $exception->getMessage()], 400);
|
||||
} elseif ($exception instanceof QueryException) {
|
||||
return response()->json(['message' => 'The was a problem executing this query.'], 500);
|
||||
return response()->json(['message' => 'We had a problem executing this query. Please retry.'], 500);
|
||||
}
|
||||
|
||||
|
||||
|
@ -24,6 +24,9 @@ class BankTransactionRepository extends BaseRepository
|
||||
public function save($data, BankTransaction $bank_transaction)
|
||||
{
|
||||
|
||||
if(!isset($bank_transaction->bank_integration_id))
|
||||
$bank_transaction->bank_integration_id = $data['bank_integration_id'];
|
||||
|
||||
$bank_transaction->fill($data);
|
||||
|
||||
$bank_transaction->save();
|
||||
|
Loading…
Reference in New Issue
Block a user