@feedmepos/mf-inventory-portal 0.0.19-dev.16 → 0.0.19-dev.17

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 (47) hide show
  1. package/dist/{ApprovalView-CKcQLAI8.js → ApprovalView-YVJ8rI2M.js} +5 -5
  2. package/dist/{BindingsDialog-Cp73zLps.js → BindingsDialog-C7ZO5bXe.js} +1 -1
  3. package/dist/{BindingsPicker-DgRYGAX9.js → BindingsPicker-BDsVbM3L.js} +1 -1
  4. package/dist/{BindingsTable-DcAf4NjN.js → BindingsTable-BiVQ4mvK.js} +1 -1
  5. package/dist/FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-vuSl8LVG.js +308 -0
  6. package/dist/{IngredientsView-CudiU14j.js → IngredientsView-CKDZsR2e.js} +4 -4
  7. package/dist/{IntegrationView-DAL6iV4z.js → IntegrationView-DQZeJKul.js} +2 -2
  8. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-QzKXWhYR.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DDcFEUcz.js} +1 -1
  9. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-DjjUDrN3.js → PremiumBadge.vue_vue_type_script_setup_true_lang-6plo8rnV.js} +1 -1
  10. package/dist/{PurchaseOrderPrintPreview-Dx0kFMsh.js → PurchaseOrderPrintPreview-Df-gYZFA.js} +1 -1
  11. package/dist/{ReceiveRequestView-CJPRYtPB.js → ReceiveRequestView-CxW1ONAk.js} +7 -7
  12. package/dist/{RecipeView-B_q03wl5.js → RecipeView-B8eIaR2f.js} +4 -4
  13. package/dist/{StockView-jsZK17Y2.js → StockView-CqgqPyvI.js} +7 -7
  14. package/dist/SupplierView-CPHQT1Hn.js +817 -0
  15. package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-Dgn1Q71R.js → TransferDetails.vue_vue_type_script_setup_true_lang-CBmoU3pN.js} +4 -4
  16. package/dist/TransferDialog.vue_vue_type_script_setup_true_lang-DV6IxKMM.js +1435 -0
  17. package/dist/TransferTemplateView-BR2-tTiQ.js +1290 -0
  18. package/dist/{UnitView-CmxzOeJT.js → UnitView-vUCf46QM.js} +5 -5
  19. package/dist/{WarehouseView-CRQ0iaDH.js → WarehouseView-B3D5kkAU.js} +3 -3
  20. package/dist/api/purchase-order-template.d.ts +4 -0
  21. package/dist/api/supplier.d.ts +6 -4
  22. package/dist/{app-Bi46PfDl.js → app-Ds9lsiAo.js} +3344 -3324
  23. package/dist/app.js +1 -1
  24. package/dist/components/ChangeLocationComponent.vue.d.ts +14 -11
  25. package/dist/components/FmInventoryTableToolbar.vue.d.ts +0 -2
  26. package/dist/components/FmMultiselectDialogProps.d.ts +1 -0
  27. package/dist/{decimal-BgCTHluk.js → decimal-BZJuYjv-.js} +1 -1
  28. package/dist/format-unit-display-Dw4iQUDG.js +707 -0
  29. package/dist/{id-to-date-BoyYjRV6.js → id-to-date-CLG4t5Zp.js} +1 -1
  30. package/dist/layout/SingleColumnLayout.vue.d.ts +1 -0
  31. package/dist/{layout-BMITwCg7.js → layout-b03Lvqhx.js} +1 -1
  32. package/dist/stores/feature.d.ts +1 -0
  33. package/dist/stores/location.d.ts +1 -0
  34. package/dist/stores/supplier.d.ts +9 -9
  35. package/dist/supplier-C9OQNEl0.js +69 -0
  36. package/dist/tsconfig.app.tsbuildinfo +1 -1
  37. package/dist/views/supplier/components/SupplierDialogProps.d.ts +0 -1
  38. package/dist/views/transfer-template/composables/use-transfer-template-table.d.ts +583 -1
  39. package/dist/{xlsx-DYXPer0D.js → xlsx-B5RUBjKV.js} +1 -1
  40. package/dist/{xlsx.util-GCkah-Uu.js → xlsx.util-H2UkpLte.js} +2 -2
  41. package/package.json +1 -1
  42. package/dist/FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-La7HFqE7.js +0 -306
  43. package/dist/SupplierView-tzSVBr7C.js +0 -813
  44. package/dist/TransferDialog.vue_vue_type_script_setup_true_lang-BqxrMEtA.js +0 -1437
  45. package/dist/TransferTemplateView-DTH0Vubz.js +0 -1279
  46. package/dist/format-unit-display-B7oG4kXR.js +0 -668
  47. package/dist/supplier-CGwlcK2h.js +0 -60
@@ -1,60 +0,0 @@
1
- import { n as c, j as d, Q as S, T as f } from "./app-Bi46PfDl.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
- };