1
0
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:
David Bomba 2022-10-24 09:14:42 +11:00
parent f5ee320ce2
commit b1dc70f18a
2 changed files with 4 additions and 1 deletions

View File

@ -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);
}

View File

@ -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();