mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
explicit where for client in payment repo
This commit is contained in:
parent
63cc567244
commit
4f35c6f894
@ -72,7 +72,7 @@ class PaymentRepository extends BaseRepository
|
|||||||
$this->processExchangeRates($data, $payment);
|
$this->processExchangeRates($data, $payment);
|
||||||
|
|
||||||
$is_existing_payment = false;
|
$is_existing_payment = false;
|
||||||
$client = Client::find($data['client_id'])->withTrashed();
|
$client = Client::where('id', $data['client_id'])->withTrashed()->first();
|
||||||
|
|
||||||
/*We only update the paid to date ONCE per payment*/
|
/*We only update the paid to date ONCE per payment*/
|
||||||
if (array_key_exists('invoices', $data) && is_array($data['invoices']) && count($data['invoices']) > 0) {
|
if (array_key_exists('invoices', $data) && is_array($data['invoices']) && count($data['invoices']) > 0) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user