@feedmepos/mf-inventory-portal 1.2.43 → 1.2.44-dev.2
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.
- package/dist/{App-DVsAv4k3.js → App-BO6IVlu7.js} +3 -3
- package/dist/{ApprovalView-EHDiLsmL.js → ApprovalView-CVX6nsha.js} +5 -5
- package/dist/{BindingsDialog-DL2Dgzpf.js → BindingsDialog-CvoCVSNi.js} +8 -8
- package/dist/{BindingsPicker-BpdNqjSm.js → BindingsPicker-BgJRr_DM.js} +3 -3
- package/dist/{BindingsTable-C6KWR_kl.js → BindingsTable-CoXmqfkS.js} +3 -3
- package/dist/{ClosingDraftView-Byx8Zp15.js → ClosingDraftView-DJOHSc45.js} +615 -573
- package/dist/ClosingHistoryView-D_-BFRz0.js +447 -0
- package/dist/{ClosingTemplateView-DqfxzSBi.js → ClosingTemplateView-Bk3D5Snj.js} +14 -14
- package/dist/{DeliveryOrderPrintPreview-DvaTq4XO.js → DeliveryOrderPrintPreview-Cb64kpGv.js} +9 -9
- package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-Dadg0d7W.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DFANhaaJ.js} +59 -60
- package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-yp0tPBLr.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-DF_WpezC.js} +2 -2
- package/dist/{FmMultiselectDialog-M-tcECkK.js → FmMultiselectDialog-Cfc5qRdH.js} +2 -2
- package/dist/{FmMultiselectDialog-iXXJJ181.js → FmMultiselectDialog-DeHxbT6C.js} +1 -1
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-CzYmgtjx.js → FmUnitInput.vue_vue_type_script_setup_true_lang-BrCLK3_O.js} +3 -3
- package/dist/{ImportView-BGbe571V.js → ImportView-CwTD-Oy5.js} +6 -6
- package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-SkZJQR4H.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-DLq0PwYt.js} +1 -1
- package/dist/{IngredientGroupView-B5AhZqGE.js → IngredientGroupView-C9IrJkA2.js} +5 -5
- package/dist/{IngredientsView-BkORfSgQ.js → IngredientsView-cx05yMa1.js} +14 -14
- package/dist/{IntegrationView-DC1u6d1K.js → IntegrationView-DyhKmpP1.js} +12 -12
- package/dist/{InventoryBindingForm-D4ht1PMO.js → InventoryBindingForm-BiPyN399.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-CFWTE_sj.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-B4hiEtLq.js} +14 -14
- package/dist/{InventoryBindingSummary-DKYKoLOt.js → InventoryBindingSummary-CLipXxCy.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-D1hfyifk.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-dpwW1B9T.js} +1 -1
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-BfsTUKPQ.js → PremiumBadge.vue_vue_type_script_setup_true_lang-CFi82_2z.js} +2 -2
- package/dist/{PublishView-CMTQJ7Nv.js → PublishView-xqkAIXWI.js} +3 -3
- package/dist/{PurchaseOrderPrintPreview-CzYlYowQ.js → PurchaseOrderPrintPreview-DQgycOZX.js} +9 -9
- package/dist/ReceiveRequestView-Bteeg8L4.js +2894 -0
- package/dist/{RecipeView-CIwSZuEd.js → RecipeView-Wr4d3B_9.js} +8 -8
- package/dist/{StockView-DBY2sHlj.js → StockView-CkKpgWUl.js} +344 -341
- package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-VY2KygFc.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-DSGGTbPw.js} +1 -1
- package/dist/{SupplierView-CGsqiXR4.js → SupplierView-BK-t2Qtu.js} +11 -11
- package/dist/{SystemTrailDialog.vue_vue_type_script_setup_true_lang-BUs4-nO6.js → SystemTrailDialog.vue_vue_type_script_setup_true_lang-D7L13xxB.js} +2 -2
- package/dist/{TemplatePublishDialog.vue_vue_type_script_setup_true_lang-plLh-5S3.js → TemplatePublishDialog.vue_vue_type_script_setup_true_lang-DWMif1dO.js} +1 -1
- package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-C8DluFT4.js → TransferDetails.vue_vue_type_script_setup_true_lang-0tyNbKG0.js} +306 -306
- package/dist/{TransferTemplateView-BEXsC7mp.js → TransferTemplateView-qIlYcciH.js} +354 -354
- package/dist/{UnitView-BGRkT8Hr.js → UnitView-B5boUZuR.js} +6 -6
- package/dist/{WarehouseView-D7og7WBg.js → WarehouseView-C3PXZgeW.js} +5 -5
- package/dist/WastageTemplateView-BfJZ5Heq.js +2327 -0
- package/dist/api/stock.d.ts +2 -0
- package/dist/{app-CioeggUO.js → app-IXE7AiJd.js} +2344 -2296
- package/dist/app.js +7 -7
- package/dist/{closing-template-DrBlhTbC.js → closing-template-Bdb3yRUm.js} +1 -1
- package/dist/{date2-mucf0HV-.js → date2-FhBpgAsI.js} +1 -1
- package/dist/{dayjs.min-C5lVIjQ1.js → dayjs.min-DzvYG-ky.js} +21 -21
- package/dist/{decimal-EYAs7CPT.js → decimal-Io-Hwy_Y.js} +2 -2
- package/dist/{defineDeepModel-BQ_3cF8o.js → defineDeepModel-D8sQDXuo.js} +1 -1
- package/dist/{duplicate-template-K_oezMr4.js → duplicate-template-DnygqbZo.js} +1 -1
- package/dist/feature-C4FdNiJm.js +25697 -0
- package/dist/{format-time-from-id-qnJY4xQY.js → format-time-from-id-oJMEPmai.js} +1 -1
- package/dist/{format-unit-display-6I_PHQ9C.js → format-unit-display-CyyP1TnC.js} +245 -246
- package/dist/helper/form.d.ts +1 -0
- package/dist/helper/object.d.ts +21 -0
- package/dist/helper/reactivity.d.ts +11 -0
- package/dist/helper/reactivity.spec.d.ts +1 -0
- package/dist/{import-export.helper-vmA8rXwv.js → import-export.helper-C33N1h7C.js} +5 -5
- package/dist/{index-DXJ9MIiE.js → index-DYfJ9nqH.js} +9 -9
- package/dist/{index-5yza2WJR.js → index-DdtrR7II.js} +1 -1
- package/dist/{index-DqMYKP87.js → index-qDt3kqgv.js} +3 -3
- package/dist/{lodash-D6iOSfR7.js → lodash-DRz5U0Za.js} +1 -1
- package/dist/{netsuite-DKE_ORM0.js → netsuite-CIv-Yh60.js} +70 -70
- package/dist/{purchase-order-template-Brpbfw8K.js → purchase-order-template-CX62LUzz.js} +1 -1
- package/dist/{rules-fd3m4inF.js → rules-DmJTahUJ.js} +3 -3
- package/dist/{stock-CLX4SKxt.js → stock-BAtpqZgN.js} +3 -3
- package/dist/{stock-8-vRigjE.js → stock-dMNUMGOC.js} +35 -27
- package/dist/{supplier-Dlv1Clk5.js → supplier-B2g3AW72.js} +2 -2
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{use-ingredient-select-dialog-2j3Nbou_.js → use-ingredient-select-dialog-ZyFtPCb9.js} +2 -2
- package/dist/{use-inventory-binding-dialog-_S2XGoVU.js → use-inventory-binding-dialog-CRgPd2qi.js} +2 -2
- package/dist/{use-template-enabled-locations-2-CWlQQnyD.js → use-template-enabled-locations-2-S598U0zh.js} +2 -2
- package/dist/views/adjustment-template/wastage-template/form/useAdjustmentTemplateItems.d.ts +7 -0
- package/dist/views/closing-draft/composables/use-closing-draft-actions.d.ts +4 -1
- package/dist/views/ingredient-group/components/ingredient-group-form/IngredientGroupForm.vue.d.ts +1 -0
- package/dist/views/receive-request/components/netsuite/NetSuitePanel.vue.d.ts +3 -2
- package/dist/views/receive-request/components/netsuite/NetSuiteProps.d.ts +3 -2
- package/dist/views/receive-request/components/transfer-form/TransferFormProps.d.ts +6 -0
- package/dist/views/receive-request/components/transfer-form/TransferFormWithController.vue.d.ts +628 -0
- package/dist/views/receive-request/components/transfer-form/composables/use-purchase-order-form-controller.d.ts +22 -0
- package/dist/views/receive-request/components/transfer-form/composables/use-transfer-items.d.ts +3 -2
- package/dist/views/receive-request/composables/use-process-purchase-order.d.ts +1 -1
- package/dist/views/receive-request/composables/use-receive-request-form.d.ts +6 -6
- package/dist/views/receive-request/composables/use-receive-request-table.d.ts +7 -7
- package/dist/views/receive-request/constants/purchase-order-transaction-type.d.ts +2 -2
- package/dist/views/receive-request/helper/get-transfer-type.d.ts +1 -2
- package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-template-items.d.ts +3 -2
- package/dist/views/transfer-template/components/transfer-template-import/TransferTemplateImportItemProps.d.ts +3 -2
- package/dist/views/transfer-template/helpers/import-export.helper.d.ts +4 -3
- package/dist/{vue-i18n-CCrvzsiW.js → vue-i18n-CoLcy8bm.js} +286 -286
- package/dist/{xlsx-oL4emcgf.js → xlsx-CtFn9Ikt.js} +398 -398
- package/dist/{xlsx.util-JOeDOZ3P.js → xlsx.util-C5Ug4P4c.js} +1 -1
- package/package.json +3 -3
- package/dist/ClosingHistoryView-BpFFNCqD.js +0 -391
- package/dist/ReceiveRequestView-CMHZZ9ul.js +0 -2841
- package/dist/WastageTemplateView-CwEUAwCw.js +0 -2287
- package/dist/feature-BkR98vGd.js +0 -20161
- package/dist/views/receive-request/components/transfer-form/TransferForm.vue.d.ts +0 -3159
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { o as d, u as
|
|
2
|
-
import { useCoreStore as
|
|
1
|
+
import { o as d, u as l } from "./app-IXE7AiJd.js";
|
|
2
|
+
import { useCoreStore as m } from "@feedmepos/mf-common";
|
|
3
3
|
import { useSnackbar as $ } from "@feedmepos/ui-library";
|
|
4
|
-
const y = d((o,
|
|
5
|
-
const s =
|
|
6
|
-
return
|
|
4
|
+
const y = d((o, a) => {
|
|
5
|
+
const s = l(), u = m(), i = $();
|
|
6
|
+
return a.onError(async (e) => {
|
|
7
7
|
e.name === "SvcForbiddenError" && (i == null || i.open({
|
|
8
8
|
title: e.title,
|
|
9
9
|
message: e.message,
|
|
@@ -12,68 +12,76 @@ const y = d((o, r) => {
|
|
|
12
12
|
}), {
|
|
13
13
|
async readStockBalance() {
|
|
14
14
|
const e = s.currentLocationDBName, t = `${o.inventoryBackendUrl}/${e}/stock-balance`;
|
|
15
|
-
return await
|
|
15
|
+
return await a.get(t);
|
|
16
16
|
},
|
|
17
17
|
async readSkuBalance() {
|
|
18
|
-
var
|
|
18
|
+
var r;
|
|
19
19
|
const e = s.currentLocationDBName, t = `${o.inventoryBackendUrl}/${e}/sku/balance`;
|
|
20
|
-
return (((
|
|
20
|
+
return (((r = u.currentBusiness.value) == null ? void 0 : r.menuVersion) ?? "") === "v3" ? await a.get(t) : await a.get(`${t}?useInventoryDoc=true`);
|
|
21
21
|
},
|
|
22
22
|
async readSingleAdjustment(e) {
|
|
23
23
|
const t = s.currentLocationDBName, n = `${o.inventoryBackendUrl}/${t}/adjustment`;
|
|
24
|
-
return await
|
|
24
|
+
return await a.get(`${n}?adjustmentId=${e}`);
|
|
25
25
|
},
|
|
26
26
|
async readStockAdjustment(e, t, n) {
|
|
27
|
-
const
|
|
28
|
-
return await
|
|
27
|
+
const r = s.currentLocationDBName, c = `${o.inventoryBackendUrl}/${r}/sku`;
|
|
28
|
+
return await a.get(`${c}?skuId=${e}&start=${t}&end=${n}`);
|
|
29
29
|
},
|
|
30
30
|
async readAdjustmentById(e) {
|
|
31
31
|
const t = s.currentLocationDBName, n = `${o.inventoryBackendUrl}/${t}/adjustment`;
|
|
32
|
-
return await
|
|
32
|
+
return await a.get(`${n}?adjustmentId=${e}`);
|
|
33
33
|
},
|
|
34
34
|
async convertSku(e) {
|
|
35
35
|
var c;
|
|
36
36
|
const t = s.currentLocationDBName, n = `${o.inventoryBackendUrl}/${t}/sku/convert`;
|
|
37
|
-
return (((c = u.currentBusiness.value) == null ? void 0 : c.menuVersion) ?? "") === "v3" ? await
|
|
37
|
+
return (((c = u.currentBusiness.value) == null ? void 0 : c.menuVersion) ?? "") === "v3" ? await a.post(n, e) : await a.post(`${n}?useInventoryDoc=true`, e);
|
|
38
38
|
},
|
|
39
39
|
async adjustSku(e) {
|
|
40
40
|
var c;
|
|
41
41
|
const t = s.currentLocationDBName, n = `${o.inventoryBackendUrl}/${t}/sku/adjust`;
|
|
42
|
-
return (((c = u.currentBusiness.value) == null ? void 0 : c.menuVersion) ?? "") === "v3" ? await
|
|
42
|
+
return (((c = u.currentBusiness.value) == null ? void 0 : c.menuVersion) ?? "") === "v3" ? await a.post(n, e) : await a.post(`${n}?useInventoryDoc=true`, e);
|
|
43
43
|
},
|
|
44
44
|
async revertWastageAdjustment(e) {
|
|
45
45
|
const t = s.currentLocationDBName, n = `${o.inventoryBackendUrl}/${t}/sku/revert-wastage-adjustment`;
|
|
46
|
-
return await
|
|
46
|
+
return await a.post(n, e);
|
|
47
47
|
},
|
|
48
48
|
recalculation: {
|
|
49
49
|
getRecalculateAbility() {
|
|
50
|
-
var
|
|
51
|
-
const t = `business_${(
|
|
52
|
-
return
|
|
50
|
+
var r;
|
|
51
|
+
const t = `business_${(r = u.currentBusiness.value) == null ? void 0 : r._id}`, n = `${o.inventoryBackendUrl}/${t}/stock/operations/recalculate`;
|
|
52
|
+
return a.get(n);
|
|
53
53
|
},
|
|
54
54
|
startRecalculateTask() {
|
|
55
|
-
var
|
|
56
|
-
const t = `business_${(
|
|
57
|
-
return
|
|
55
|
+
var r;
|
|
56
|
+
const t = `business_${(r = u.currentBusiness.value) == null ? void 0 : r._id}`, n = `${o.inventoryBackendUrl}/${t}/stock/operations/recalculate?refundFromPreviousAdjustment=true`;
|
|
57
|
+
return a.post(n);
|
|
58
58
|
},
|
|
59
59
|
refreshCurrentBalances() {
|
|
60
60
|
const e = s.currentLocationDBName, t = `${o.inventoryBackendUrl}/${e}/stock/operations/recalculate/refresh-current-balances`;
|
|
61
|
-
return
|
|
61
|
+
return a.post(t);
|
|
62
62
|
},
|
|
63
63
|
scheduleCalculateStockSnapshotAtDate(e, t) {
|
|
64
|
-
const n = s.currentLocationDBName,
|
|
65
|
-
return
|
|
64
|
+
const n = s.currentLocationDBName, r = `${o.inventoryBackendUrl}/${n}/stock/operations/recalculate/schedule/calculate-at-date?effectiveAt=${encodeURIComponent(e)}&closingDraftId=${encodeURIComponent(t)}`;
|
|
65
|
+
return a.get(r);
|
|
66
|
+
},
|
|
67
|
+
scheduleInvalidateClosingDraftCache(e) {
|
|
68
|
+
const t = s.currentLocationDBName, n = `${o.inventoryBackendUrl}/${t}/stock/operations/recalculate/schedule/invalidate-closing-draft-cache`;
|
|
69
|
+
return a.post(n, { closingDraftIds: e });
|
|
66
70
|
},
|
|
67
71
|
recalculationRequests() {
|
|
68
72
|
const e = s.currentLocationDBName, t = `${o.inventoryBackendUrl}/${e}/stock/operations/recalculate/recalculation/requests`;
|
|
69
|
-
return
|
|
73
|
+
return a.get(t);
|
|
70
74
|
},
|
|
71
75
|
scheduleRecalculation(e, t) {
|
|
72
|
-
const n = s.currentLocationDBName,
|
|
73
|
-
return
|
|
76
|
+
const n = s.currentLocationDBName, r = `${o.inventoryBackendUrl}/${n}/stock/operations/recalculate/schedule/recalculation`;
|
|
77
|
+
return a.post(r, {
|
|
74
78
|
openingId: e,
|
|
75
79
|
untilDate: t
|
|
76
80
|
});
|
|
81
|
+
},
|
|
82
|
+
getAffectedClosingDrafts(e, t) {
|
|
83
|
+
const n = s.currentLocationDBName, r = `${o.inventoryBackendUrl}/${n}/closing-draft/recalculation/affected-closing-drafts?openingId=${encodeURIComponent(e)}&untilDate=${encodeURIComponent(t)}`;
|
|
84
|
+
return a.get(r);
|
|
77
85
|
}
|
|
78
86
|
}
|
|
79
87
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { o as b, u, n as v, p as w, q as $ } from "./app-
|
|
2
|
-
import { u as S } from "./feature-
|
|
1
|
+
import { o as b, u, n as v, p as w, q as $ } from "./app-IXE7AiJd.js";
|
|
2
|
+
import { u as S } from "./feature-C4FdNiJm.js";
|
|
3
3
|
import { useCoreStore as c } from "@feedmepos/mf-common";
|
|
4
4
|
import { defineStore as f } from "pinia";
|
|
5
5
|
import { ref as l, computed as d } from "vue";
|