mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 13:12:50 +01:00
allow total columns to be customized in PDF
This commit is contained in:
parent
07e8ded6a7
commit
5daeab3895
@ -593,6 +593,19 @@ class CompanySettings extends BaseSettings
|
||||
'$task.tax',
|
||||
'$task.line_total',
|
||||
],
|
||||
'total_columns' => [
|
||||
'$total_taxes',
|
||||
'$line_taxes',
|
||||
'$subtotal',
|
||||
'$total',
|
||||
'$discount',
|
||||
'$custom_surcharge1',
|
||||
'$custom_surcharge2',
|
||||
'$custom_surcharge3',
|
||||
'$custom_surcharge4',
|
||||
'$paid_to_date',
|
||||
'$client.balance'
|
||||
],
|
||||
];
|
||||
|
||||
return json_decode(json_encode($variables));
|
||||
|
@ -53,6 +53,7 @@ class UpdateExchangeRates implements ShouldQueue
|
||||
|
||||
private function updateCurrencies()
|
||||
{
|
||||
info("updating currencies");
|
||||
|
||||
if(empty(config('ninja.currency_converter_api_key')))
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user