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);
|
$this->client->increment('paid_to_date', $amount);
|
||||||
|
|
||||||
return $this;
|
return $this;
|
||||||
|
|
|
||||||
|
|
@ -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) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue