@feedmepos/mf-inventory-portal 1.2.37-dev.6 → 1.2.38

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 (88) hide show
  1. package/dist/{App-DyOQ_Xw7.js → App-CONrAP7y.js} +3 -3
  2. package/dist/{ApprovalView-DFHDYNum.js → ApprovalView-Cn9_7xk9.js} +5 -5
  3. package/dist/{BindingsDialog-B96VG07s.js → BindingsDialog-L7mP6sx9.js} +8 -8
  4. package/dist/{BindingsPicker-CoVDTRO0.js → BindingsPicker-DZqBMDUg.js} +2 -2
  5. package/dist/{BindingsTable-CuWHxqPQ.js → BindingsTable-DHkFDwiH.js} +3 -3
  6. package/dist/{ClosingDraftView-BINAvQcF.js → ClosingDraftView-BtSmlj0J.js} +8 -8
  7. package/dist/{ClosingHistoryView-CfLTNGoT.js → ClosingHistoryView-j83Wuxis.js} +22 -22
  8. package/dist/{ClosingTemplateView-BcXdjqXm.js → ClosingTemplateView-ZubBNFCd.js} +14 -14
  9. package/dist/{DeliveryOrderPrintPreview-Nna0OSHA.js → DeliveryOrderPrintPreview-DfS2E2tl.js} +9 -9
  10. package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DIQOehlo.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-CoO6g5B9.js} +61 -60
  11. package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-CPeUdEDm.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-DnMjbyPc.js} +2 -2
  12. package/dist/{FmMultiselectDialog-HYBXnDCU.js → FmMultiselectDialog-8_qMKCPt.js} +2 -2
  13. package/dist/{FmMultiselectDialog-B5KK1OWo.js → FmMultiselectDialog-vj94RVLU.js} +1 -1
  14. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-BWC0hDbD.js → FmUnitInput.vue_vue_type_script_setup_true_lang-Dihv3KTq.js} +3 -3
  15. package/dist/{ImportView-C9k44bAB.js → ImportView--0ZbHtb9.js} +6 -6
  16. package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-Cv4IIkAi.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-Bosdu_28.js} +1 -1
  17. package/dist/{IngredientGroupView-CAEAOvqh.js → IngredientGroupView-D937cHah.js} +5 -5
  18. package/dist/{IngredientsView-Bkri4LBD.js → IngredientsView-BNdvTpOT.js} +14 -14
  19. package/dist/{IntegrationView-kYveJ3xG.js → IntegrationView-Dm3Eur8-.js} +12 -12
  20. package/dist/{InventoryBindingForm-CPDdwuSS.js → InventoryBindingForm-rBhW4Snl.js} +1 -1
  21. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-IsUi_VNj.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-Cvpi7GQx.js} +14 -14
  22. package/dist/{InventoryBindingSummary-1q4t4xZu.js → InventoryBindingSummary-emUM5QuA.js} +1 -1
  23. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BCBhdfk-.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DFW-jg1P.js} +1 -1
  24. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-xAhtpaev.js → PremiumBadge.vue_vue_type_script_setup_true_lang-BOxIYl0Z.js} +2 -2
  25. package/dist/{PublishView-BofNsPUM.js → PublishView-CXRBcsxc.js} +3 -3
  26. package/dist/{PurchaseOrderPrintPreview-GwHl_m2O.js → PurchaseOrderPrintPreview-BvjDpyrq.js} +9 -9
  27. package/dist/ReceiveRequestView-TwL3yVCN.js +2821 -0
  28. package/dist/{RecipeView-bTDYHYsW.js → RecipeView-dggwqURE.js} +8 -8
  29. package/dist/{StockView-BcmJWszh.js → StockView-Cml9AuXX.js} +305 -300
  30. package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-CMSN_f71.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-BTZa1E_o.js} +1 -1
  31. package/dist/{SupplierView-DmDPwcVZ.js → SupplierView-CnD2QpE7.js} +11 -11
  32. package/dist/{SystemTrailDialog.vue_vue_type_script_setup_true_lang-CKcmdIYZ.js → SystemTrailDialog.vue_vue_type_script_setup_true_lang-DIbaHfbR.js} +2 -2
  33. package/dist/{TemplatePublishDialog.vue_vue_type_script_setup_true_lang-CtXx2kvG.js → TemplatePublishDialog.vue_vue_type_script_setup_true_lang-DeD1jiXL.js} +1 -1
  34. package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-JFJLlP7n.js → TransferDetails.vue_vue_type_script_setup_true_lang-Y0eaTjgd.js} +374 -374
  35. package/dist/{TransferTemplateView-p3IubYSO.js → TransferTemplateView-DytfORlu.js} +354 -354
  36. package/dist/{UnitView-WtDMm46P.js → UnitView-ZUo-3Em1.js} +6 -6
  37. package/dist/{WarehouseView-gt891WkQ.js → WarehouseView-DlZirt8V.js} +5 -5
  38. package/dist/{WastageTemplateView-DDP_q1kT.js → WastageTemplateView-5Qvs2GZC.js} +14 -14
  39. package/dist/{app-DtJUp8mQ.js → app-xCn1wZY9.js} +4579 -4525
  40. package/dist/app.js +1 -1
  41. package/dist/{closing-template-DeUVPGPl.js → closing-template-DS8zFVJt.js} +1 -1
  42. package/dist/{date2-iHubu_Hg.js → date2-hHwvNr68.js} +1 -1
  43. package/dist/{dayjs.min-C81IRMa0.js → dayjs.min-PqgQ_K75.js} +12 -12
  44. package/dist/{decimal-DsF5fiGB.js → decimal-DOCxaZjf.js} +2 -2
  45. package/dist/{defineDeepModel-cHTtk4kj.js → defineDeepModel-CTlh0zvq.js} +1 -1
  46. package/dist/{duplicate-template-BMkJlSqi.js → duplicate-template-F8fz-36_.js} +1 -1
  47. package/dist/feature-UnTx1VJG.js +20162 -0
  48. package/dist/{format-time-from-id-gYFZ4gB4.js → format-time-from-id-DTsuaGJG.js} +1 -1
  49. package/dist/{format-unit-display-CrSG6jqO.js → format-unit-display-DS3MzSfd.js} +246 -245
  50. package/dist/{import-export.helper-BBZAXSKi.js → import-export.helper-BAUfb01o.js} +5 -5
  51. package/dist/{index-B4IDpHl_.js → index-BX9ig-2t.js} +3 -3
  52. package/dist/{index-D13-YBWx.js → index-CYZHYBBP.js} +1 -1
  53. package/dist/{index-DjhdVR8R.js → index-D_kOnYds.js} +9 -9
  54. package/dist/{lodash-fqg0EBFT.js → lodash-Cqi23PoA.js} +1 -1
  55. package/dist/{netsuite-Ce50v6Hm.js → netsuite-Cg_AEH3H.js} +3 -3
  56. package/dist/{purchase-order-template-BxglsHjM.js → purchase-order-template-Dh3D_2Tz.js} +1 -1
  57. package/dist/{rules-BO1fKtW6.js → rules-C_FnXd1e.js} +3 -3
  58. package/dist/{stock-DWYWu2eO.js → stock-BPdGitCC.js} +3 -3
  59. package/dist/{stock-DyZlhWdA.js → stock-DJDm1iIR.js} +1 -1
  60. package/dist/supplier-BtZVHCAl.js +78 -0
  61. package/dist/tsconfig.app.tsbuildinfo +1 -1
  62. package/dist/{use-ingredient-select-dialog-BvSDIPIV.js → use-ingredient-select-dialog-n26Kr4C5.js} +2 -2
  63. package/dist/{use-inventory-binding-dialog-SizooUK2.js → use-inventory-binding-dialog-kkpC2Tzi.js} +2 -2
  64. package/dist/{use-template-enabled-locations-2-D6QsVX09.js → use-template-enabled-locations-2-4ou70XAL.js} +2 -2
  65. package/dist/views/receive-request/components/netsuite/NetSuitePanel.vue.d.ts +2 -3
  66. package/dist/views/receive-request/components/netsuite/NetSuiteProps.d.ts +2 -3
  67. package/dist/views/receive-request/components/transfer-form/TransferForm.vue.d.ts +2197 -490
  68. package/dist/views/receive-request/components/transfer-form/TransferForm2.vue.d.ts +0 -1430
  69. package/dist/views/receive-request/components/transfer-form/TransferFormProps.d.ts +0 -1
  70. package/dist/views/receive-request/components/transfer-form/composables/use-transfer-items.d.ts +2 -3
  71. package/dist/views/receive-request/composables/use-process-purchase-order.d.ts +1 -1
  72. package/dist/views/receive-request/composables/use-receive-request-form.d.ts +6 -6
  73. package/dist/views/receive-request/composables/use-receive-request-table.d.ts +7 -7
  74. package/dist/views/receive-request/constants/purchase-order-transaction-type.d.ts +4 -0
  75. package/dist/views/receive-request/helper/get-transfer-type.d.ts +2 -1
  76. package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-template-items.d.ts +2 -3
  77. package/dist/views/transfer-template/components/transfer-template-import/TransferTemplateImportItemProps.d.ts +2 -3
  78. package/dist/views/transfer-template/helpers/import-export.helper.d.ts +3 -4
  79. package/dist/{vue-i18n-DVkVzKDL.js → vue-i18n-A7TH-x17.js} +533 -533
  80. package/dist/{xlsx-B8-jQ9MR.js → xlsx-DRYtBAdX.js} +1 -1
  81. package/dist/{xlsx.util-BZCQyeND.js → xlsx.util-DGBUU4BN.js} +1 -1
  82. package/package.json +1 -1
  83. package/dist/ReceiveRequestView-DfzANuLj.js +0 -2863
  84. package/dist/feature-Dx_hCq6v.js +0 -25312
  85. package/dist/helper/reactivity.d.ts +0 -11
  86. package/dist/helper/reactivity.spec.d.ts +0 -1
  87. package/dist/supplier-BtC6VaAp.js +0 -78
  88. package/dist/views/receive-request/components/transfer-form/composables/use-purchase-order-form-controller.d.ts +0 -13974
@@ -1,9 +1,9 @@
1
- import { a as w, t as H, i as T, I as P } from "./rules-BO1fKtW6.js";
2
- import { u as j } from "./feature-Dx_hCq6v.js";
1
+ import { a as w, t as H, i as T, I as P } from "./rules-C_FnXd1e.js";
2
+ import { u as j } from "./feature-UnTx1VJG.js";
3
3
  import { useCoreStore as g } from "@feedmepos/mf-common";
4
- import { a as y, d as k, n as I, e as S } from "./app-DtJUp8mQ.js";
5
- import { b as N, d as $, s as _ } from "./xlsx.util-BZCQyeND.js";
6
- import { f as O } from "./date2-iHubu_Hg.js";
4
+ import { a as y, d as k, n as I, e as S } from "./app-xCn1wZY9.js";
5
+ import { b as N, d as $, s as _ } from "./xlsx.util-DGBUU4BN.js";
6
+ import { f as O } from "./date2-hHwvNr68.js";
7
7
  function R() {
8
8
  return {
9
9
  low: 6,
@@ -1,4 +1,4 @@
1
- import { x as h } from "./app-DtJUp8mQ.js";
1
+ import { w as h } from "./app-xCn1wZY9.js";
2
2
  var a = { exports: {} };
3
3
  function x(r, s = 100, u = {}) {
4
4
  if (typeof r != "function")
@@ -38,8 +38,8 @@ function x(r, s = 100, u = {}) {
38
38
  }
39
39
  a.exports.debounce = x;
40
40
  a.exports = x;
41
- var g = a.exports;
42
- const y = /* @__PURE__ */ h(g);
41
+ var w = a.exports;
42
+ const y = /* @__PURE__ */ h(w);
43
43
  export {
44
44
  y as d
45
45
  };
@@ -1,4 +1,4 @@
1
- import { x, ag as V, ah as q, ai as Ne, a5 as cl, ad as sr, aj as Lt, ak as fl, al as $l } from "./app-DtJUp8mQ.js";
1
+ import { w as x, af as V, ag as q, ah as Ne, a4 as cl, ac as sr, ai as Lt, aj as fl, ak as $l } from "./app-xCn1wZY9.js";
2
2
  function vl(t, e) {
3
3
  for (var r = 0; r < e.length; r++) {
4
4
  const n = e[r];
@@ -1,8 +1,8 @@
1
1
  import { ref as b, computed as u } from "vue";
2
- import { u as p } from "./netsuite-Ce50v6Hm.js";
3
- import { u as d, z as h, D as v } from "./app-DtJUp8mQ.js";
2
+ import { u as p } from "./netsuite-Cg_AEH3H.js";
3
+ import { u as d, y as h, C as v } from "./app-xCn1wZY9.js";
4
4
  import { useSnackbar as E } from "@feedmepos/ui-library";
5
- import { u as m } from "./feature-Dx_hCq6v.js";
5
+ import { u as m } from "./feature-UnTx1VJG.js";
6
6
  function I() {
7
7
  return {
8
8
  setting: {
@@ -62,18 +62,18 @@ function C() {
62
62
  }
63
63
  };
64
64
  }
65
- function S() {
65
+ function y() {
66
66
  return {
67
67
  locationId: ""
68
68
  };
69
69
  }
70
- const r = b(S());
70
+ const r = b(y());
71
71
  function w() {
72
72
  const o = d(), n = v();
73
73
  return o.watchLocation(async (e) => {
74
74
  if (m().enabledXilnexOpeningMigration) {
75
75
  if (!e) {
76
- r.value = S();
76
+ r.value = y();
77
77
  return;
78
78
  }
79
79
  r.value.locationId = e.dbName;
@@ -94,18 +94,18 @@ function w() {
94
94
  }
95
95
  };
96
96
  }
97
- function y() {
97
+ function S() {
98
98
  return {
99
99
  locationId: ""
100
100
  };
101
101
  }
102
- const l = b(y());
102
+ const l = b(S());
103
103
  function x() {
104
104
  const o = d(), n = v();
105
105
  return o.watchLocation(async (e) => {
106
106
  if (m()) {
107
107
  if (!e) {
108
- l.value = y();
108
+ l.value = S();
109
109
  return;
110
110
  }
111
111
  l.value.locationId = e.dbName;
@@ -1,4 +1,4 @@
1
- import { ad as jt, x as ep } from "./app-DtJUp8mQ.js";
1
+ import { ac as jt, w as ep } from "./app-xCn1wZY9.js";
2
2
  var Jr = { exports: {} };
3
3
  /**
4
4
  * @license
@@ -1,9 +1,9 @@
1
- import { m as e, W as jt, X as Vt, Y as Bt, Z as qt, _ as je, $ as Ht, a0 as Be, O as qe, a1 as bt, a2 as St, a3 as O, a4 as R, s as A, e as ve, a5 as Re, B as ee, A as ie, a6 as Kt, L as j, a7 as vt, N as V, a8 as Yt, a9 as Gt, aa as Jt, ab as Qe, ac as zt, o as Qt, j as Wt, v as dt, a as Zt, u as Ce } from "./app-DtJUp8mQ.js";
1
+ import { m as e, V as jt, W as Vt, X as Bt, Y as qt, Z as je, _ as Ht, $ as Be, M as qe, a0 as bt, a1 as St, a2 as O, a3 as R, s as A, e as ve, a4 as Re, A as ee, z as ie, a5 as Kt, K as j, a6 as vt, N as V, a7 as Yt, a8 as Gt, a9 as Jt, aa as Qe, ab as zt, o as Qt, j as Wt, t as dt, a as Zt, u as Ce } from "./app-xCn1wZY9.js";
2
2
  import { useCoreStore as Me } from "@feedmepos/mf-common";
3
3
  import { useSnackbar as Xt } from "@feedmepos/ui-library";
4
- import { _ as L } from "./lodash-fqg0EBFT.js";
4
+ import { _ as L } from "./lodash-Cqi23PoA.js";
5
5
  import { defineComponent as en, ref as He, computed as me, resolveComponent as ke, openBlock as z, createBlock as tn, withCtx as re, createVNode as oe, createElementVNode as M, createElementBlock as ae, Fragment as Oe, createCommentVNode as Ae, createTextVNode as Q, toDisplayString as x, renderList as nn, unref as ct, h as sn } from "vue";
6
- import { u as rn } from "./feature-Dx_hCq6v.js";
6
+ import { u as rn } from "./feature-UnTx1VJG.js";
7
7
  var on = Object.defineProperty, g = (r, a) => on(r, "name", { value: a, configurable: !0 }), he = "MYR";
8
8
  e.enum([
9
9
  "custbody_fm_do_id",
@@ -1,4 +1,4 @@
1
- import { o as s } from "./app-DtJUp8mQ.js";
1
+ import { o as s } from "./app-xCn1wZY9.js";
2
2
  import { useCoreStore as c } from "@feedmepos/mf-common";
3
3
  const u = s((n, a) => {
4
4
  function o() {
@@ -1,6 +1,6 @@
1
- import { s } from "./app-DtJUp8mQ.js";
2
- import "./dayjs.min-C81IRMa0.js";
3
- import { d, b } from "./date2-iHubu_Hg.js";
1
+ import { s } from "./app-xCn1wZY9.js";
2
+ import "./dayjs.min-PqgQ_K75.js";
3
+ import { d, b } from "./date2-hHwvNr68.js";
4
4
  function P(t, n) {
5
5
  return s.convertPrecision({
6
6
  value: t,
@@ -1,7 +1,7 @@
1
- import { u as i } from "./stock-DyZlhWdA.js";
2
- import { a as s, K as p } from "./app-DtJUp8mQ.js";
1
+ import { u as i } from "./stock-DJDm1iIR.js";
2
+ import { a as s, J as p } from "./app-xCn1wZY9.js";
3
3
  import { ref as d, computed as k } from "vue";
4
- import { d as B } from "./rules-BO1fKtW6.js";
4
+ import { d as B } from "./rules-C_FnXd1e.js";
5
5
  function m() {
6
6
  return {
7
7
  stockBalance: {
@@ -1,4 +1,4 @@
1
- import { o as d, u as m } from "./app-DtJUp8mQ.js";
1
+ import { o as d, u as m } from "./app-xCn1wZY9.js";
2
2
  import { useCoreStore as l } from "@feedmepos/mf-common";
3
3
  import { useSnackbar as $ } from "@feedmepos/ui-library";
4
4
  const y = d((o, r) => {
@@ -0,0 +1,78 @@
1
+ import { o as b, u, n as v, p as w, q as $ } from "./app-xCn1wZY9.js";
2
+ import { u as S } from "./feature-UnTx1VJG.js";
3
+ import { useCoreStore as c } from "@feedmepos/mf-common";
4
+ import { defineStore as f } from "pinia";
5
+ import { ref as l, computed as d } from "vue";
6
+ const a = b((n, s) => {
7
+ function i() {
8
+ var o;
9
+ const t = c(), r = u(), p = S().businessSupplierOnly, m = `business_${((o = t.currentBusiness.value) == null ? void 0 : o._id) ?? ""}`, y = r.currentLocation.dbName;
10
+ return p ? m : y;
11
+ }
12
+ return {
13
+ async readSuppliers() {
14
+ const t = i(), r = `${n.inventoryBackendUrl}/${t}/supplier`;
15
+ return await s.get(r);
16
+ },
17
+ async readLocationSuppliers() {
18
+ const r = u().currentLocation.dbName, e = `${n.inventoryBackendUrl}/${r}/supplier`;
19
+ return await s.get(e);
20
+ },
21
+ async readBusinessSuppliers() {
22
+ var p;
23
+ const r = `business_${((p = c().currentBusiness.value) == null ? void 0 : p._id) ?? ""}`, e = `${n.inventoryBackendUrl}/${r}/supplier`;
24
+ return await s.get(e);
25
+ },
26
+ async createSupplier(t) {
27
+ const r = i(), e = `${n.inventoryBackendUrl}/${r}/supplier`;
28
+ return await s.post(e, t);
29
+ },
30
+ async importSuppliers(t) {
31
+ const r = i(), e = `${n.inventoryBackendUrl}/${r}/supplier/import`;
32
+ return await s.post(e, t);
33
+ },
34
+ async updateSupplier(t) {
35
+ const r = i(), e = `${n.inventoryBackendUrl}/${r}/supplier`;
36
+ return await s.put(e, t);
37
+ },
38
+ async deleteSupplier(t) {
39
+ const r = i(), e = `${n.inventoryBackendUrl}/${r}/supplier`;
40
+ return await s.delete(e, t);
41
+ }
42
+ };
43
+ }), L = f("supplier", () => {
44
+ const n = S(), s = l(new Array()), i = l(new Array()), t = d(() => n.businessSupplierOnly ? i.value : [...s.value, ...i.value]), r = d(() => v(t.value, "_id"));
45
+ return {
46
+ async readSuppliers() {
47
+ const e = a();
48
+ s.value = await e.readLocationSuppliers(), i.value = await e.readBusinessSuppliers();
49
+ },
50
+ async createSupplier(e) {
51
+ await a().createSupplier(e);
52
+ },
53
+ async updateSupplier(e) {
54
+ await a().updateSupplier(e);
55
+ },
56
+ async deleteSupplier(e) {
57
+ await a().deleteSupplier(e);
58
+ },
59
+ async importSuppliers(e) {
60
+ await a().importSuppliers(e);
61
+ },
62
+ async init() {
63
+ const e = w();
64
+ try {
65
+ await this.readSuppliers();
66
+ } catch (p) {
67
+ throw p instanceof $ || e.error("Error at reading suppliers"), p;
68
+ }
69
+ },
70
+ suppliers: t,
71
+ locationSuppliers: s,
72
+ businessSuppliers: i,
73
+ supplierById: r
74
+ };
75
+ });
76
+ export {
77
+ L as u
78
+ };