mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-31 05:24:35 -04:00
Fixes for payments
This commit is contained in:
parent
ae8bdcd273
commit
d58a79c73d
@ -68,13 +68,13 @@ class PaymentRepository extends BaseRepository {
|
|||||||
{
|
{
|
||||||
|
|
||||||
$is_existing_payment = true;
|
$is_existing_payment = true;
|
||||||
|
$client = Client::where('id', $data['client_id'])->withTrashed()->first();
|
||||||
|
|
||||||
//check currencies here and fill the exchange rate data if necessary
|
//check currencies here and fill the exchange rate data if necessary
|
||||||
if (! $payment->id) {
|
if (! $payment->id) {
|
||||||
$this->processExchangeRates($data, $payment);
|
$this->processExchangeRates($data, $payment);
|
||||||
|
|
||||||
$is_existing_payment = false;
|
$is_existing_payment = false;
|
||||||
$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