diff --git a/fixtures/countryInfo.json b/fixtures/countryInfo.json
index 59825d7c0..25c9e45a0 100644
--- a/fixtures/countryInfo.json
+++ b/fixtures/countryInfo.json
@@ -2212,8 +2212,10 @@
},
"Yemen": {
"code": "ye",
+ "currency": "YER",
"currency_fraction": "Fils",
"currency_fraction_units": 100,
+ "currency_name": "Yemeni Rial",
"currency_symbol": "﷼",
"timezones": ["Asia/Aden"],
"locale": "ar-YE"
diff --git a/fyo/model/types.ts b/fyo/model/types.ts
index 8c2f52799..e88c1db82 100644
--- a/fyo/model/types.ts
+++ b/fyo/model/types.ts
@@ -9,6 +9,7 @@ import type { AccountingSettings } from 'models/baseModels/AccountingSettings/Ac
import type { Defaults } from 'models/baseModels/Defaults/Defaults';
import type { PrintSettings } from 'models/baseModels/PrintSettings/PrintSettings';
import type { InventorySettings } from 'models/inventory/InventorySettings';
+import { Misc } from 'models/baseModels/Misc';
/**
* The functions below are used for dynamic evaluation
@@ -55,6 +56,7 @@ export interface SinglesMap {
InventorySettings?: InventorySettings;
PrintSettings?: PrintSettings;
Defaults?: Defaults;
+ Misc?: Misc;
[key: string]: Doc | undefined;
}
diff --git a/models/baseModels/Misc.ts b/models/baseModels/Misc.ts
new file mode 100644
index 000000000..87544f556
--- /dev/null
+++ b/models/baseModels/Misc.ts
@@ -0,0 +1,8 @@
+import { Doc } from 'fyo/model/doc';
+import { HiddenMap } from 'fyo/model/types';
+
+export class Misc extends Doc {
+ openCount?: number;
+ useFullWidth?: boolean;
+ override hidden: HiddenMap = {};
+}
diff --git a/models/index.ts b/models/index.ts
index fbebae439..e2009b846 100644
--- a/models/index.ts
+++ b/models/index.ts
@@ -7,12 +7,14 @@ import { Defaults } from './baseModels/Defaults/Defaults';
import { Item } from './baseModels/Item/Item';
import { JournalEntry } from './baseModels/JournalEntry/JournalEntry';
import { JournalEntryAccount } from './baseModels/JournalEntryAccount/JournalEntryAccount';
+import { Misc } from './baseModels/Misc';
import { Party } from './baseModels/Party/Party';
import { Payment } from './baseModels/Payment/Payment';
import { PaymentFor } from './baseModels/PaymentFor/PaymentFor';
import { PriceList } from './baseModels/PriceList/PriceList';
import { PriceListItem } from './baseModels/PriceList/PriceListItem';
import { PrintSettings } from './baseModels/PrintSettings/PrintSettings';
+import { PrintTemplate } from './baseModels/PrintTemplate';
import { PurchaseInvoice } from './baseModels/PurchaseInvoice/PurchaseInvoice';
import { PurchaseInvoiceItem } from './baseModels/PurchaseInvoiceItem/PurchaseInvoiceItem';
import { SalesInvoice } from './baseModels/SalesInvoice/SalesInvoice';
@@ -32,7 +34,6 @@ import { StockLedgerEntry } from './inventory/StockLedgerEntry';
import { StockMovement } from './inventory/StockMovement';
import { StockMovementItem } from './inventory/StockMovementItem';
-import { PrintTemplate } from './baseModels/PrintTemplate';
export const models = {
Account,
AccountingLedgerEntry,
@@ -43,6 +44,7 @@ export const models = {
Item,
JournalEntry,
JournalEntryAccount,
+ Misc,
Party,
Payment,
PaymentFor,
diff --git a/src/App.vue b/src/App.vue
index 843f63cd3..9f7e98837 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -232,13 +232,15 @@ export default defineComponent({
const { onboardingComplete } = await fyo.doc.getDoc('GetStarted');
const { hideGetStarted } = await fyo.doc.getDoc('SystemSettings');
+ let route = '/get-started';
if (hideGetStarted || onboardingComplete) {
- await routeTo('/');
- } else {
- await routeTo('/get-started');
+ route = '/';
}
+
+ await routeTo(localStorage.getItem('lastRoute') || route);
},
async showDbSelector(): Promise {
+ localStorage.clear();
fyo.config.set('lastSelectedFilePath', null);
fyo.telemetry.stop();
await fyo.purgeCache();
diff --git a/src/components/Dialog.vue b/src/components/Dialog.vue
index f893bb8e4..c86bffb3b 100644
--- a/src/components/Dialog.vue
+++ b/src/components/Dialog.vue
@@ -26,7 +26,16 @@
:class="config.iconColor"
/>
- {{ detail }}
+
+
+
+ {{ detail }}
+
+
+
+
@@ -40,7 +40,7 @@
{{ t`New Company` }}
- {{ t`Create a new company and store it on your computer.` }}
+ {{ t`Create a new company and store it on your computer` }}
@@ -59,7 +59,7 @@
{{ t`Existing Company` }}
- {{ t`Load an existing company from your computer.` }}
+ {{ t`Load an existing company from your computer` }}
@@ -79,7 +79,7 @@
{{ t`Create Demo` }}
- {{ t`Create an instance with demo data to try out Frappe Books.` }}
+ {{ t`Create a demo company to try out Frappe Books` }}
diff --git a/src/pages/PrintView/PrintView.vue b/src/pages/PrintView/PrintView.vue
index 18cf1f57b..2c4d1ecd3 100644
--- a/src/pages/PrintView/PrintView.vue
+++ b/src/pages/PrintView/PrintView.vue
@@ -1,22 +1,20 @@
-
-
-
-
+
+