Adjustments for client paid to date

This commit is contained in:
David Bomba 2025-03-26 14:08:29 +11:00
parent 7750717b19
commit ae52852ade
2 changed files with 3 additions and 1 deletions

View File

@ -139,6 +139,8 @@ class ClientService
// } // }
nlog("incrementing paid_to_date by {$amount}");
$this->client->increment('paid_to_date', $amount); $this->client->increment('paid_to_date', $amount);
return $this; return $this;

View File

@ -110,7 +110,7 @@ class DeletePayment
$this->payment $this->payment
->client ->client
->service() ->service()
->updatePaidToDate($net_deletable * -1) ->updatePaidToDate(abs($net_deletable) * -1)
->save(); ->save();
if ($is_trashed) { if ($is_trashed) {