mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Set payment exchange rate
This commit is contained in:
parent
2aad520733
commit
8b9b30ff63
@ -90,6 +90,7 @@ class PaymentRepository extends BaseRepository {
|
|||||||
$client->service()->updatePaidToDate($_credit_totals)->save();
|
$client->service()->updatePaidToDate($_credit_totals)->save();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*Fill the payment*/
|
/*Fill the payment*/
|
||||||
@ -184,6 +185,10 @@ class PaymentRepository extends BaseRepository {
|
|||||||
*/
|
*/
|
||||||
private function processExchangeRates($data, $payment)
|
private function processExchangeRates($data, $payment)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
if(array_key_exists('exchange_rate', $data) && isset($data['exchange_rate']))
|
||||||
|
return $payment;
|
||||||
|
|
||||||
$client = Client::find($data['client_id']);
|
$client = Client::find($data['client_id']);
|
||||||
|
|
||||||
$client_currency = $client->getSetting('currency_id');
|
$client_currency = $client->getSetting('currency_id');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user