2
0
mirror of https://github.com/frappe/books.git synced 2024-11-12 16:36:27 +00:00

FIX : Translation not made and code suggestion

This commit is contained in:
Maël Chouteau 2022-08-24 10:35:13 -05:00
parent 7398b04743
commit e23f788331
5 changed files with 23 additions and 18 deletions

View File

@ -21,6 +21,21 @@ export function getCOAList() {
{ countryCode: 'ni', name: 'Nicaragua - Catalogo de Cuentas' },
{ countryCode: 'nl', name: 'Netherlands - Grootboekschema' },
{ countryCode: 'sg', name: 'Singapore - Chart of Accounts' },
{ countryCode: 'th', name: 'Thailand - Chart of Accounts' },
{ countryCode: 'us', name: 'United States - Chart of Accounts' },
{ countryCode: 've', name: 'Venezuela - Plan de Cuentas' },
{ countryCode: 'za', name: 'South Africa - Chart of Accounts' },
{ countryCode: 'fr', name: 'France - Plan comptable' },
{ countryCode: 'de', name: 'Germany - Kontenplan' },
{ countryCode: 'it', name: 'Italy - Piano dei Conti' },
{ countryCode: 'es', name: 'Spain - Plan de Cuentas' },
{ countryCode: 'pt', name: 'Portugal - Plan de Contas' },
{ countryCode: 'pl', name: 'Poland - Rejestr Kont' },
{ countryCode: 'ro', name: 'Romania - Contabilitate' },
{ countryCode: 'ru', name: 'Russia - Chart of Accounts' },
{ countryCode: 'se', name: 'Sweden - Kontoplan' },
{ countryCode: 'ch', name: 'Switzerland - Kontenplan' },
{ countryCode: 'tr', name: 'Turkey - Chart of Accounts' },
];
}

View File

@ -124,9 +124,9 @@
</template>
<script>
import { fyo } from 'src/initFyo';
import { t } from 'fyo';
import { FieldTypeEnum } from 'schemas/types';
import { fyo } from 'src/initFyo';
import { getRandomString } from 'utils';
import Button from './Button';
import FormControl from './Controls/FormControl.vue';

View File

@ -135,11 +135,11 @@
</div>
</template>
<script>
import { fyo } from 'src/initFyo';
import { t } from 'fyo';
import { isCredit } from 'models/helpers';
import { ModelNameEnum } from 'models/types';
import PageHeader from 'src/components/PageHeader';
import { fyo } from 'src/initFyo';
import { docsPathMap } from 'src/utils/misc';
import { docsPath, openQuickEdit } from 'src/utils/ui';
import { nextTick } from 'vue';
@ -306,10 +306,7 @@ export default {
},
isQuickEditOpen(account) {
let { edit, schemaName, name } = this.$route.query;
if (edit && schemaName === 'Account' && name === account.name) {
return true;
}
return false;
return !!(edit && schemaName === 'Account' && name === account.name);
},
getIconComponent(account) {
let icons = {
@ -346,11 +343,9 @@ export default {
let icon = account.isGroup ? folder : leaf;
let c = {
return {
template: icons[account.name] || icon,
};
return c;
},
},
computed: {

View File

@ -302,12 +302,7 @@ async function getBankAccountParentName(country: string, fyo: Fyo) {
async function createDefaultNumberSeries(fyo: Fyo) {
await createNumberSeries('SINV-', 'SalesInvoice', DEFAULT_SERIES_START, fyo);
await createNumberSeries(
'PINV-',
'PurchaseInvoice',
DEFAULT_SERIES_START,
fyo
);
await createNumberSeries('PINV-', 'PurchaseInvoice', DEFAULT_SERIES_START, fyo);
await createNumberSeries('PAY-', 'Payment', DEFAULT_SERIES_START, fyo);
await createNumberSeries('JV-', 'JournalEntry', DEFAULT_SERIES_START, fyo);
}

View File

@ -33,7 +33,7 @@ function getRegionalSidebar(): SidebarRoot[] {
return [
{
label: 'GST',
label: t`GST`,
name: 'gst',
icon: 'gst',
route: '/report/GSTR1',
@ -162,7 +162,7 @@ function getCompleteSidebar(): SidebarConfig {
},
{
label: t`Reports`,
name: t`reports`,
name: 'reports',
icon: 'reports',
route: '/report/GeneralLedger',
items: [
@ -191,7 +191,7 @@ function getCompleteSidebar(): SidebarConfig {
...getRegionalSidebar(),
{
label: t`Setup`,
name: t`setup`,
name: 'setup',
icon: 'settings',
route: '/chart-of-accounts',
items: [