@feedmepos/mf-inventory-portal 1.2.33 → 1.2.36-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 (76) hide show
  1. package/dist/{App-DZlXTrHA.js → App-CTY_Q9-Q.js} +3 -3
  2. package/dist/{ApprovalView-n9R3_4n5.js → ApprovalView-DiXk36JT.js} +6 -6
  3. package/dist/{BindingsDialog-BpN38f-V.js → BindingsDialog-FdFnPvQn.js} +2 -2
  4. package/dist/{BindingsPicker-ZH-akaEr.js → BindingsPicker-DertVxse.js} +2 -2
  5. package/dist/{BindingsTable-VQxfC1oo.js → BindingsTable-DYPcKNUo.js} +4 -4
  6. package/dist/{ClosingDraftView-CQ4RbDCE.js → ClosingDraftView-DG9pDR5n.js} +8 -8
  7. package/dist/{ClosingHistoryView-B6msx1wN.js → ClosingHistoryView-BPwRoI-C.js} +3 -3
  8. package/dist/{ClosingTemplateView-CDl0lGcE.js → ClosingTemplateView-78Pq2yef.js} +63 -64
  9. package/dist/{DeliveryOrderPrintPreview-CqTgIT2-.js → DeliveryOrderPrintPreview-BZasxeDW.js} +1 -1
  10. package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-ffgD46YJ.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-CvirNvCa.js} +5 -5
  11. package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-3i6gta2_.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-B_XFWx1-.js} +3 -3
  12. package/dist/{FmMultiselectDialog-Bxgel73A.js → FmMultiselectDialog-B19DpJoy.js} +63 -62
  13. package/dist/{FmMultiselectDialog-DXkviGM-.js → FmMultiselectDialog-qvmob-Xl.js} +1 -1
  14. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-yODFPpfv.js → FmUnitInput.vue_vue_type_script_setup_true_lang-DE8VqBVB.js} +3 -3
  15. package/dist/{ImportView-DW_diSKU.js → ImportView-Cqpy6p_A.js} +7 -7
  16. package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-9Xhcey42.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-BRC3I-5-.js} +1 -1
  17. package/dist/{IngredientGroupView-BUlpqTe1.js → IngredientGroupView-E-7c3kkE.js} +6 -6
  18. package/dist/{IngredientsView-DgoIxgfz.js → IngredientsView-B1qi9Ovw.js} +15 -15
  19. package/dist/{IntegrationView-fa2TuRbS.js → IntegrationView-DHZtSQIh.js} +13 -13
  20. package/dist/{InventoryBindingForm-CKvPS4ju.js → InventoryBindingForm-BymjlJdn.js} +1 -1
  21. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-DIK6Moxl.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-RC19AcZL.js} +4 -4
  22. package/dist/{InventoryBindingSummary-B6leDpQp.js → InventoryBindingSummary-WOMmDIec.js} +1 -1
  23. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-ByeH4ZWk.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BDlZe5O3.js} +1 -1
  24. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-zBaUqEmu.js → PremiumBadge.vue_vue_type_script_setup_true_lang-DgqjGOzp.js} +2 -2
  25. package/dist/{PublishView-BwPcsPCK.js → PublishView-CVisOUSv.js} +3 -3
  26. package/dist/{PurchaseOrderPrintPreview-BHqtjXkv.js → PurchaseOrderPrintPreview-rWWfOSaq.js} +41 -37
  27. package/dist/{ReceiveRequestView-Cjwrk8VI.js → ReceiveRequestView-Jk5v5CqU.js} +21 -21
  28. package/dist/{RecipeView-Bkdzy3E6.js → RecipeView-JHHBMkwk.js} +8 -8
  29. package/dist/{StockView-DApHDcVz.js → StockView-2XnQxCXO.js} +16 -16
  30. package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-DnWQA2Lt.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-BcsYzEkh.js} +1 -1
  31. package/dist/{SupplierView-CV82IgOH.js → SupplierView-G6HQlhZi.js} +11 -11
  32. package/dist/{SystemTrailDialog.vue_vue_type_script_setup_true_lang-VVu0no4P.js → SystemTrailDialog.vue_vue_type_script_setup_true_lang-DEfBZp25.js} +2 -2
  33. package/dist/TemplatePublishDialog.vue_vue_type_script_setup_true_lang-DCIG4vb3.js +153 -0
  34. package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-6n3Y_OLH.js → TransferDetails.vue_vue_type_script_setup_true_lang-CFzf6vxK.js} +855 -850
  35. package/dist/{TransferTemplateView-DjFSGZMN.js → TransferTemplateView-BTXoU-DU.js} +15 -15
  36. package/dist/{UnitView-Dew8bmUZ.js → UnitView-B01l7Pfc.js} +6 -6
  37. package/dist/{WarehouseView-BOoWoUhp.js → WarehouseView-94IcWCcL.js} +5 -5
  38. package/dist/{WastageTemplateView-D9_1S5Tw.js → WastageTemplateView-DxwN9TD_.js} +54 -55
  39. package/dist/{app-2DwaW8bK.js → app-BLzzXeIE.js} +107 -104
  40. package/dist/{app-rgirz_52.js → app-uBuHtW8m.js} +2546 -2443
  41. package/dist/app.js +1 -1
  42. package/dist/{closing-template-Dani6mjY.js → closing-template-DpkVBXl0.js} +1 -1
  43. package/dist/components/FmMultiselectDialogProps.d.ts +7 -0
  44. package/dist/components/TemplatePublishDialog.d.ts +1 -1
  45. package/dist/{date2-DXkMIuu5.js → date2-Cff29_qv.js} +1 -1
  46. package/dist/{dayjs.min-B8waIhIC.js → dayjs.min-BZcZttKK.js} +1 -1
  47. package/dist/{decimal-VyBE91vW.js → decimal-D1uTRWeM.js} +2 -2
  48. package/dist/{defineDeepModel-PkrO2Wxs.js → defineDeepModel-Dda0vf9s.js} +1 -1
  49. package/dist/{duplicate-template-DeYKr2Bg.js → duplicate-template-CnDxTqeA.js} +1 -1
  50. package/dist/{feature-FgmkIF3B.js → feature-Dmp8LTbY.js} +2 -2
  51. package/dist/{format-time-from-id-CSWMUxAM.js → format-time-from-id-DeA1WyqH.js} +1 -1
  52. package/dist/{format-unit-display-CV9rAJTa.js → format-unit-display-Dtx2nwLE.js} +10 -10
  53. package/dist/{import-export.helper-CKUJ7xDX.js → import-export.helper-B5dobyTc.js} +5 -5
  54. package/dist/{index-D3awIcXu.js → index-B_mNrHmO.js} +1 -1
  55. package/dist/{index-I05S36-t.js → index-CSfFxy15.js} +1 -1
  56. package/dist/{index-DGP_gFqT.js → index-DcAMshU8.js} +3 -3
  57. package/dist/{lodash-D6Q1ZDRB.js → lodash-aQznORAq.js} +1 -1
  58. package/dist/{netsuite-DQY2wMLI.js → netsuite-Df9dhVB8.js} +3 -3
  59. package/dist/{purchase-order-template-CaLcx48T.js → purchase-order-template-VX-N0O8c.js} +1 -1
  60. package/dist/{rules-ZpDdGbPh.js → rules-CD5fiTtG.js} +3 -3
  61. package/dist/{stock-4SqXZuFG.js → stock-C7c2xYoH.js} +1 -1
  62. package/dist/{stock-Cz7v7D1F.js → stock-rJukALO2.js} +3 -3
  63. package/dist/stores/location.d.ts +2 -0
  64. package/dist/style.css +1 -1
  65. package/dist/{supplier-C-LaHjap.js → supplier-B2b_cNEF.js} +2 -2
  66. package/dist/tsconfig.app.tsbuildinfo +1 -1
  67. package/dist/{use-ingredient-select-dialog-CNTO2lW4.js → use-ingredient-select-dialog-SPDZuFRM.js} +2 -2
  68. package/dist/{use-inventory-binding-dialog-CXMe88xn.js → use-inventory-binding-dialog-D_JgW2yO.js} +2 -2
  69. package/dist/use-template-enabled-locations-2-Dy29_I7e.js +120 -0
  70. package/dist/views/receive-request/print-preview/PurchaseOrderPrintPreview.vue.d.ts +1 -0
  71. package/dist/{vue-i18n-BecZcJLf.js → vue-i18n-DiQOfdza.js} +376 -376
  72. package/dist/{xlsx-DBmWnfyv.js → xlsx-BbrzRons.js} +1 -1
  73. package/dist/{xlsx.util-D0WHz1Le.js → xlsx.util-BOmP544G.js} +1 -1
  74. package/package.json +2 -2
  75. package/dist/TemplatePublishDialog.vue_vue_type_script_setup_true_lang-CukkNBfv.js +0 -123
  76. package/dist/use-template-enabled-locations-2-B7P6aGiv.js +0 -111
@@ -1,6 +1,6 @@
1
1
  import { defineStore as y } from "pinia";
2
- import { a as S } from "./app-2DwaW8bK.js";
3
- import { a as b } from "./FmMultiselectDialog-Bxgel73A.js";
2
+ import { a as S } from "./app-BLzzXeIE.js";
3
+ import { a as b } from "./FmMultiselectDialog-B19DpJoy.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-Bxgel73A.js";
2
- import { a as P } from "./app-2DwaW8bK.js";
1
+ import { a as g } from "./FmMultiselectDialog-B19DpJoy.js";
2
+ import { a as P } from "./app-BLzzXeIE.js";
3
3
  import { useDialog as E } from "@feedmepos/ui-library";
4
4
  function A() {
5
5
  const u = P(), _ = E();
@@ -0,0 +1,120 @@
1
+ import { a as A } from "./FmMultiselectDialog-B19DpJoy.js";
2
+ import { u as S } from "./app-BLzzXeIE.js";
3
+ import { useI18n as v, useCoreStore as m, useCustomAttributes as w } from "@feedmepos/mf-common";
4
+ import { useDialog as _, components as d } from "@feedmepos/ui-library";
5
+ import { computed as r, h as c } from "vue";
6
+ function K(a) {
7
+ const p = _(), n = S(), { t: i } = v(), b = r(() => m().restaurants.value.reduce(
8
+ (e, o) => (e[o._id] = o.customAttributes || {}, e),
9
+ {}
10
+ )), { attributes: f } = w({
11
+ valueSource: m().restaurants,
12
+ entity: "restaurant"
13
+ });
14
+ function L() {
15
+ var u;
16
+ const s = a.getLocations() ?? [], e = n.locationById, o = s.filter((t) => !e[t.doc._id]);
17
+ p.open({
18
+ title: "Select at least one location",
19
+ contentComponent: c(
20
+ A,
21
+ {
22
+ modelValue: ((u = h.value) == null ? void 0 : u.map((t) => t.doc._id)) ?? [],
23
+ items: n.locations.map((t) => ({
24
+ label: `${t.name}(${t.doc.profile.code ?? "--"})`,
25
+ sublabel: t.type,
26
+ value: t.doc._id,
27
+ customAttributes: b.value[t.doc._id]
28
+ })),
29
+ filterAttributes: f.value,
30
+ attributeKey: "customAttributes"
31
+ },
32
+ {
33
+ appendList() {
34
+ return o.map(
35
+ (t) => c(
36
+ d.FmListItem,
37
+ {
38
+ label: `${t.name}(${t.doc.profile.code ?? "--"})`,
39
+ sublabel: "This location is not manageable by your account.",
40
+ disabled: !0
41
+ },
42
+ {
43
+ prepend: c(d.FmCheckbox, {
44
+ modelValue: !0,
45
+ value: "",
46
+ disabled: !0
47
+ })
48
+ }
49
+ )
50
+ );
51
+ }
52
+ }
53
+ ),
54
+ contentComponentProps: {},
55
+ primaryActions: {
56
+ text: i("common.confirm"),
57
+ close: !0
58
+ },
59
+ secondaryActions: {
60
+ text: i("common.close"),
61
+ close: !0
62
+ }
63
+ }).onPrimary((t) => {
64
+ const l = [...n.locations.filter((g) => t.includes(g.doc._id)), ...o];
65
+ l.length ? a.setLocations(l) : a.setLocations(null);
66
+ });
67
+ }
68
+ const h = r(() => {
69
+ var e;
70
+ const s = /* @__PURE__ */ new Set([...n.locations.map((o) => o.doc._id)]);
71
+ return (e = a.getLocations()) == null ? void 0 : e.filter((o) => s.has(o.doc._id));
72
+ }), y = r(() => {
73
+ const s = a.getLocations();
74
+ return s ? s.reduce(
75
+ (e, o) => {
76
+ switch (o.type) {
77
+ case "restaurant": {
78
+ e[0].restaurants += 1;
79
+ break;
80
+ }
81
+ case "warehouse": {
82
+ e[0].warehouses += 1;
83
+ break;
84
+ }
85
+ }
86
+ return e[0][o.type] += 1, e;
87
+ },
88
+ [
89
+ {
90
+ restaurants: 0,
91
+ warehouses: 0
92
+ }
93
+ ]
94
+ ) : [
95
+ {
96
+ restaurants: "All",
97
+ warehouses: "All"
98
+ }
99
+ ];
100
+ });
101
+ return {
102
+ promptSelectLocations: L,
103
+ columnDefs: [
104
+ {
105
+ accessorKey: "restaurants",
106
+ header: () => "Restaurants",
107
+ enableSorting: !1
108
+ },
109
+ {
110
+ accessorKey: "warehouses",
111
+ header: () => "Warehouses",
112
+ enableSorting: !1
113
+ }
114
+ ],
115
+ rowData: y
116
+ };
117
+ }
118
+ export {
119
+ K as u
120
+ };
@@ -16,6 +16,7 @@ export interface PurchaseOrderPrintData {
16
16
  };
17
17
  buyer: {
18
18
  name: string;
19
+ legalName?: string;
19
20
  registrationNumber: string;
20
21
  line1: string;
21
22
  line2?: string;