1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 13:12:50 +01:00

fixes for Invoice Balance Sanity

This commit is contained in:
= 2021-09-16 08:43:14 +10:00
parent 698bf5dde3
commit 5066fbdac7
2 changed files with 3 additions and 2 deletions

View File

@ -59,7 +59,7 @@ class InvoiceBalanceSanity implements Rule
DB::connection(config('database.default'))->beginTransaction();
$this->invoice = Invoice::on(config('database.default'))->find($this->invoice->id);
$this->invoice = Invoice::on(config('database.default'))->withTrashed()->find($this->invoice->id);
$this->invoice->line_items = $this->input['line_items'];
$temp_invoice = $this->invoice->calc()->getTempEntity();

View File

@ -45,7 +45,8 @@ class AuthorizeTransactions
$response = $controller->executeWithApiResponse($this->authorize->mode());
if (($response != null) && ($response->getMessages()->getResultCode() == 'Ok')) {
// if (($response != null) && ($response->getMessages()->getResultCode() == 'Ok')) {
if ($response != null && $response->getMessages() != null) {
nlog('SUCCESS: Transaction Status:'.$response->getTransaction()->getTransactionStatus());
nlog(' Auth Amount:'.$response->getTransaction()->getAuthAmount());
nlog(' Trans ID:'.$response->getTransaction()->getTransId());