mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-31 11:14:37 -04:00
Adjustments for Client.PaidToDate
This commit is contained in:
parent
0d92d1675a
commit
eaf78d47aa
@ -126,7 +126,8 @@ class PaymentRepository extends BaseRepository
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
//payment is made, but not to any invoice, therefore we are applying the payment to the clients paid_to_date only
|
//payment is made, but not to any invoice, therefore we are applying the payment to the clients paid_to_date only
|
||||||
$payment->client->service()->updatePaidToDate($payment->amount)->save();
|
//01-07-2020 i think we were duplicating the paid to date here.
|
||||||
|
//$payment->client->service()->updatePaidToDate($payment->amount)->save();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (array_key_exists('credits', $data) && is_array($data['credits'])) {
|
if (array_key_exists('credits', $data) && is_array($data['credits'])) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user