@apptimate/core-lib 2.6.0 → 2.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/constants/menus.ts +39 -30
package/package.json
CHANGED
package/src/constants/menus.ts
CHANGED
|
@@ -73,7 +73,8 @@ export const MENU_ITEM_REGISTRY: RegistryItem[] = [
|
|
|
73
73
|
{ key: 'core__template_groups', label: 'Template Groups', path: '/system/template-groups', module: 'Core', defaultGroup: 'System' },
|
|
74
74
|
{ key: 'core__warehouses', label: 'Warehouses', path: '/warehouses', module: 'Core', defaultGroup: 'Resources' },
|
|
75
75
|
{ key: 'core__terminals', label: 'Terminals', path: '/terminals', module: 'Core', defaultGroup: 'Resources' },
|
|
76
|
-
{ key: 'core__currencies', label: 'Currencies', path: '/currencies', module: 'Core', defaultGroup: '
|
|
76
|
+
{ key: 'core__currencies', label: 'Currencies', path: '/currencies', module: 'Core', defaultGroup: 'Resources' },
|
|
77
|
+
{ key: 'core__settings', label: 'Settings', path: '/settings', module: 'Core', defaultGroup: 'Configuration' },
|
|
77
78
|
|
|
78
79
|
// ── Inventory Module ──
|
|
79
80
|
{ key: 'inventory__items', label: 'Items', path: '/inventory/items', module: 'Inventory', defaultGroup: 'Catalog' },
|
|
@@ -125,7 +126,7 @@ export const MENU_ITEM_REGISTRY: RegistryItem[] = [
|
|
|
125
126
|
|
|
126
127
|
// ── Jewelry Module ──
|
|
127
128
|
{ key: 'jewelry__items', label: 'Jewelry Items', path: '/jewelry/items', module: 'Jewelry', defaultGroup: 'Catalog' },
|
|
128
|
-
|
|
129
|
+
|
|
129
130
|
{ key: 'jewelry__categories', label: 'Categories', path: '/jewelry/categories', module: 'Jewelry', defaultGroup: 'Catalog' },
|
|
130
131
|
{ key: 'jewelry__material_types', label: 'Material Types', path: '/jewelry/material-types', module: 'Jewelry', defaultGroup: 'Master Data' },
|
|
131
132
|
{ key: 'jewelry__purities', label: 'Purities', path: '/jewelry/purities', module: 'Jewelry', defaultGroup: 'Master Data' },
|
|
@@ -133,16 +134,17 @@ export const MENU_ITEM_REGISTRY: RegistryItem[] = [
|
|
|
133
134
|
{ key: 'jewelry__purchase_orders', label: 'Purchase Orders', path: '/jewelry/procurement/orders', module: 'Jewelry', defaultGroup: 'Procurement' },
|
|
134
135
|
{ key: 'jewelry__grn', label: 'Goods Receipt', path: '/jewelry/procurement/grn', module: 'Jewelry', defaultGroup: 'Procurement' },
|
|
135
136
|
{ key: 'jewelry__custom_orders', label: 'Custom Orders', path: '/jewelry/custom-orders', module: 'Jewelry', defaultGroup: 'Procurement' },
|
|
137
|
+
{ key: 'jewelry__service_orders', label: 'Service Orders', path: '/jewelry/service-orders', module: 'Jewelry', defaultGroup: 'Procurement' },
|
|
136
138
|
{ key: 'jewelry__transformations', label: 'Transformations', path: '/jewelry/procurement/transformations', module: 'Jewelry', defaultGroup: 'Procurement' },
|
|
137
139
|
{ key: 'jewelry__old_gold_purchases', label: 'Old Material Purchases', path: '/jewelry/old-gold-purchases', module: 'Jewelry', defaultGroup: 'Buying' },
|
|
138
140
|
{ key: 'jewelry__sales', label: 'Sales', path: '/jewelry/sales', module: 'Jewelry', defaultGroup: 'Sales' },
|
|
139
141
|
{ key: 'jewelry__sales_returns', label: 'Sales Returns', path: '/jewelry/sales-returns', module: 'Jewelry', defaultGroup: 'Sales' },
|
|
140
|
-
|
|
142
|
+
|
|
141
143
|
{ key: 'jewelry__stock_balances', label: 'Stock Balances', path: '/jewelry/stock/balances', module: 'Jewelry', defaultGroup: 'Stock' },
|
|
142
144
|
{ key: 'jewelry__stock_movements', label: 'Stock Movements', path: '/jewelry/stock/movements', module: 'Jewelry', defaultGroup: 'Stock' },
|
|
143
145
|
{ key: 'jewelry__stock_transfers', label: 'Transfers', path: '/jewelry/stock-transfers', module: 'Jewelry', defaultGroup: 'Stock' },
|
|
144
146
|
{ key: 'jewelry__party_transactions', label: 'Party Transactions', path: '/jewelry/party-transactions', module: 'Jewelry', defaultGroup: 'Karigar' },
|
|
145
|
-
|
|
147
|
+
|
|
146
148
|
{ key: 'jewelry__karigar_making_charges', label: 'Making Charges', path: '/jewelry/karigar-making-charges', module: 'Jewelry', defaultGroup: 'Karigar' },
|
|
147
149
|
{ key: 'jewelry__party_metal_balances', label: 'Party Metal Balances', path: '/jewelry/party-metal-balances', module: 'Jewelry', defaultGroup: 'Karigar' },
|
|
148
150
|
{ key: 'jewelry__metal_settlements', label: 'Metal Settlements', path: '/jewelry/metal-settlements', module: 'Jewelry', defaultGroup: 'Karigar' },
|
|
@@ -183,15 +185,17 @@ export const MENU_ITEM_REGISTRY: RegistryItem[] = [
|
|
|
183
185
|
{ key: 'money_exchange__transactions', label: 'Transactions', path: '/money-exchange/transactions', module: 'Money Exchange', defaultGroup: 'Operations' },
|
|
184
186
|
{ key: 'money_exchange__till', label: 'Till', path: '/money-exchange/till', module: 'Money Exchange', defaultGroup: 'Inventory & Stock' },
|
|
185
187
|
{ key: 'money_exchange__branch_stock', label: 'Vault', path: '/money-exchange/branch-stock', module: 'Money Exchange', defaultGroup: 'Inventory & Stock' },
|
|
186
|
-
{ key: 'money_exchange__opening_stock', label: 'Opening Stock', path: '/money-exchange/opening-stock', module: 'Money Exchange', defaultGroup: '
|
|
188
|
+
{ key: 'money_exchange__opening_stock', label: 'Opening Stock', path: '/money-exchange/opening-stock', module: 'Money Exchange', defaultGroup: 'Config' },
|
|
187
189
|
{ key: 'money_exchange__internal_transfers', label: 'Internal Transfers', path: '/money-exchange/internal-transfers', module: 'Money Exchange', defaultGroup: 'Inventory & Stock' },
|
|
188
190
|
{ key: 'money_exchange__wholesale', label: 'Wholesale Operations', path: '/money-exchange/wholesale', module: 'Money Exchange', defaultGroup: 'Wholesale' },
|
|
189
191
|
{ key: 'money_exchange__suppliers', label: 'Supplier Registry', path: '/money-exchange/suppliers', module: 'Money Exchange', defaultGroup: 'Wholesale' },
|
|
190
|
-
{ key: 'money_exchange__remittance_agents', label: 'Agent Registry', path: '/money-exchange/agents', module: 'Money Exchange', defaultGroup: 'Remittances' },
|
|
191
|
-
{ key: 'money_exchange__remittance_corridors', label: 'Corridors', path: '/money-exchange/corridors', module: 'Money Exchange', defaultGroup: 'Remittances' },
|
|
192
|
-
{ key: 'money_exchange__remittances', label: 'Transactions', path: '/money-exchange/remittances', module: 'Money Exchange', defaultGroup: 'Remittances' },
|
|
193
|
-
{ key: 'money_exchange__remittance_settlements', label: 'Settlements', path: '/money-exchange/settlements', module: 'Money Exchange', defaultGroup: 'Remittances' },
|
|
192
|
+
// { key: 'money_exchange__remittance_agents', label: 'Agent Registry', path: '/money-exchange/agents', module: 'Money Exchange', defaultGroup: 'Remittances' },
|
|
193
|
+
// { key: 'money_exchange__remittance_corridors', label: 'Corridors', path: '/money-exchange/corridors', module: 'Money Exchange', defaultGroup: 'Remittances' },
|
|
194
|
+
// { key: 'money_exchange__remittances', label: 'Transactions', path: '/money-exchange/remittances', module: 'Money Exchange', defaultGroup: 'Remittances' },
|
|
195
|
+
// { key: 'money_exchange__remittance_settlements', label: 'Settlements', path: '/money-exchange/settlements', module: 'Money Exchange', defaultGroup: 'Remittances' },
|
|
194
196
|
{ key: 'money_exchange__denominations', label: 'Denomination', path: '/money-exchange/denominations', module: 'Money Exchange', defaultGroup: 'Config' },
|
|
197
|
+
{ key: 'money_exchange__till_thresholds', label: 'Till Thresholds', path: '/money-exchange/till-thresholds', module: 'Money Exchange', defaultGroup: 'Config' },
|
|
198
|
+
{ key: 'money_exchange__cross_currency', label: 'Margin Rate', path: '/money-exchange/cross-currency', module: 'Money Exchange', defaultGroup: 'Config' },
|
|
195
199
|
];
|
|
196
200
|
|
|
197
201
|
/**
|
|
@@ -263,7 +267,7 @@ export interface MenuPreset {
|
|
|
263
267
|
export const MENU_PRESETS: MenuPreset[] = [
|
|
264
268
|
{
|
|
265
269
|
id: 'default_full',
|
|
266
|
-
label: '
|
|
270
|
+
label: 'Default',
|
|
267
271
|
description: 'System modules only',
|
|
268
272
|
primaryMenus: [
|
|
269
273
|
{
|
|
@@ -275,7 +279,7 @@ export const MENU_PRESETS: MenuPreset[] = [
|
|
|
275
279
|
'core__warehouses', 'core__terminals',
|
|
276
280
|
'core__activity_logs', 'core__api_requests', 'core__feature_access_logs',
|
|
277
281
|
'core__issue_logs', 'core__feature_registry', 'core__menu_config',
|
|
278
|
-
'core__printables', 'core__template_groups', 'core__currencies',
|
|
282
|
+
'core__printables', 'core__template_groups', 'core__currencies', 'core__settings',
|
|
279
283
|
],
|
|
280
284
|
},
|
|
281
285
|
{
|
|
@@ -326,12 +330,12 @@ export const MENU_PRESETS: MenuPreset[] = [
|
|
|
326
330
|
secondaryItems: [
|
|
327
331
|
'jewelry__items', 'jewelry__categories',
|
|
328
332
|
'jewelry__material_types', 'jewelry__purities', 'jewelry__metal_rates',
|
|
329
|
-
'jewelry__purchase_orders', 'jewelry__grn', 'jewelry__custom_orders', 'jewelry__transformations',
|
|
333
|
+
'jewelry__purchase_orders', 'jewelry__grn', 'jewelry__custom_orders', 'jewelry__service_orders', 'jewelry__transformations',
|
|
330
334
|
'jewelry__old_gold_purchases',
|
|
331
335
|
'jewelry__sales', 'jewelry__sales_returns',
|
|
332
336
|
'jewelry__stock_balances', 'jewelry__stock_movements', 'jewelry__stock_transfers',
|
|
333
337
|
'jewelry__party_transactions',
|
|
334
|
-
|
|
338
|
+
|
|
335
339
|
'jewelry__karigar_making_charges',
|
|
336
340
|
'jewelry__party_metal_balances',
|
|
337
341
|
'jewelry__metal_settlements',
|
|
@@ -363,11 +367,13 @@ export const MENU_PRESETS: MenuPreset[] = [
|
|
|
363
367
|
'money_exchange__internal_transfers',
|
|
364
368
|
'money_exchange__wholesale',
|
|
365
369
|
'money_exchange__suppliers',
|
|
366
|
-
'money_exchange__remittance_agents',
|
|
367
|
-
'money_exchange__remittance_corridors',
|
|
368
|
-
'money_exchange__remittances',
|
|
369
|
-
'money_exchange__remittance_settlements',
|
|
370
|
+
// 'money_exchange__remittance_agents',
|
|
371
|
+
// 'money_exchange__remittance_corridors',
|
|
372
|
+
// 'money_exchange__remittances',
|
|
373
|
+
// 'money_exchange__remittance_settlements',
|
|
370
374
|
'money_exchange__denominations',
|
|
375
|
+
'money_exchange__till_thresholds',
|
|
376
|
+
'money_exchange__cross_currency',
|
|
371
377
|
],
|
|
372
378
|
},
|
|
373
379
|
],
|
|
@@ -663,7 +669,7 @@ export const APP_MENUS: MainMenuItem[] = [
|
|
|
663
669
|
label: "Catalog",
|
|
664
670
|
items: [
|
|
665
671
|
{ id: "jewelry_items", label: "Jewelry Items", path: "/jewelry/items" },
|
|
666
|
-
|
|
672
|
+
|
|
667
673
|
{ id: "jewelry_categories", label: "Categories", path: "/jewelry/categories" },
|
|
668
674
|
],
|
|
669
675
|
},
|
|
@@ -684,6 +690,7 @@ export const APP_MENUS: MainMenuItem[] = [
|
|
|
684
690
|
{ id: "goods_receipt", label: "Goods Receipt", path: "/jewelry/procurement/grn" },
|
|
685
691
|
{ id: "opening_stock", label: "Opening Stock", path: "/jewelry/procurement/opening_stock" },
|
|
686
692
|
{ id: "custom_orders", label: "Custom Orders", path: "/jewelry/custom-orders" },
|
|
693
|
+
{ id: "service_orders", label: "Service Orders", path: "/jewelry/service-orders" },
|
|
687
694
|
{ id: "transformations", label: "Transformations", path: "/jewelry/procurement/transformations" },
|
|
688
695
|
],
|
|
689
696
|
},
|
|
@@ -716,7 +723,7 @@ export const APP_MENUS: MainMenuItem[] = [
|
|
|
716
723
|
label: "Karigar",
|
|
717
724
|
items: [
|
|
718
725
|
{ id: "party_transactions", label: "Party Transactions", path: "/jewelry/party-transactions" },
|
|
719
|
-
|
|
726
|
+
|
|
720
727
|
{ id: "karigar_making_charges", label: "Making Charges", path: "/jewelry/karigar-making-charges" },
|
|
721
728
|
{ id: "party_metal_balances", label: "Party Metal Balances", path: "/jewelry/party-metal-balances" },
|
|
722
729
|
{ id: "metal_settlements", label: "Metal Settlements", path: "/jewelry/metal-settlements" },
|
|
@@ -797,7 +804,6 @@ export const APP_MENUS: MainMenuItem[] = [
|
|
|
797
804
|
items: [
|
|
798
805
|
{ id: "money_exchange_till", label: "Till", path: "/money-exchange/till" },
|
|
799
806
|
{ id: "money_exchange_branch_stock", label: "Vault", path: "/money-exchange/branch-stock" },
|
|
800
|
-
{ id: "money_exchange_opening_stock", label: "Opening Stock", path: "/money-exchange/opening-stock" },
|
|
801
807
|
{ id: "money_exchange_internal_transfers", label: "Internal Transfers", path: "/money-exchange/internal-transfers" },
|
|
802
808
|
],
|
|
803
809
|
},
|
|
@@ -809,21 +815,24 @@ export const APP_MENUS: MainMenuItem[] = [
|
|
|
809
815
|
{ id: "money_exchange_suppliers", label: "Supplier Registry", path: "/money-exchange/suppliers" },
|
|
810
816
|
],
|
|
811
817
|
},
|
|
812
|
-
{
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
},
|
|
818
|
+
// {
|
|
819
|
+
// id: "money_exchange_remittances",
|
|
820
|
+
// label: "Remittances",
|
|
821
|
+
// items: [
|
|
822
|
+
// { id: "money_exchange_remittance_agents", label: "Agent Registry", path: "/money-exchange/agents" },
|
|
823
|
+
// { id: "money_exchange_remittance_corridors", label: "Corridors", path: "/money-exchange/corridors" },
|
|
824
|
+
// { id: "money_exchange_remittances", label: "Transactions", path: "/money-exchange/remittances" },
|
|
825
|
+
// { id: "money_exchange_remittance_settlements", label: "Settlements", path: "/money-exchange/settlements" },
|
|
826
|
+
// ],
|
|
827
|
+
// },
|
|
822
828
|
{
|
|
823
829
|
id: "money_exchange_config",
|
|
824
830
|
label: "Config",
|
|
825
831
|
items: [
|
|
826
832
|
{ id: "money_exchange_denominations", label: "Denomination", path: "/money-exchange/denominations" },
|
|
833
|
+
{ id: "money_exchange_till_thresholds", label: "Till Thresholds", path: "/money-exchange/till-thresholds" },
|
|
834
|
+
{ id: "money_exchange_cross_currency", label: "Margin Rate", path: "/money-exchange/cross-currency" },
|
|
835
|
+
{ id: "money_exchange_opening_stock", label: "Opening Stock", path: "/money-exchange/opening-stock" },
|
|
827
836
|
],
|
|
828
837
|
},
|
|
829
838
|
],
|