mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-23 20:00:33 -04:00
Exchange rates
This commit is contained in:
parent
3479c127fd
commit
9fd40f55c6
@ -64,6 +64,7 @@ class SendRecurring implements ShouldQueue
|
||||
->applyNumber()
|
||||
->createInvitations()
|
||||
->fillDefaults()
|
||||
->setExchangeRate()
|
||||
->save();
|
||||
|
||||
nlog("Invoice {$invoice->number} created");
|
||||
|
@ -14,6 +14,7 @@ namespace App\Services\Invoice;
|
||||
use App\Jobs\Entity\CreateEntityPdf;
|
||||
use App\Jobs\Invoice\InvoiceWorkflowSettings;
|
||||
use App\Jobs\Util\UnlinkFile;
|
||||
use App\Libraries\Currency\Conversion\CurrencyApi;
|
||||
use App\Models\CompanyGateway;
|
||||
use App\Models\Expense;
|
||||
use App\Models\Invoice;
|
||||
@ -62,7 +63,14 @@ class InvoiceService
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function setExchangeRate()
|
||||
{
|
||||
$exchange_rate = new CurrencyApi();
|
||||
|
||||
// $payment->exchange_rate = $exchange_rate->exchangeRate($client_currency, $company_currency, Carbon::parse($payment->date));
|
||||
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Applies the recurring invoice number.
|
||||
* @return $this InvoiceService object
|
||||
|
Loading…
x
Reference in New Issue
Block a user