route.query,
},
},
+ */
{
- path: '/list/:doctype/:fieldname?/:value?',
+ path: '/list/:schemaName/:fieldname?/:value?',
name: 'ListView',
components: {
default: ListView,
@@ -63,7 +64,7 @@ const routes: RouteRecordRaw[] = [
},
props: {
default: (route) => {
- const { doctype, fieldname, value } = route.params;
+ const { schemaName, fieldname, value } = route.params;
let { filters } = route.params;
if (filters === undefined && fieldname && value) {
@@ -72,13 +73,14 @@ const routes: RouteRecordRaw[] = [
}
return {
- doctype,
+ schemaName,
filters,
};
},
edit: (route) => route.query,
},
},
+ /*
{
path: '/print/:doctype/:name',
name: 'PrintView',
@@ -108,8 +110,7 @@ const routes: RouteRecordRaw[] = [
name: 'Data Import',
component: DataImport,
},
-*/
- {
+*/ {
path: '/settings',
name: 'Settings',
component: Settings,
diff --git a/src/utils/sidebarConfig.ts b/src/utils/sidebarConfig.ts
index 15743087..56f54400 100644
--- a/src/utils/sidebarConfig.ts
+++ b/src/utils/sidebarConfig.ts
@@ -52,25 +52,25 @@ function getCompleteSidebar(): SidebarConfig {
label: t`Sales Invoices`,
name: 'sales-invoices',
route: '/list/SalesInvoice',
- doctype: 'SalesInvoice',
+ schemaName: 'SalesInvoice',
},
{
label: t`Payments`,
name: 'payments',
route: '/list/Payment/paymentType/Receive',
- doctype: 'Payment',
+ schemaName: 'Payment',
},
{
label: t`Customers`,
name: 'customers',
- route: '/list/Customer',
- doctype: 'Customer',
+ route: '/list/Party/role/Customer',
+ schemaName: 'Party',
},
{
label: t`Sales Items`,
name: 'sales-items',
route: '/list/Item/for/sales',
- doctype: 'Item',
+ schemaName: 'Item',
},
],
},
@@ -84,25 +84,25 @@ function getCompleteSidebar(): SidebarConfig {
label: t`Purchase Invoices`,
name: 'purchase-invoices',
route: '/list/PurchaseInvoice',
- doctype: 'PurchaseInvoice',
+ schemaName: 'PurchaseInvoice',
},
{
label: t`Payments`,
name: 'payments',
route: '/list/Payment/paymentType/Pay',
- doctype: 'Payment',
+ schemaName: 'Payment',
},
{
label: t`Suppliers`,
name: 'suppliers',
- route: '/list/Supplier',
- doctype: 'Supplier',
+ route: '/list/Party/role/Supplier',
+ schemaName: 'Party',
},
{
label: t`Purchase Items`,
name: 'purchase-items',
route: '/list/Item/for/purchases',
- doctype: 'Item',
+ schemaName: 'Item',
},
],
},
@@ -116,13 +116,19 @@ function getCompleteSidebar(): SidebarConfig {
label: t`Journal Entry`,
name: 'journal-entry',
route: '/list/JournalEntry',
- doctype: 'JournalEntry',
+ schemaName: 'JournalEntry',
},
{
label: t`Common Items`,
name: 'common-items',
route: '/list/Item/for/both',
- doctype: 'Item',
+ schemaName: 'Item',
+ },
+ {
+ label: t`Party`,
+ name: 'party',
+ route: '/list/Party/role/Both',
+ schemaName: 'Party',
},
],
},
@@ -181,7 +187,7 @@ function getCompleteSidebar(): SidebarConfig {
label: t`Taxes`,
name: 'taxes',
route: '/list/Tax',
- doctype: 'Tax',
+ schemaName: 'Tax',
},
{
label: t`Data Import`,
diff --git a/src/utils/types.ts b/src/utils/types.ts
index ba77da68..4aa2b153 100644
--- a/src/utils/types.ts
+++ b/src/utils/types.ts
@@ -44,6 +44,6 @@ export interface SidebarItem {
label: string;
name: string;
route: string;
- doctype?: string;
+ schemaName?: string;
hidden?: () => boolean;
}
diff --git a/translations/ar.csv b/translations/ar.csv
index e8083d0c..c86a3d81 100644
--- a/translations/ar.csv
+++ b/translations/ar.csv
@@ -445,7 +445,7 @@
`Setup Complete`,`اكتمل الإعداد`
`Setup Wizard`,`معالج الإعداد`
`Setup your organization`,`إعداد منظمتك`
-`Setup your workspace`,`إعداد مساحة العمل الخاصة بك`
+`Setup Your Workspace`,`إعداد مساحة العمل الخاصة بك`
`Show Me`,`أرني`
`Smallest Currency Fraction Value`,`أصغر قيمة لكسر العملة`
`Softwares`,`البرامج`
diff --git a/translations/ca-ES.csv b/translations/ca-ES.csv
index a2b83414..742d3ef9 100644
--- a/translations/ca-ES.csv
+++ b/translations/ca-ES.csv
@@ -491,7 +491,7 @@
`Setup your opening balances before performing any accounting entries`,`Configureu els saldos d'obertura abans de realitzar qualsevol entrada comptable`
`Setup your organization`,`Configura la teva empresa`
`Setup your tax templates for your sales or purchase transactions`,`Configura les plantilles de taxes per a les vendes o compres`
-`Setup your workspace`,`Configura el teu espai de treball`
+`Setup Your Workspace`,`Configura el teu espai de treball`
`Show Me`,`Mostra'm`
`Smallest Currency Fraction Value`,`Valor de fracció de la divisa més petit`
`Softwares`,`Programari`
diff --git a/translations/de.csv b/translations/de.csv
index 3aa6a6e1..8246bd65 100644
--- a/translations/de.csv
+++ b/translations/de.csv
@@ -397,7 +397,7 @@
`Setup Complete`,`Einrichtung abgeschlossen`
`Setup Wizard`,`Einrichtungsassistent`
`Setup your organization`,`Einrichtung Ihrer Organisation`
-`Setup your workspace`,`Einrichten Ihres Arbeitsbereichs`
+`Setup Your Workspace`,`Einrichten Ihres Arbeitsbereichs`
`Smallest Currency Fraction Value`,`Kleinster Wert eines Währungsbruchteils`
`Softwares`,`Software`
`Something has gone terribly wrong. Please check the console and raise an issue.`,`Etwas ist furchtbar schief gelaufen. Bitte prüfen Sie die Konsole und melden Sie ein Problem.`
diff --git a/translations/fr.csv b/translations/fr.csv
index 0df7e79d..70079aed 100644
--- a/translations/fr.csv
+++ b/translations/fr.csv
@@ -397,7 +397,7 @@
`Setup Complete`,`Configuration terminée`
`Setup Wizard`,`Assistant de configuration`
`Setup your organization`,`Configurer votre organisation`
-`Setup your workspace`,`Configurez votre espace de travail`
+`Setup Your Workspace`,`Configurez votre espace de travail`
`Smallest Currency Fraction Value`,`Valeur de la plus petite fraction de la monnaie`
`Softwares`,`Logiciels`
`Something has gone terribly wrong. Please check the console and raise an issue.`,`Quelque chose s'est terriblement mal passé. Veuillez vérifier la console et soulever un problème.`
diff --git a/translations/pt.csv b/translations/pt.csv
index 6a002cdf..082dd503 100644
--- a/translations/pt.csv
+++ b/translations/pt.csv
@@ -397,7 +397,7 @@
`Setup Complete`,`Configuração Completa`
`Setup Wizard`,`Assistente de Configuração`
`Setup your organization`,`Configure a sua organização`
-`Setup your workspace`,`Configure o seu espaço de trabalho`
+`Setup Your Workspace`,`Configure o seu espaço de trabalho`
`Smallest Currency Fraction Value`,`Menor valor de fracção da moeda`
`Softwares`,`Aplicações informáticas`
`Something has gone terribly wrong. Please check the console and raise an issue.`,`Algo correu terrivelmente mal. Por favor, verifique a consola e levante um problema.`