@feedmepos/mf-inventory-portal 1.5.7 → 1.5.9-dev.1

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.
Files changed (93) hide show
  1. package/dist/{App-DE6l-D4S.js → App-CRKhmCwm.js} +4 -4
  2. package/dist/{ApprovalView-rgqaceRG.js → ApprovalView-BdvNZ3Mi.js} +7 -7
  3. package/dist/{BindingsDialog-CaoCfpO5.js → BindingsDialog-UieCgCDS.js} +13 -13
  4. package/dist/{BindingsPicker-6ejmOZGg.js → BindingsPicker-Bo7xvsut.js} +2 -2
  5. package/dist/{BindingsTable-BYv0445O.js → BindingsTable-CUaQzSBn.js} +3 -3
  6. package/dist/ClosingDraftView-QgRaat2h.js +3335 -0
  7. package/dist/{ClosingHistoryView-FKmF3_d4.js → ClosingHistoryView-C_qw6v7h.js} +469 -459
  8. package/dist/{ClosingTemplateView-DZOFAxSC.js → ClosingTemplateView-BAsHjB3H.js} +14 -14
  9. package/dist/{DefaultView-Bmw-cwMP.js → DefaultView-CaWfkTXn.js} +2 -2
  10. package/dist/{DeliveryOrderPrintPreview-BAnulm_W.js → DeliveryOrderPrintPreview-Dv2fXveZ.js} +2 -2
  11. package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DnRZ48Us.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-BFzPTyKA.js} +22 -22
  12. package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-pg3ieo_g.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-Y_AhN6qb.js} +2 -2
  13. package/dist/{FmMultiselectDialog-BFhyKzpc.js → FmMultiselectDialog-DT28lMdK.js} +1 -1
  14. package/dist/{FmMultiselectDialog-BinKfvTl.js → FmMultiselectDialog-e4dbq-bB.js} +2 -2
  15. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-BgA6574c.js → FmUnitInput.vue_vue_type_script_setup_true_lang-CO2Uom0f.js} +111 -110
  16. package/dist/{ImportView-CAM68Sd4.js → ImportView-Brvxm1EN.js} +6 -6
  17. package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-CnO7Q7GW.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-DSqbdU3A.js} +1 -1
  18. package/dist/{IngredientGroupView-DoJ7F14c.js → IngredientGroupView-CqqD1_5X.js} +5 -5
  19. package/dist/{IngredientsView-DAsMEwld.js → IngredientsView-BmOSo8oo.js} +17 -17
  20. package/dist/{IntegrationExplorerView-DclCC5r6.js → IntegrationExplorerView-CZH3568k.js} +5 -5
  21. package/dist/{IntegrationView-BXiSzB-N.js → IntegrationView-CJv9Ps4v.js} +13 -13
  22. package/dist/{InventoryBindingForm-CC76n6uE.js → InventoryBindingForm-BZVAC4x1.js} +1 -1
  23. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-gP24UWKI.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-BPl9weMj.js} +5 -5
  24. package/dist/{InventoryBindingSummary-BoYnVpYe.js → InventoryBindingSummary-C7Xl5Fd7.js} +1 -1
  25. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-C5mzh-X5.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CyjRq3A-.js} +1 -1
  26. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-CefSaFhj.js → PremiumBadge.vue_vue_type_script_setup_true_lang-DIoYx-x4.js} +1 -1
  27. package/dist/{PublishView-BIPlQPqV.js → PublishView-DHK3MPsP.js} +3 -3
  28. package/dist/{PurchaseOrderPrintPreview-ChahKz9N.js → PurchaseOrderPrintPreview-DLg01buw.js} +2 -2
  29. package/dist/{ReceiveRequestView-BRPknQ4J.js → ReceiveRequestView-B1n42VJ5.js} +569 -570
  30. package/dist/{RecipeView-ifmP3yur.js → RecipeView-BOEfiTuN.js} +19 -19
  31. package/dist/{SettingsView-CHhME9fm.js → SettingsView-Bqx3woVD.js} +4 -4
  32. package/dist/{StockView-BYW7kSMB.js → StockView-UjWpz_eL.js} +775 -765
  33. package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-PX2cEVZi.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-BxyFAK_X.js} +1 -1
  34. package/dist/{SupplierView-ChRNEURO.js → SupplierView-_zK2xohX.js} +12 -12
  35. package/dist/{SurchargeView-pRvo-1Pc.js → SurchargeView-BtUebfil.js} +6 -6
  36. package/dist/{SystemTrailDialog.vue_vue_type_script_setup_true_lang-D1LOA32J.js → SystemTrailDialog.vue_vue_type_script_setup_true_lang-DF3seGmT.js} +2 -2
  37. package/dist/{TemplatePublishDialog.vue_vue_type_script_setup_true_lang-DgzLsKyB.js → TemplatePublishDialog.vue_vue_type_script_setup_true_lang-Bpo1u5g2.js} +1 -1
  38. package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-pRcSERam.js → TransferDetails.vue_vue_type_script_setup_true_lang-B_kdNBCT.js} +20 -20
  39. package/dist/{TransferTemplateView-CeJn9pkT.js → TransferTemplateView-OlHTVdCG.js} +18 -18
  40. package/dist/{UnitCostHistoryView-GBZ7kLM2.js → UnitCostHistoryView-BIvYaMio.js} +4 -4
  41. package/dist/{UnitDisplayControl.vue_vue_type_script_setup_true_lang-CBRziJ6W.js → UnitDisplayControl.vue_vue_type_script_setup_true_lang-DqTis1lE.js} +4 -4
  42. package/dist/{UnitView-D7qhcFMT.js → UnitView-DAtDiu3f.js} +9 -9
  43. package/dist/{WarehouseView-D1peFY-b.js → WarehouseView-B3mXQpoO.js} +70 -69
  44. package/dist/{WastageTemplateView-Cp6j79--.js → WastageTemplateView-BOoybeCb.js} +14 -14
  45. package/dist/api/error.d.ts +6 -3
  46. package/dist/{app-BYsl6Q0k.js → app-cwueji6m.js} +9477 -9400
  47. package/dist/app.d.ts +8 -0
  48. package/dist/app.js +4 -4
  49. package/dist/{closing-template-BqDEseEH.js → closing-template-CobmAqhD.js} +1 -1
  50. package/dist/{date2-ClEr4Hh1.js → date2-D_-j6u1x.js} +1 -1
  51. package/dist/{dayjs.min-D7rJ5XFt.js → dayjs.min-iDeAwg0n.js} +1 -1
  52. package/dist/{decimal-C-BtLmxu.js → decimal-DcHr_uvI.js} +2 -2
  53. package/dist/{defineDeepModel-CAsKxO2x.js → defineDeepModel-BhC1n6G-.js} +1 -1
  54. package/dist/{duplicate-template-BaLtrzTE.js → duplicate-template-Y9iggS9l.js} +1 -1
  55. package/dist/{export-CK6V100y.js → export-CAHG4EbP.js} +2 -2
  56. package/dist/{feature-C1s_dkeb.js → feature-BhK4XmmS.js} +86 -86
  57. package/dist/{format-time-from-id-BE25JynL.js → format-time-from-id-2IFiQNTX.js} +1 -1
  58. package/dist/{format-unit-display-6rk6Cvop.js → format-unit-display-CTYZvXcZ.js} +11 -11
  59. package/dist/helper/uom-rules.d.ts +12 -0
  60. package/dist/{import-export.helper-Vg3CSgTk.js → import-export.helper-DtWH9atw.js} +6 -6
  61. package/dist/{index-DkhSxroI.js → index-Ckhb0CMq.js} +1 -1
  62. package/dist/{index-Bw4sH5QZ.js → index-dfAAA8HA.js} +3 -3
  63. package/dist/{index-Ck1QT6n3.js → index-iGt85nBk.js} +1 -1
  64. package/dist/{inventory-core-dart.default-B2h72dXO.js → inventory-core-dart.default-R1tOn2RS.js} +372 -237
  65. package/dist/{lz-string-DL1izNj1.js → lz-string-DUT6tVSg.js} +1 -1
  66. package/dist/{menu-usage-module-BiCPifRX.js → menu-usage-module-D7cxkbEk.js} +11 -12
  67. package/dist/netsuite-BiF6Fo7G.js +9381 -0
  68. package/dist/{number-CG4iJNxT.js → number-Cqsx9s88.js} +3 -3
  69. package/dist/{predefined-templates-CBK89oKb.js → predefined-templates-CHExzSjx.js} +1 -1
  70. package/dist/{purchase-order-template-C2U5EzAN.js → purchase-order-template-_FfLY2u1.js} +1 -1
  71. package/dist/{recalculationUtils-C6ZDHlwr.js → recalculationUtils-KdVSBljW.js} +1 -1
  72. package/dist/{rules-BPgfm-C7.js → rules-DB26S6qs.js} +2 -2
  73. package/dist/{stock-uaUmLATC.js → stock-n6h8HkNk.js} +1 -1
  74. package/dist/{supplier-CAYiOj5U.js → supplier-6K9Cbfcf.js} +2 -2
  75. package/dist/{surcharge-BbOjhav8.js → surcharge-BV03ItuR.js} +1 -1
  76. package/dist/tsconfig.app.tsbuildinfo +1 -1
  77. package/dist/uom-rules-CzTxRiqL.js +21 -0
  78. package/dist/{use-ingredient-select-dialog-CqobC3-_.js → use-ingredient-select-dialog-Bs_4jjVy.js} +2 -2
  79. package/dist/{use-inventory-binding-dialog-BrAubA9c.js → use-inventory-binding-dialog-CgtoqJ2D.js} +2 -2
  80. package/dist/{use-template-enabled-locations-DtLAf3Ok.js → use-template-enabled-locations-C6fQtFF0.js} +2 -2
  81. package/dist/use-transfer-locations-DI48leYd.js +115 -0
  82. package/dist/{useHrmPermission-BjKDMF1Q.js → useHrmPermission-Co1Jgyvq.js} +1 -1
  83. package/dist/{useNavigationMenu-B_i92K8y.js → useNavigationMenu-JenXwvSv.js} +2 -2
  84. package/dist/{useSseClient-CPZj8tzu.js → useSseClient-gIA58rTS.js} +3 -3
  85. package/dist/views/closing-draft/helpers/export-draft.helper.d.ts +11 -2
  86. package/dist/{vue-i18n-DFNpQ_4n.js → vue-i18n-C3I0upD3.js} +331 -331
  87. package/dist/{xlsx-DuvGVByu.js → xlsx-4BYDayT5.js} +184 -184
  88. package/dist/{xlsx.util-NVQktAdj.js → xlsx.util-CD_xD6ZX.js} +3 -3
  89. package/package.json +3 -3
  90. package/dist/ClosingDraftView-BNjmxJNt.js +0 -3202
  91. package/dist/lodash-PCSvaIXr.js +0 -3678
  92. package/dist/netsuite-DC8EHD9N.js +0 -5708
  93. package/dist/use-transfer-locations-DK3Cx3XD.js +0 -116
@@ -0,0 +1,21 @@
1
+ import { computed as o } from "vue";
2
+ import { u } from "./netsuite-BiF6Fo7G.js";
3
+ function i(e) {
4
+ const t = (n) => !!n && n.toLocaleLowerCase().includes("inactive");
5
+ return t(e.name) || t(e.abbrev);
6
+ }
7
+ function s(e, t) {
8
+ return t.netSuiteEnabled && i(e);
9
+ }
10
+ function c(e, t) {
11
+ return t.netSuiteEnabled && i(e);
12
+ }
13
+ function d() {
14
+ const e = u();
15
+ return o(() => ({ netSuiteEnabled: e.isEnabled }));
16
+ }
17
+ export {
18
+ s as a,
19
+ c as i,
20
+ d as u
21
+ };
@@ -1,6 +1,6 @@
1
1
  import { defineStore as y } from "pinia";
2
- import { a as S } from "./app-BYsl6Q0k.js";
3
- import { a as b } from "./FmMultiselectDialog-BinKfvTl.js";
2
+ import { a as S } from "./app-cwueji6m.js";
3
+ import { a as b } from "./FmMultiselectDialog-e4dbq-bB.js";
4
4
  import { useDialog as A } from "@feedmepos/ui-library";
5
5
  import { useI18n as I } from "@feedmepos/mf-common";
6
6
  const B = y(
@@ -1,5 +1,5 @@
1
- import { a as g } from "./FmMultiselectDialog-BinKfvTl.js";
2
- import { a as P } from "./app-BYsl6Q0k.js";
1
+ import { a as g } from "./FmMultiselectDialog-e4dbq-bB.js";
2
+ import { a as P } from "./app-cwueji6m.js";
3
3
  import { useDialog as E } from "@feedmepos/ui-library";
4
4
  function A() {
5
5
  const u = P(), _ = E();
@@ -1,5 +1,5 @@
1
- import { a as A } from "./FmMultiselectDialog-BinKfvTl.js";
2
- import { u as S } from "./app-BYsl6Q0k.js";
1
+ import { a as A } from "./FmMultiselectDialog-e4dbq-bB.js";
2
+ import { u as S } from "./app-cwueji6m.js";
3
3
  import { useI18n as v, useCoreStore as d, useCustomAttributes as w } from "@feedmepos/mf-common";
4
4
  import { useDialog as _, components as m } from "@feedmepos/ui-library";
5
5
  import { computed as r, h as c } from "vue";
@@ -0,0 +1,115 @@
1
+ import { u as g, r as l, Q as w, W as R } from "./app-cwueji6m.js";
2
+ import { u as E } from "./supplier-6K9Cbfcf.js";
3
+ import { computed as u } from "vue";
4
+ function d(n) {
5
+ const c = R.safeParse(n);
6
+ if (c.success) return c.data;
7
+ throw new Error("Invalid supplier data");
8
+ }
9
+ function _(n) {
10
+ return {
11
+ _id: n.doc._id,
12
+ internal: n.type,
13
+ contactName: n.doc.profile.name,
14
+ name: n.doc.profile.name ?? "",
15
+ email: n.doc.profile.email,
16
+ phoneNumber: n.doc.profile.phoneNo,
17
+ registrationNumber: n.doc.profile.regNo,
18
+ address: n.doc.profile.address ?? {
19
+ line1: "",
20
+ state: "",
21
+ city: "",
22
+ postcode: "",
23
+ country: ""
24
+ },
25
+ preparationTime: n.preparationTime
26
+ };
27
+ }
28
+ function F(n, c, y = !1, f = !1) {
29
+ const p = E(), t = g();
30
+ t.watchLocation(async () => {
31
+ var a;
32
+ await p.readSuppliers();
33
+ const s = n();
34
+ if ((a = s.supplier) != null && a._id) return;
35
+ const e = f ? p.suppliers[0] : p.businessSuppliers[0], r = (y ? t.locations.filter((i) => i.doc._id !== t.currentLocation.doc._id) : t.locations)[0];
36
+ c({
37
+ ...s,
38
+ supplier: e ? d(e) : r ? _(r) : s.supplier
39
+ });
40
+ });
41
+ const L = u(() => {
42
+ var o;
43
+ const s = n(), e = s == null ? void 0 : s.transactionTypeName;
44
+ return typeof e == "string" ? e : typeof ((o = s == null ? void 0 : s.supplier) == null ? void 0 : o.internal) == "string" ? l.enum.transfer : l.enum.purchase;
45
+ }), h = u({
46
+ get() {
47
+ var s, e;
48
+ return (e = (s = n()) == null ? void 0 : s.supplier) == null ? void 0 : e._id;
49
+ },
50
+ set(s) {
51
+ const e = n() ?? {};
52
+ if (L.value === l.enum.purchase) {
53
+ const m = (f ? p.suppliers : p.businessSuppliers).find((N) => N._id === s);
54
+ c({
55
+ ...e,
56
+ supplier: m ? d(m) : e.supplier
57
+ });
58
+ return;
59
+ }
60
+ const a = (y ? t.allLocations.filter(
61
+ (i) => i.doc._id !== t.currentLocation.doc._id
62
+ ) : t.allLocations).find((i) => i.doc._id === s);
63
+ c({
64
+ ...e,
65
+ supplier: a ? _(a) : e.supplier
66
+ });
67
+ }
68
+ }), v = u(() => p.locationSuppliers.map(d)), T = u(() => p.businessSuppliers.map(d)), S = u(() => {
69
+ const s = [...v.value], e = [...T.value];
70
+ return f ? [...e, ...s] : e;
71
+ }), b = u(() => {
72
+ var o;
73
+ const s = ((o = t._currentLocation) == null ? void 0 : o.type) === w.warehouse;
74
+ return (y ? t.allLocations.filter(
75
+ (r) => r.doc._id !== t.currentLocation.doc._id
76
+ ) : t.allLocations).filter((r) => s || r.acceptRequest).map(_);
77
+ }), O = u(() => {
78
+ if (L.value === l.enum.purchase) {
79
+ const e = v.value.map((r) => ({
80
+ label: r.name,
81
+ value: r._id
82
+ })), o = T.value.map((r) => ({
83
+ label: r.name,
84
+ sublabel: "Business supplier",
85
+ value: r._id
86
+ }));
87
+ return f ? [...e, ...o] : o;
88
+ }
89
+ return b.value.map((e) => ({
90
+ label: e.name,
91
+ sublabel: e.internal ? `${e.internal}` : void 0,
92
+ value: e._id
93
+ }));
94
+ }), P = u(() => {
95
+ var r, a;
96
+ const s = (a = (r = n()) == null ? void 0 : r.supplier) == null ? void 0 : a._id;
97
+ if (L.value === l.enum.purchase) {
98
+ const i = p.suppliers.find((m) => m._id === s);
99
+ return i ? d(i) : null;
100
+ }
101
+ const o = t.allLocations.find((i) => i.doc._id);
102
+ return o ? _(o) : null;
103
+ });
104
+ return {
105
+ transferLocationModel: h,
106
+ transferLocationOptions: O,
107
+ locationOptionsTypePurchase: S,
108
+ locationOptionsTypePurchaseLocationLevel: v,
109
+ locationOptionsTypeTransfer: b,
110
+ selectedLocation: P
111
+ };
112
+ }
113
+ export {
114
+ F as u
115
+ };
@@ -1,5 +1,5 @@
1
1
  import { computed as p, toValue as o } from "vue";
2
- import { a2 as n } from "./app-BYsl6Q0k.js";
2
+ import { a2 as n } from "./app-cwueji6m.js";
3
3
  import { useCoreStore as c } from "@feedmepos/mf-common";
4
4
  function g(t, i = "all") {
5
5
  const m = c();
@@ -1,7 +1,7 @@
1
1
  import { computed as T } from "vue";
2
- import { am as P, R as e, b, an as A, a2 as O } from "./app-BYsl6Q0k.js";
2
+ import { a3 as P, R as e, b, a4 as A, a2 as O } from "./app-cwueji6m.js";
3
3
  import { useCoreStore as C, useI18n as L } from "@feedmepos/mf-common";
4
- import { u as _ } from "./feature-C1s_dkeb.js";
4
+ import { u as _ } from "./feature-BhK4XmmS.js";
5
5
  const G = P.reduce(
6
6
  (o, i) => {
7
7
  var s;
@@ -1,7 +1,7 @@
1
- import { u as re } from "./stock-uaUmLATC.js";
2
- import { a as K, O as oe, m as ae } from "./app-BYsl6Q0k.js";
1
+ import { u as re } from "./stock-n6h8HkNk.js";
2
+ import { a as K, O as oe, m as ae } from "./app-cwueji6m.js";
3
3
  import { ref as ie, computed as ce } from "vue";
4
- import { c as le } from "./number-CG4iJNxT.js";
4
+ import { c as le } from "./number-Cqsx9s88.js";
5
5
  import { useCoreStore as he } from "@feedmepos/mf-common";
6
6
  function ue() {
7
7
  return {
@@ -1,4 +1,13 @@
1
1
  import type { FdoDecimal } from '@feedmepos/core/entity';
2
+ import { type UomContext } from '@/helper/uom-rules';
3
+ export interface ExportEnabledMeasurement {
4
+ id: string;
5
+ abbrev: string;
6
+ conversion: FdoDecimal;
7
+ amount: FdoDecimal;
8
+ inactive: boolean;
9
+ orphan: boolean;
10
+ }
2
11
  export interface DraftItemRow {
3
12
  code: string;
4
13
  name: string;
@@ -17,10 +26,10 @@ export interface DraftItemRow {
17
26
  systemValue: number;
18
27
  [key: string]: string | number | null;
19
28
  }
20
- export declare function draftItemToExcelRow(item: FdoClosingDraftItem, systemBalance: FdoDecimal, enabledMeasurements: string[], closingBalance?: FdoDecimal, opening?: FdoDecimal, adjustmentSnapshot?: Record<string, FdoDecimal>, adjustmentTypeKeys?: string[], customAttributeKeys?: string[]): DraftItemRow;
29
+ export declare function draftItemToExcelRow(item: FdoClosingDraftItem, systemBalance: FdoDecimal, enabledMeasurements: ExportEnabledMeasurement[], closingBalance?: FdoDecimal, opening?: FdoDecimal, adjustmentSnapshot?: Record<string, FdoDecimal>, adjustmentTypeKeys?: string[], customAttributeKeys?: string[]): DraftItemRow;
21
30
  export type ColIdHeader<T> = {
22
31
  id: keyof T;
23
32
  name: string;
24
33
  };
25
34
  export declare function getExcelHeaders(measurementColumns: number, adjustmentTypeKeys?: string[], customAttributeKeys?: string[]): ColIdHeader<DraftItemRow>[];
26
- export declare function exportDraft(draft: FdoClosingDraft, skuBalances: FdoSkuBalance[], closingAdjustmentBalance: FdoSkuBalance[], customAttributeKeys?: string[]): string;
35
+ export declare function exportDraft(draft: FdoClosingDraft, skuBalances: FdoSkuBalance[], closingAdjustmentBalance: FdoSkuBalance[], customAttributeKeys: string[] | undefined, uomContext: UomContext): string;