Adjustments for client paid to date
This commit is contained in:
parent
7750717b19
commit
ae52852ade
|
|
@ -139,6 +139,8 @@ class ClientService
|
|||
|
||||
// }
|
||||
|
||||
nlog("incrementing paid_to_date by {$amount}");
|
||||
|
||||
$this->client->increment('paid_to_date', $amount);
|
||||
|
||||
return $this;
|
||||
|
|
|
|||
|
|
@ -110,7 +110,7 @@ class DeletePayment
|
|||
$this->payment
|
||||
->client
|
||||
->service()
|
||||
->updatePaidToDate($net_deletable * -1)
|
||||
->updatePaidToDate(abs($net_deletable) * -1)
|
||||
->save();
|
||||
|
||||
if ($is_trashed) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue