mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
minor fixes + additional logging
This commit is contained in:
parent
ab2d529923
commit
9dd06fae34
@ -55,7 +55,7 @@ class MarkPaid extends AbstractService
|
|||||||
|
|
||||||
\DB::connection(config('database.default'))->transaction(function () {
|
\DB::connection(config('database.default'))->transaction(function () {
|
||||||
|
|
||||||
$this->invoice = Invoice::where('id', $this->invoice->id)->lockForUpdate()->first();
|
$this->invoice = Invoice::withTrashed()->where('id', $this->invoice->id)->lockForUpdate()->first();
|
||||||
|
|
||||||
$this->payable_balance = $this->invoice->balance;
|
$this->payable_balance = $this->invoice->balance;
|
||||||
|
|
||||||
|
@ -435,6 +435,7 @@ trait GeneratesCounter
|
|||||||
if ($check_counter > 100) {
|
if ($check_counter > 100) {
|
||||||
|
|
||||||
nlog("counter error");
|
nlog("counter error");
|
||||||
|
nlog("check counter = {$check_counter}");
|
||||||
nlog("original_counter = {$original_counter}");
|
nlog("original_counter = {$original_counter}");
|
||||||
nlog("entity company = {$entity->company_id}");
|
nlog("entity company = {$entity->company_id}");
|
||||||
nlog("counter = {$counter}");
|
nlog("counter = {$counter}");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user