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:
parent
698bf5dde3
commit
5066fbdac7
@ -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();
|
||||
|
||||
|
@ -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());
|
||||
|
Loading…
Reference in New Issue
Block a user