1
0
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:
David Bomba 2020-08-14 13:59:14 +10:00
parent 07e8ded6a7
commit 5daeab3895
2 changed files with 14 additions and 0 deletions

View File

@ -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));

View File

@ -53,6 +53,7 @@ class UpdateExchangeRates implements ShouldQueue
private function updateCurrencies()
{
info("updating currencies");
if(empty(config('ninja.currency_converter_api_key')))
return;