mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-31 12:04:35 -04: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) {
|
} elseif ($exception instanceof StripeConnectFailure) {
|
||||||
return response()->json(['message' => $exception->getMessage()], 400);
|
return response()->json(['message' => $exception->getMessage()], 400);
|
||||||
} elseif ($exception instanceof QueryException) {
|
} 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)
|
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->fill($data);
|
||||||
|
|
||||||
$bank_transaction->save();
|
$bank_transaction->save();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user