Various fixes for sqlite databases

This commit is contained in:
James Cole
2024-12-28 10:52:46 +01:00
parent da88e02be0
commit f2166b97b8
9 changed files with 28 additions and 23 deletions

View File

@@ -1913,6 +1913,7 @@ return [
'extension_date_is' => 'Extension date is {date}',
// accounts:
'account_locked_currency' => 'The currency of this account must remain :name as long as piggy banks are linked to it.',
'i_am_owed_amount' => 'I am owed amount',
'i_owe_amount' => 'I owe amount',
'inactive_account_link' => 'You have :count inactive (archived) account, which you can view on this separate page.|You have :count inactive (archived) accounts, which you can view on this separate page.',

View File

@@ -27,9 +27,12 @@
</div>
<div class="box-body">
{{ ExpandedForm.text('name', account.name) }}
{% if account.accountType.type == 'Default account' or account.accountType.type == 'Asset account' or objectType == 'liabilities' %}
{% if canEditCurrency and (account.accountType.type == 'Default account' or account.accountType.type == 'Asset account' or objectType == 'liabilities') %}
{{ CurrencyForm.currencyList('currency_id', null, {helpText:'account_default_currency'|_}) }}
{% endif %}
{% if not canEditCurrency and (account.accountType.type == 'Default account' or account.accountType.type == 'Asset account' or objectType == 'liabilities') %}
<input type="hidden" name="currency_id" value="{{ currency.id }}"/>
{{ ExpandedForm.staticText('currency_id', trans('firefly.account_locked_currency', {name: currency.name})) }}
{% endif %}
{% if objectType == 'liabilities' %}