mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 21:22:58 +01:00
Adjustments for Client.PaidToDate
This commit is contained in:
parent
0d92d1675a
commit
eaf78d47aa
@ -126,7 +126,8 @@ class PaymentRepository extends BaseRepository
|
||||
}
|
||||
} else {
|
||||
//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'])) {
|
||||
|
Loading…
Reference in New Issue
Block a user