@feedmepos/mf-inventory-portal 1.6.0-dev.2 → 1.6.0-dev.4

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 (90) hide show
  1. package/dist/{App-BWiKiRD2.js → App-xiS9XCUg.js} +4 -4
  2. package/dist/{ApprovalView-TFet-Rht.js → ApprovalView-Co4xloBe.js} +19 -19
  3. package/dist/{BindingsDialog-ByO16R7B.js → BindingsDialog-Ch1xgZ7D.js} +2 -2
  4. package/dist/{BindingsPicker-BzeipJDM.js → BindingsPicker-BSNOsgIa.js} +2 -2
  5. package/dist/{BindingsTable-CATRwDGx.js → BindingsTable-CvoKDM69.js} +3 -3
  6. package/dist/{ClosingDraftView-Bilo3C7N.js → ClosingDraftView-Chy_R-c9.js} +15 -15
  7. package/dist/{ClosingHistoryView-DJEhuzBh.js → ClosingHistoryView-DQUYXIe5.js} +86 -85
  8. package/dist/{ClosingTemplateView-DTS__1eO.js → ClosingTemplateView-yi3O0zya.js} +14 -14
  9. package/dist/{DefaultView-Dpwvllot.js → DefaultView-w0Bc0QUo.js} +2 -2
  10. package/dist/{DeliveryOrderPrintPreview-BZ-BDWlS.js → DeliveryOrderPrintPreview-BzO9UcbC.js} +11 -11
  11. package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-BMJVOiL_.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DYzIZpMo.js} +2 -2
  12. package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-QvgQwP6t.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-C1-Z8zpZ.js} +2 -2
  13. package/dist/{FmMultiselectDialog-W0_FfMmH.js → FmMultiselectDialog-8k_CySos.js} +1 -1
  14. package/dist/{FmMultiselectDialog-B1rAOXTC.js → FmMultiselectDialog-C6MHEYsa.js} +2 -2
  15. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-DNpKzzVC.js → FmUnitInput.vue_vue_type_script_setup_true_lang-cf1asT1H.js} +5 -5
  16. package/dist/{ImportView-B_3OeL5b.js → ImportView-Z8N8eFi0.js} +6 -6
  17. package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-CdNdnCp-.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-BabrzvVA.js} +1 -1
  18. package/dist/{IngredientGroupView-B_v-UNeR.js → IngredientGroupView-CNl676Lh.js} +5 -5
  19. package/dist/{IngredientsView-DTXevc-8.js → IngredientsView-6zB8OUXt.js} +15 -15
  20. package/dist/{IntegrationExplorerView-C6JUipFs.js → IntegrationExplorerView-C27IyImO.js} +5 -5
  21. package/dist/{IntegrationView-DX4hhKYv.js → IntegrationView-pDisxkqH.js} +13 -13
  22. package/dist/{InventoryBindingForm-BpNKhiGF.js → InventoryBindingForm-cJUY8472.js} +1 -1
  23. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-BWy-YpCv.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-_mIak9Y4.js} +5 -5
  24. package/dist/{InventoryBindingSummary-BL4AkZY3.js → InventoryBindingSummary-DiOokH9o.js} +1 -1
  25. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DURnZteR.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CXBvvJc9.js} +1 -1
  26. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-BR0Hc9cL.js → PremiumBadge.vue_vue_type_script_setup_true_lang-D1JFU868.js} +1 -1
  27. package/dist/{PublishView-CELngZXP.js → PublishView-CthOIZV3.js} +3 -3
  28. package/dist/{PurchaseOrderPrintPreview-HCGMQWdo.js → PurchaseOrderPrintPreview-CR8pm2bB.js} +11 -11
  29. package/dist/{ReceiveRequestView-DfrpsGeI.js → ReceiveRequestView-DgqABsfx.js} +26 -26
  30. package/dist/{RecipeView-DCrrdrhp.js → RecipeView-062Vcx0q.js} +1117 -1104
  31. package/dist/{SettingsView-CHoDkUIF.js → SettingsView-B36YQEUM.js} +4 -4
  32. package/dist/{StockView-DlP1-pbq.js → StockView-8orJpsPH.js} +19 -19
  33. package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-NZcNoQ6u.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-Bw-GxZr8.js} +1 -1
  34. package/dist/{SupplierView-DqQbgLqh.js → SupplierView-CQi9bh5A.js} +12 -12
  35. package/dist/{SurchargeView-CtlXOPJ3.js → SurchargeView-BgxF6xyH.js} +6 -6
  36. package/dist/{SystemTrailDialog.vue_vue_type_script_setup_true_lang-BRrHPAJj.js → SystemTrailDialog.vue_vue_type_script_setup_true_lang-BbY1p0bB.js} +2 -2
  37. package/dist/{TemplatePublishDialog.vue_vue_type_script_setup_true_lang-Bw3UN_Zn.js → TemplatePublishDialog.vue_vue_type_script_setup_true_lang-BiMvxm3x.js} +1 -1
  38. package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-atZZPJBf.js → TransferDetails.vue_vue_type_script_setup_true_lang-DtCPS8FC.js} +122 -122
  39. package/dist/{TransferTemplateView-Dl0k38tD.js → TransferTemplateView-92Xn4mWr.js} +20 -20
  40. package/dist/{UnitCostHistoryView-Dh-yAgvG.js → UnitCostHistoryView-cTI5jhBt.js} +4 -4
  41. package/dist/{UnitDisplayControl.vue_vue_type_script_setup_true_lang-FqnqY9bU.js → UnitDisplayControl.vue_vue_type_script_setup_true_lang-bjr08iok.js} +5 -5
  42. package/dist/{UnitView-D5Zvz2xm.js → UnitView-BqXvkdiR.js} +7 -7
  43. package/dist/{WarehouseView-s5g9AQq5.js → WarehouseView-_2zJPaTf.js} +5 -5
  44. package/dist/WastageTemplateView-DYW58rtZ.js +2381 -0
  45. package/dist/{app-D-l9FM2n.js → app-B790gOK1.js} +3457 -3347
  46. package/dist/app.js +1 -1
  47. package/dist/{closing-template-C56_2aLc.js → closing-template-0jLV_s0d.js} +1 -1
  48. package/dist/{date2-CRMgo5NH.js → date2-BEmmexd8.js} +1 -1
  49. package/dist/{dayjs.min-9bo3vPqj.js → dayjs.min-e4Xq09pW.js} +20 -20
  50. package/dist/{decimal-CsE7mms2.js → decimal-Lptt-Wz-.js} +2 -2
  51. package/dist/{defineDeepModel-DDX70CM6.js → defineDeepModel-emCSlL_h.js} +1 -1
  52. package/dist/{duplicate-template-BrEOP-1V.js → duplicate-template-CShJdJ8d.js} +1 -1
  53. package/dist/{feature-Bl6yUhw_.js → feature-BFFJbkBm.js} +2 -2
  54. package/dist/{format-time-from-id-BuMdYlM9.js → format-time-from-id-Dj-j01eE.js} +1 -1
  55. package/dist/{format-unit-display-CMfuvGP6.js → format-unit-display-CJw32VBR.js} +12 -12
  56. package/dist/{import-export.helper-C9F9d-rh.js → import-export.helper-C07viLOs.js} +6 -6
  57. package/dist/{index-cbmIhZ6F.js → index-B0mYVcHF.js} +1 -1
  58. package/dist/{index-BcOtIfdU.js → index-DJZQrFf7.js} +1 -1
  59. package/dist/{index-BdSVteJV.js → index-TBsXDgch.js} +3 -3
  60. package/dist/{inventory-core-dart.default-DewosGoK.js → inventory-core-dart.default-BieljiaS.js} +1 -1
  61. package/dist/{lz-string-Ye-dLAix.js → lz-string-Co3f7xQi.js} +1 -1
  62. package/dist/{netsuite-Dyw1JtQL.js → netsuite-BMQZw2dt.js} +2 -2
  63. package/dist/{number-YiCgPFTE.js → number-Czc4vu4K.js} +3 -3
  64. package/dist/{predefined-templates-B0Eto9Jx.js → predefined-templates-BVHsFJHC.js} +1 -1
  65. package/dist/{purchase-order-template-zHPLRQDQ.js → purchase-order-template-CMDl8eio.js} +1 -1
  66. package/dist/{recalculationUtils-DZLZlctO.js → recalculationUtils-BZoPTIoG.js} +1 -1
  67. package/dist/{rules-BsVkaxL5.js → rules-DuDYwy_d.js} +2 -2
  68. package/dist/{stock-DlQopDTl.js → stock-DkLzKOLk.js} +1 -1
  69. package/dist/{supplier-UPX_1aFs.js → supplier-Dk3xHNeA.js} +2 -2
  70. package/dist/{surcharge-DO3-kAit.js → surcharge-CUNMAeS3.js} +1 -1
  71. package/dist/tsconfig.app.tsbuildinfo +1 -1
  72. package/dist/{uom-rules-DbhFLCUC.js → uom-rules-DtG5eCqQ.js} +1 -1
  73. package/dist/{use-ingredient-select-dialog-BASkk3-u.js → use-ingredient-select-dialog-CkNu7fD6.js} +2 -2
  74. package/dist/{use-inventory-binding-dialog-DTc48xUU.js → use-inventory-binding-dialog-Cnc65VQI.js} +2 -2
  75. package/dist/use-template-enabled-locations-CRF0AM-M.js +146 -0
  76. package/dist/{use-transfer-locations-BJ0xIECi.js → use-transfer-locations-cX4FfzNZ.js} +7 -7
  77. package/dist/{useHrmPermission-G4mfvYF8.js → useHrmPermission-CmJd4Bup.js} +1 -1
  78. package/dist/{useNavigationMenu-Be-99JmQ.js → useNavigationMenu-BQZghwYI.js} +2 -2
  79. package/dist/{useSseClient-D1h38l_K.js → useSseClient-C3PTrM-h.js} +12 -12
  80. package/dist/views/adjustment-template/wastage-template/actions.d.ts +12 -0
  81. package/dist/views/adjustment-template/wastage-template/helpers.d.ts +33 -0
  82. package/dist/views/adjustment-template/wastage-template/helpers.spec.d.ts +1 -0
  83. package/dist/views/adjustment-template/wastage-template/props.d.ts +2 -0
  84. package/dist/views/adjustment-template/wastage-template/table.d.ts +12 -0
  85. package/dist/{vue-i18n-fX3C6wjd.js → vue-i18n-1noprZJM.js} +202 -202
  86. package/dist/{xlsx-BsL1DoEA.js → xlsx-i55Kt0AR.js} +1 -1
  87. package/dist/{xlsx.util-D_XTOHMv.js → xlsx.util-jC5etKar.js} +3 -3
  88. package/package.json +4 -4
  89. package/dist/WastageTemplateView-XzJSsB29.js +0 -2327
  90. package/dist/use-template-enabled-locations-gwYjb6_p.js +0 -132
@@ -1,132 +0,0 @@
1
- import { a as A } from "./FmMultiselectDialog-B1rAOXTC.js";
2
- import { u as S } from "./app-D-l9FM2n.js";
3
- import { useI18n as v, useCoreStore as d, useCustomAttributes as w } from "@feedmepos/mf-common";
4
- import { useDialog as _, components as m } from "@feedmepos/ui-library";
5
- import { computed as r, h as c } from "vue";
6
- function F(a) {
7
- const p = _(), n = S(), { t: i } = v(), b = r(() => d().restaurants.value.reduce((e, o) => (e[o._id] = o.customAttributes || {}, e), {})), { attributes: f } = w({
8
- valueSource: d().restaurants,
9
- entity: "restaurant"
10
- });
11
- function y() {
12
- var u;
13
- const s = a.getLocations() ?? [], e = n.locationById, o = s.filter((t) => !e[t.doc._id]);
14
- p.open({
15
- title: "Select at least one location",
16
- contentComponent: c(
17
- A,
18
- {
19
- modelValue: ((u = L.value) == null ? void 0 : u.map((t) => t.doc._id)) ?? [],
20
- items: n.locations.map((t) => ({
21
- label: `${t.name}(${t.doc.profile.code ?? "--"})`,
22
- sublabel: t.type,
23
- value: t.doc._id,
24
- customAttributes: {
25
- ...b.value[t.doc._id],
26
- state: t.doc.profile.address.state
27
- }
28
- })),
29
- filterAttributes: [
30
- ...f.value,
31
- {
32
- type: "string",
33
- key: "state",
34
- entity: "location",
35
- values: [
36
- ...new Set(
37
- n.locations.map((t) => t.doc.profile.address.state).filter(Boolean)
38
- )
39
- ]
40
- }
41
- ],
42
- attributeKey: "customAttributes"
43
- },
44
- {
45
- appendList() {
46
- return o.map(
47
- (t) => c(
48
- m.FmListItem,
49
- {
50
- label: `${t.name}(${t.doc.profile.code ?? "--"})`,
51
- sublabel: "This location is not manageable by your account.",
52
- disabled: !0
53
- },
54
- {
55
- prepend: c(m.FmCheckbox, {
56
- modelValue: !0,
57
- value: "",
58
- disabled: !0
59
- })
60
- }
61
- )
62
- );
63
- }
64
- }
65
- ),
66
- contentComponentProps: {},
67
- primaryActions: {
68
- text: i("common.confirm"),
69
- close: !0
70
- },
71
- secondaryActions: {
72
- text: i("common.close"),
73
- close: !0
74
- }
75
- }).onPrimary((t) => {
76
- const l = [...n.locations.filter((g) => t.includes(g.doc._id)), ...o];
77
- l.length ? a.setLocations(l) : a.setLocations(null);
78
- });
79
- }
80
- const L = r(() => {
81
- var e;
82
- const s = /* @__PURE__ */ new Set([...n.locations.map((o) => o.doc._id)]);
83
- return (e = a.getLocations()) == null ? void 0 : e.filter((o) => s.has(o.doc._id));
84
- }), h = r(() => {
85
- const s = a.getLocations();
86
- return s ? s.reduce(
87
- (e, o) => {
88
- switch (o.type) {
89
- case "restaurant": {
90
- e[0].restaurants += 1;
91
- break;
92
- }
93
- case "warehouse": {
94
- e[0].warehouses += 1;
95
- break;
96
- }
97
- }
98
- return e[0][o.type] += 1, e;
99
- },
100
- [
101
- {
102
- restaurants: 0,
103
- warehouses: 0
104
- }
105
- ]
106
- ) : [
107
- {
108
- restaurants: "All",
109
- warehouses: "All"
110
- }
111
- ];
112
- });
113
- return {
114
- promptSelectLocations: y,
115
- columnDefs: [
116
- {
117
- accessorKey: "restaurants",
118
- header: () => "Restaurants",
119
- enableSorting: !1
120
- },
121
- {
122
- accessorKey: "warehouses",
123
- header: () => "Warehouses",
124
- enableSorting: !1
125
- }
126
- ],
127
- rowData: h
128
- };
129
- }
130
- export {
131
- F as u
132
- };