@feedmepos/mf-inventory-portal 0.0.19-dev.13 → 0.0.19-dev.15

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 (181) hide show
  1. package/dist/App.vue.d.ts +1 -1
  2. package/dist/{ApprovalView-9MdmwrUz.js → ApprovalView-CRHU3Bv0.js} +5 -5
  3. package/dist/{BindingsDialog-C-q6Y04n.js → BindingsDialog-ChIRg0d3.js} +22 -22
  4. package/dist/{BindingsPicker-syyx9h8v.js → BindingsPicker-BJAbeiDf.js} +17 -17
  5. package/dist/{BindingsTable-CQ0WyX2i.js → BindingsTable-5MxWD_qa.js} +29 -29
  6. package/dist/Entry.vue.d.ts +1 -1
  7. package/dist/FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-D0j4VOis.js +306 -0
  8. package/dist/{IngredientsView-Ofs2UG-9.js → IngredientsView-qXrDtzSK.js} +294 -294
  9. package/dist/{IntegrationView-BCruLSTA.js → IntegrationView-D6yFqod1.js} +278 -278
  10. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-Bvw_BkWY.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DGurlvYg.js} +1 -1
  11. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-BLVAIHDv.js → PremiumBadge.vue_vue_type_script_setup_true_lang-2Ady4pB4.js} +1 -1
  12. package/dist/PurchaseOrderPrintPreview-BWwjMRqb.js +152 -0
  13. package/dist/{ReceiveRequestView-Dw-AC1Mw.js → ReceiveRequestView-C94SWDaj.js} +7 -7
  14. package/dist/{RecipeView-B5WkUzLO.js → RecipeView-CG9H_ZOo.js} +181 -181
  15. package/dist/Standalone.vue.d.ts +1 -1
  16. package/dist/{StockView-CMTxj8Ly.js → StockView-BdXGfDNl.js} +23 -23
  17. package/dist/SupplierView-ClL2oc8K.js +813 -0
  18. package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-B8IGZmDZ.js → TransferDetails.vue_vue_type_script_setup_true_lang-DktBkwCx.js} +106 -106
  19. package/dist/TransferDialog.vue_vue_type_script_setup_true_lang-BE95F9r1.js +1437 -0
  20. package/dist/TransferTemplateView-BXrNS8pg.js +1279 -0
  21. package/dist/{UnitView-CExCsCFg.js → UnitView-Dx2vWJXi.js} +242 -242
  22. package/dist/{WarehouseView-DuPizg7w.js → WarehouseView-UkmUZnqH.js} +360 -362
  23. package/dist/api/bill.d.ts +238 -84
  24. package/dist/api/supplier.d.ts +4 -4
  25. package/dist/app-BLzTa0Ut.js +68571 -0
  26. package/dist/app.d.ts +14 -0
  27. package/dist/app.js +3 -3
  28. package/dist/components/ChangeLocationComponent.vue.d.ts +11 -1
  29. package/dist/components/DeferableLoading.vue.d.ts +1 -1
  30. package/dist/components/DeleteDialog.vue.d.ts +1 -1
  31. package/dist/components/FmCoordinateInput.vue.d.ts +3 -3
  32. package/dist/components/FmDroppableField.vue.d.ts +6 -6
  33. package/dist/components/FmFilterableSelect.vue.d.ts +3 -3
  34. package/dist/components/FmInventoryTableToolbar.vue.d.ts +21 -10
  35. package/dist/components/FmMinMaxInput.vue.d.ts +20 -0
  36. package/dist/components/FmMinMaxInputProps.d.ts +16 -0
  37. package/dist/components/FmMinMaxInputRules.d.ts +4 -0
  38. package/dist/components/FmMultiselectDialog.vue.d.ts +5 -5
  39. package/dist/components/FmMultiselectDialogProps.d.ts +6 -1
  40. package/dist/components/FmUnitInputRules.d.ts +1 -0
  41. package/dist/components/MultiSelectDialog.vue.d.ts +1 -1
  42. package/dist/components/NavigationTab.vue.d.ts +1 -1
  43. package/dist/components/NumberPrecisionInput.vue.d.ts +3 -3
  44. package/dist/components/PremiumBadge.vue.d.ts +3 -3
  45. package/dist/components/PreviewBadge.vue.d.ts +3 -3
  46. package/dist/components/StockForecast.vue.d.ts +1 -1
  47. package/dist/components/TableActionableRow.vue.d.ts +4 -4
  48. package/dist/components/UnitDisplayControl.vue.d.ts +1 -1
  49. package/dist/components/icons/IconCommunity.vue.d.ts +1 -1
  50. package/dist/components/icons/IconDocumentation.vue.d.ts +1 -1
  51. package/dist/components/icons/IconEcosystem.vue.d.ts +1 -1
  52. package/dist/components/icons/IconSupport.vue.d.ts +1 -1
  53. package/dist/components/icons/IconTooling.vue.d.ts +1 -1
  54. package/dist/components/inventory-binding/InventoryBinding.vue.d.ts +5 -5
  55. package/dist/components/map/CoordinateDialog.vue.d.ts +4 -4
  56. package/dist/components/map/GoogleMap.vue.d.ts +6 -6
  57. package/dist/components/nested-multiselect/FmNestedMultiselectDialog.vue.d.ts +3 -3
  58. package/dist/components/shell/inventory/binding-dialog.vue.d.ts +3 -3
  59. package/dist/components/shell/inventory/binding-ui.vue.d.ts +5 -5
  60. package/dist/components/ui-library/FmDateRangePickerChip.vue.d.ts +5 -5
  61. package/dist/composable/useIframe.d.ts +1 -1
  62. package/dist/composable/useSearch.d.ts +1 -1
  63. package/dist/{decimal-GwZ2MmM_.js → decimal-DLYVb_I_.js} +1 -1
  64. package/dist/format-unit-display-D_Z4TNZd.js +668 -0
  65. package/dist/helper/number.d.ts +2 -0
  66. package/dist/{id-to-date-CMUZ2glF.js → id-to-date-CKplrnj_.js} +1 -1
  67. package/dist/is-linked-ingredient-error-fJ2TJb3z.js +37 -0
  68. package/dist/layout/InventoryLayout.vue.d.ts +1 -1
  69. package/dist/layout/SingleColumnLayout.vue.d.ts +5 -5
  70. package/dist/layout/components/NavigationButton.vue.d.ts +4 -4
  71. package/dist/{layout-C3IEOm7C.js → layout-B9sdKjL9.js} +1 -1
  72. package/dist/stores/feature.d.ts +3 -1
  73. package/dist/stores/location.d.ts +112 -148
  74. package/dist/stores/supplier.d.ts +672 -18
  75. package/dist/stores/warehouse.d.ts +9 -5
  76. package/dist/supplier-BZ6HZcYB.js +60 -0
  77. package/dist/tsconfig.app.tsbuildinfo +1 -1
  78. package/dist/views/InventoryView.vue.d.ts +1 -1
  79. package/dist/views/SelectBussinessDialog.vue.d.ts +1 -1
  80. package/dist/views/approval/ApprovalView.vue.d.ts +1 -1
  81. package/dist/views/dev/ComponentPreview.vue.d.ts +1 -1
  82. package/dist/views/dev/components/CoordinateTest.vue.d.ts +1 -1
  83. package/dist/views/dev/components/DateRange.vue.d.ts +1 -1
  84. package/dist/views/dev/components/FmDecimalInputTest.vue.d.ts +1 -1
  85. package/dist/views/dev/components/FmMultiselectDialogGrouped.vue.d.ts +1 -1
  86. package/dist/views/dev/components/FmSelectTest.vue.d.ts +1 -1
  87. package/dist/views/dev/components/InventoryIframe.vue.d.ts +1 -1
  88. package/dist/views/dev/components/LayoutDev.vue.d.ts +1 -1
  89. package/dist/views/dev/components/MfCommontTest.vue.d.ts +1 -1
  90. package/dist/views/dev/components/NestedSelection.vue.d.ts +1 -1
  91. package/dist/views/dev/components/NumberStepper.vue.d.ts +1 -1
  92. package/dist/views/dev/components/TabStorageTest.vue.d.ts +1 -1
  93. package/dist/views/dev/components/UnitInput.vue.d.ts +1 -1
  94. package/dist/views/dev/helpers/pinia-test.d.ts +1 -1
  95. package/dist/views/home/HomeView.vue.d.ts +1 -1
  96. package/dist/views/iframe/inventory-bindings/bindings-dialog/BindingsDialog.vue.d.ts +1 -1
  97. package/dist/views/iframe/inventory-bindings/bindings-picker/BindingsPicker.vue.d.ts +1 -1
  98. package/dist/views/iframe/inventory-bindings/bindings-table/BindingsTable.vue.d.ts +1 -1
  99. package/dist/views/ingredients/IngredientsView.vue.d.ts +1 -1
  100. package/dist/views/ingredients/components/cannot-delete/CannotDelete.vue.d.ts +4 -4
  101. package/dist/views/ingredients/components/convert/ConvertForm.vue.d.ts +3 -3
  102. package/dist/views/ingredients/components/import-ingredients/ImportIngredientItem.vue.d.ts +1 -1
  103. package/dist/views/ingredients/components/import-ingredients/ImportIngredients.vue.d.ts +1 -1
  104. package/dist/views/ingredients/components/ingredient-binded-item/IngredientBindedItem.vue.d.ts +1 -1
  105. package/dist/views/ingredients/components/ingredient-dialog/IngredientDialog.vue.d.ts +5 -5
  106. package/dist/views/ingredients/components/ingredient-form/IngredientForm.vue.d.ts +4 -4
  107. package/dist/views/ingredients/components/inventory-binding/InventoryBindingForm.vue.d.ts +5 -5
  108. package/dist/views/ingredients/components/inventory-binding/InventoryBindingSummary.vue.d.ts +3 -3
  109. package/dist/views/ingredients/composables/use-ingredient-form.d.ts +8 -8
  110. package/dist/views/integration/IntegrationView.vue.d.ts +1 -1
  111. package/dist/views/integration/components/ApplyAddon.vue.d.ts +5 -5
  112. package/dist/views/integration/components/ApplyProduct.vue.d.ts +5 -5
  113. package/dist/views/integration/components/ApplyProductDialog.vue.d.ts +5 -5
  114. package/dist/views/integration/components/ApplyProductDialogV4.vue.d.ts +5 -5
  115. package/dist/views/receive-request/ReceiveRequestView.vue.d.ts +1 -1
  116. package/dist/views/receive-request/components/select-template-dialog/SelectTemplateDialog.vue.d.ts +8 -0
  117. package/dist/views/receive-request/components/supplier-price-history/SupplierPriceHistory.vue.d.ts +1 -1
  118. package/dist/views/receive-request/components/transfer-details/TransferDetails.vue.d.ts +3 -3
  119. package/dist/views/receive-request/components/transfer-dialog/TransferDialog.vue.d.ts +4 -4
  120. package/dist/views/receive-request/components/transfer-dialog/TransferDialogProps.d.ts +1 -1
  121. package/dist/views/receive-request/components/transfer-form/SparkIcon.vue.d.ts +4 -4
  122. package/dist/views/receive-request/components/transfer-form/TransferForm.vue.d.ts +27 -27
  123. package/dist/views/receive-request/components/transfer-form/TransferForm2.vue.d.ts +4 -4
  124. package/dist/views/receive-request/components/transfer-form/components/ForecastStock.vue.d.ts +4 -4
  125. package/dist/views/receive-request/components/transfer-form/components/TransferItem.vue.d.ts +3 -3
  126. package/dist/views/receive-request/components/transfer-form/components/TransferItemTable.vue.d.ts +3 -3
  127. package/dist/views/receive-request/components/transfer-form/composables/use-backdate-po.d.ts +4 -4
  128. package/dist/views/receive-request/components/transfer-form/composables/use-compare-price.d.ts +3 -3
  129. package/dist/views/receive-request/components/transfer-form/composables/use-transfer-items.d.ts +0 -8
  130. package/dist/views/receive-request/composables/use-receive-request-form.d.ts +1013 -67
  131. package/dist/views/receive-request/composables/use-receive-request-table.d.ts +24 -24
  132. package/dist/views/receive-request/print-preview/PurchaseOrderPrintPreview.vue.d.ts +1 -1
  133. package/dist/views/recipe/RecipeView.vue.d.ts +1 -1
  134. package/dist/views/recipe/components/recipe-dialog/RecipeDialog.vue.d.ts +5 -5
  135. package/dist/views/recipe/components/recipe-form/RecipeForm.vue.d.ts +4 -4
  136. package/dist/views/recipe/composables/use-recipe-form.d.ts +8 -8
  137. package/dist/views/stock/StockView.vue.d.ts +1 -1
  138. package/dist/views/stock/components/StockHeaderPreview.vue.d.ts +1 -1
  139. package/dist/views/stock/components/StockHistory.vue.d.ts +3 -3
  140. package/dist/views/stock/components/StockRecalculateDialog.vue.d.ts +2 -2
  141. package/dist/views/stock/components/StockRecordCard.vue.d.ts +123 -46
  142. package/dist/views/stock/components/dialog/AdjustSkuDialog.vue.d.ts +4 -4
  143. package/dist/views/stock/components/dialog/AdjustedItemForm.vue.d.ts +3 -3
  144. package/dist/views/stock/components/dialog/ConvertSkuDialog.vue.d.ts +4 -4
  145. package/dist/views/stock/composables/use-stock-action.d.ts +11 -11
  146. package/dist/views/supplier/SupplierView.vue.d.ts +1 -1
  147. package/dist/views/supplier/components/SupplierDialog.vue.d.ts +4 -4
  148. package/dist/views/supplier/components/SupplierDialogProps.d.ts +1 -0
  149. package/dist/views/supplier/components/SupplierForm.vue.d.ts +10 -10
  150. package/dist/views/supplier/components/SupplierSupplyItemField.vue.d.ts +3 -3
  151. package/dist/views/supplier/composables/use-supplier-table.d.ts +3 -3
  152. package/dist/views/transfer-template/TransferTemplateView.vue.d.ts +1 -1
  153. package/dist/views/transfer-template/components/transfer-template-details/TransferTemplateDetails.vue.d.ts +3 -3
  154. package/dist/views/transfer-template/components/transfer-template-dialog/TransferTemplateDialog.vue.d.ts +4 -4
  155. package/dist/views/transfer-template/components/transfer-template-form/TransferTemplateForm.vue.d.ts +2 -2
  156. package/dist/views/transfer-template/components/transfer-template-form/components/TransferTemplateItem.vue.d.ts +3 -3
  157. package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-locations.d.ts +7 -7
  158. package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-template-items.d.ts +13 -8
  159. package/dist/views/transfer-template/composables/use-transfer-template-actions.d.ts +1020 -79
  160. package/dist/views/transfer-template/composables/use-transfer-template-table.d.ts +309 -11
  161. package/dist/views/unit/UnitView.vue.d.ts +1 -1
  162. package/dist/views/unit/components/unit-dialog/UnitDialog.vue.d.ts +5 -5
  163. package/dist/views/unit/components/unit-form/UnitForm.vue.d.ts +4 -4
  164. package/dist/views/unit/components/unit-summary/UnitSummary.vue.d.ts +3 -3
  165. package/dist/views/unit/components/unit-used-by/UnitUsedBy.vue.d.ts +1 -1
  166. package/dist/views/unit/composables/use-unit-form.d.ts +8 -8
  167. package/dist/views/warehouse/WarehouseView.vue.d.ts +1 -1
  168. package/dist/views/warehouse/components/WarehouseDialog.vue.d.ts +4 -4
  169. package/dist/views/warehouse/components/WarehouseForm.vue.d.ts +22 -14
  170. package/dist/{xlsx-CjErNF-B.js → xlsx-C3AV6UrJ.js} +2759 -2759
  171. package/dist/{xlsx.util-CMXCCmUA.js → xlsx.util-slrhXhsk.js} +2 -2
  172. package/package.json +2 -1
  173. package/dist/FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-DlIq3AyC.js +0 -272
  174. package/dist/PurchaseOrderPrintPreview-Do2KxBzF.js +0 -152
  175. package/dist/SupplierView-OmZ0X1E1.js +0 -801
  176. package/dist/TransferDialog.vue_vue_type_script_setup_true_lang-BJMBsA9j.js +0 -1672
  177. package/dist/TransferTemplateView-Da6ehaJF.js +0 -1101
  178. package/dist/app-Chj8x632.js +0 -67206
  179. package/dist/is-linked-ingredient-error-C6AghEwR.js +0 -37
  180. package/dist/purchase-order-transaction-type-DpZQe_jA.js +0 -299
  181. package/dist/supplier-dG_APcwB.js +0 -54
@@ -18,8 +18,8 @@ export declare function useWarehouseStore(): {
18
18
  birthday?: string | null | undefined;
19
19
  gender?: "MALE" | "FEMALE" | null | undefined;
20
20
  addresses?: {
21
- address: string;
22
21
  name: string;
22
+ address: string;
23
23
  coordinates: number[];
24
24
  }[] | null | undefined;
25
25
  photoURL?: string | null | undefined;
@@ -41,20 +41,24 @@ export declare function useWarehouseStore(): {
41
41
  thumbnail?: string | null | undefined;
42
42
  billingInfos?: {
43
43
  _id?: string | null | undefined;
44
+ name: string;
44
45
  address: {
45
46
  coordinates?: number[] | null | undefined;
46
47
  line2?: string | null | undefined;
47
48
  state: string;
49
+ country: string;
48
50
  line1: string;
49
51
  city: string;
50
52
  postcode: string;
51
- country: string;
52
53
  };
53
- name: string;
54
54
  email: string;
55
55
  companyName: string;
56
56
  contact: string;
57
57
  }[] | null | undefined;
58
+ customerDisplayImages?: {
59
+ url: string;
60
+ restaurantIds: string[];
61
+ }[] | null | undefined;
58
62
  name: string;
59
63
  _id: string;
60
64
  ownerId: string;
@@ -63,6 +67,7 @@ export declare function useWarehouseStore(): {
63
67
  menuVersion: string;
64
68
  } | null | undefined;
65
69
  _id: string;
70
+ businessId: string;
66
71
  profile: {
67
72
  email?: string | null | undefined;
68
73
  phoneNo?: string | null | undefined;
@@ -71,14 +76,13 @@ export declare function useWarehouseStore(): {
71
76
  coordinates?: number[] | null | undefined;
72
77
  line2?: string | null | undefined;
73
78
  state: string;
79
+ country: string;
74
80
  line1: string;
75
81
  city: string;
76
82
  postcode: string;
77
- country: string;
78
83
  };
79
84
  regNo: string;
80
85
  };
81
- businessId: string;
82
86
  }[];
83
87
  readWarehouses(): Promise<void>;
84
88
  createWarehouse(warehouse: CreateType<FdoWarehouse>): Promise<void>;
@@ -0,0 +1,60 @@
1
+ import { n as c, j as d, Q as S, T as f } from "./app-BLzTa0Ut.js";
2
+ import { useCoreStore as m } from "@feedmepos/mf-common";
3
+ import { defineStore as y } from "pinia";
4
+ import { ref as u, computed as w } from "vue";
5
+ const n = c((s, a) => {
6
+ function i(e) {
7
+ var o;
8
+ const r = d(), p = `business_${((o = m().currentBusiness.value) == null ? void 0 : o._id) ?? ""}`, l = r.currentLocation.dbName;
9
+ return e ? p : l;
10
+ }
11
+ return {
12
+ async readSuppliers(e = !1) {
13
+ const r = i(e), t = `${s.inventoryBackendUrl}/${r}/supplier`;
14
+ return await a.get(t);
15
+ },
16
+ async createSupplier(e, r = !1) {
17
+ const t = i(r), p = `${s.inventoryBackendUrl}/${t}/supplier`;
18
+ return await a.post(p, e);
19
+ },
20
+ async updateSupplier(e, r = !1) {
21
+ const t = i(r), p = `${s.inventoryBackendUrl}/${t}/supplier`;
22
+ return await a.put(p, e);
23
+ },
24
+ async deleteSupplier(e, r = !1) {
25
+ const t = i(r), p = `${s.inventoryBackendUrl}/${t}/supplier`;
26
+ return await a.delete(p, e);
27
+ }
28
+ };
29
+ }), N = y("supplier", () => {
30
+ const s = u(new Array()), a = u(new Array()), i = w(() => [...s.value, ...a.value]);
31
+ return {
32
+ async readSuppliers() {
33
+ const e = n();
34
+ s.value = await e.readSuppliers(), a.value = await e.readSuppliers(!0);
35
+ },
36
+ async createSupplier(e, r = !1) {
37
+ await n().createSupplier(e, r);
38
+ },
39
+ async updateSupplier(e, r = !1) {
40
+ await n().updateSupplier(e, r);
41
+ },
42
+ async deleteSupplier(e, r = !1) {
43
+ await n().deleteSupplier(e, r);
44
+ },
45
+ async init() {
46
+ const e = S();
47
+ try {
48
+ await this.readSuppliers();
49
+ } catch (r) {
50
+ throw r instanceof f || e.error("Error at reading suppliers"), r;
51
+ }
52
+ },
53
+ suppliers: i,
54
+ locationSuppliers: s,
55
+ businessSuppliers: a
56
+ };
57
+ });
58
+ export {
59
+ N as u
60
+ };