Additional logging for invoice balances
This commit is contained in:
parent
08697a32ca
commit
a64dec0191
1 changed files with 5 additions and 0 deletions
|
|
@ -34,6 +34,9 @@ class UpdateBalance extends AbstractService
|
|||
if ($this->invoice->is_deleted) {
|
||||
return $this->invoice;
|
||||
}
|
||||
nlog("invoice id = {$this->invoice->id}");
|
||||
nlog("invoice balance = {$this->invoice->balance}");
|
||||
nlog("invoice adjustment = {$this->balance_adjustment}");
|
||||
|
||||
$this->invoice->balance += floatval($this->balance_adjustment);
|
||||
|
||||
|
|
@ -41,6 +44,8 @@ class UpdateBalance extends AbstractService
|
|||
$this->invoice->status_id = Invoice::STATUS_PAID;
|
||||
}
|
||||
|
||||
nlog("final balance = {$this->invoice->balance}");
|
||||
|
||||
return $this->invoice;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue