diff --git a/fyo/model/naming.ts b/fyo/model/naming.ts index e34b3ab0..d3e53c6a 100644 --- a/fyo/model/naming.ts +++ b/fyo/model/naming.ts @@ -74,7 +74,7 @@ export async function getLastInserted(schemaName: string, fyo: Fyo) { const lastInserted = await fyo.db.getAll(schemaName, { fields: ['name'], limit: 1, - orderBy: 'creation', + orderBy: 'created', order: 'desc', }); return lastInserted && lastInserted.length ? lastInserted[0] : null; diff --git a/models/baseModels/JournalEntry/JournalEntry.ts b/models/baseModels/JournalEntry/JournalEntry.ts index 4e89617f..0a9f1cc1 100644 --- a/models/baseModels/JournalEntry/JournalEntry.ts +++ b/models/baseModels/JournalEntry/JournalEntry.ts @@ -1,10 +1,10 @@ -import { Fyo } from 'fyo'; +import { Fyo, t } from 'fyo'; import { Doc } from 'fyo/model/doc'; import { Action, DefaultMap, FiltersMap, - ListViewSettings, + ListViewSettings } from 'fyo/model/types'; import { DateTime } from 'luxon'; import { getLedgerLinkAction } from 'models/helpers'; @@ -56,13 +56,13 @@ export class JournalEntry extends Doc { return [getLedgerLinkAction(fyo)]; } - static getListViewSettings(fyo: Fyo): ListViewSettings { + static getListViewSettings(): ListViewSettings { return { formRoute: (name) => `/edit/JournalEntry/${name}`, columns: [ 'date', { - label: fyo.t`Status`, + label: t`Status`, fieldtype: 'Select', size: 'small', render(doc) { @@ -84,7 +84,7 @@ export class JournalEntry extends Doc { }, }, { - label: fyo.t`Entry ID`, + label: t`Entry ID`, fieldtype: 'Data', fieldname: 'name', getValue(doc) { diff --git a/models/baseModels/Payment/Payment.ts b/models/baseModels/Payment/Payment.ts index 40808739..a2546625 100644 --- a/models/baseModels/Payment/Payment.ts +++ b/models/baseModels/Payment/Payment.ts @@ -1,4 +1,4 @@ -import { Fyo } from 'fyo'; +import { Fyo, t } from 'fyo'; import { DocValue } from 'fyo/core/types'; import { Doc } from 'fyo/model/doc'; import { @@ -374,7 +374,7 @@ export class Payment extends Doc { columns: [ 'party', { - label: fyo.t`Status`, + label: t`Status`, fieldname: 'status', fieldtype: 'Select', size: 'small', diff --git a/src/App.vue b/src/App.vue index 2118a3ae..90d0df0a 100644 --- a/src/App.vue +++ b/src/App.vue @@ -117,8 +117,7 @@ export default { if (hideGetStarted || onboardingComplete) { routeTo('/'); } else { - // routeTo('/get-started'); - routeTo('/settings'); + routeTo('/get-started'); } }, async changeDbFile() { diff --git a/src/components/Avatar.vue b/src/components/Avatar.vue index ff31babf..3d8fc1b2 100644 --- a/src/components/Avatar.vue +++ b/src/components/Avatar.vue @@ -8,7 +8,17 @@ />
{{ label && label[0] }}
@@ -22,17 +32,17 @@ export default { imageURL: String, label: String, size: { - default: 'md' - } + default: 'md', + }, }, computed: { sizeClasses() { return { sm: 'w-5 h-5', md: 'w-7 h-7', - lg: 'w-9 h-9' + lg: 'w-9 h-9', }[this.size]; - } - } + }, + }, }; diff --git a/src/components/BackLink.vue b/src/components/BackLink.vue index aa305a88..9b896474 100644 --- a/src/components/BackLink.vue +++ b/src/components/BackLink.vue @@ -1,4 +1,4 @@ -