@feedmepos/mf-inventory-portal 1.2.43 → 1.2.44-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.
- package/dist/{App-DVsAv4k3.js → App-D6h4PbkJ.js} +3 -3
- package/dist/{ApprovalView-EHDiLsmL.js → ApprovalView-Bll-QWib.js} +5 -5
- package/dist/{BindingsDialog-DL2Dgzpf.js → BindingsDialog-cm-tG1Du.js} +8 -8
- package/dist/{BindingsPicker-BpdNqjSm.js → BindingsPicker-Ca0BxJKj.js} +3 -3
- package/dist/{BindingsTable-C6KWR_kl.js → BindingsTable-BBNWeq4W.js} +3 -3
- package/dist/{ClosingDraftView-Byx8Zp15.js → ClosingDraftView-r2C27qph.js} +766 -723
- package/dist/ClosingHistoryView-CGV72nOD.js +447 -0
- package/dist/{ClosingTemplateView-DqfxzSBi.js → ClosingTemplateView-Xij995aZ.js} +14 -14
- package/dist/{DeliveryOrderPrintPreview-DvaTq4XO.js → DeliveryOrderPrintPreview-BoBBu5lC.js} +9 -9
- package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-Dadg0d7W.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-SnXudMX4.js} +59 -60
- package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-yp0tPBLr.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-ClY0PFyA.js} +2 -2
- package/dist/{FmMultiselectDialog-M-tcECkK.js → FmMultiselectDialog-BcZpbDMT.js} +2 -2
- package/dist/{FmMultiselectDialog-iXXJJ181.js → FmMultiselectDialog-C9g5u6Kk.js} +1 -1
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-CzYmgtjx.js → FmUnitInput.vue_vue_type_script_setup_true_lang-B-PD6CbF.js} +3 -3
- package/dist/{ImportView-BGbe571V.js → ImportView-CzMwJY2A.js} +6 -6
- package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-SkZJQR4H.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-DgOrurbQ.js} +1 -1
- package/dist/{IngredientGroupView-B5AhZqGE.js → IngredientGroupView-DBbwP3E6.js} +5 -5
- package/dist/{IngredientsView-BkORfSgQ.js → IngredientsView-jRqkzOTc.js} +14 -14
- package/dist/{IntegrationView-DC1u6d1K.js → IntegrationView-B-_39POT.js} +12 -12
- package/dist/{InventoryBindingForm-D4ht1PMO.js → InventoryBindingForm-D14aWQqg.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-CFWTE_sj.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-DtHtGqKw.js} +14 -14
- package/dist/{InventoryBindingSummary-DKYKoLOt.js → InventoryBindingSummary-B7Q-G4Fx.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-D1hfyifk.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CqB7pkKN.js} +1 -1
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-BfsTUKPQ.js → PremiumBadge.vue_vue_type_script_setup_true_lang-BfHSMN6k.js} +2 -2
- package/dist/{PublishView-CMTQJ7Nv.js → PublishView-C_icogKG.js} +3 -3
- package/dist/{PurchaseOrderPrintPreview-CzYlYowQ.js → PurchaseOrderPrintPreview-BeXqhfRn.js} +9 -9
- package/dist/ReceiveRequestView-COdOrOyg.js +2894 -0
- package/dist/{RecipeView-CIwSZuEd.js → RecipeView-Desvtm1a.js} +8 -8
- package/dist/{StockView-DBY2sHlj.js → StockView-B1NDBHQh.js} +344 -341
- package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-VY2KygFc.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-CbCD3pOQ.js} +1 -1
- package/dist/{SupplierView-CGsqiXR4.js → SupplierView-CB6Gz5HH.js} +11 -11
- package/dist/{SystemTrailDialog.vue_vue_type_script_setup_true_lang-BUs4-nO6.js → SystemTrailDialog.vue_vue_type_script_setup_true_lang-3bruORgT.js} +2 -2
- package/dist/{TemplatePublishDialog.vue_vue_type_script_setup_true_lang-plLh-5S3.js → TemplatePublishDialog.vue_vue_type_script_setup_true_lang-C0Vd0X-5.js} +1 -1
- package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-C8DluFT4.js → TransferDetails.vue_vue_type_script_setup_true_lang-Bnt6-X4t.js} +306 -306
- package/dist/{TransferTemplateView-BEXsC7mp.js → TransferTemplateView-CLeLzBvW.js} +354 -354
- package/dist/{UnitView-BGRkT8Hr.js → UnitView-YM302P8g.js} +6 -6
- package/dist/{WarehouseView-D7og7WBg.js → WarehouseView-D69BsVsb.js} +5 -5
- package/dist/WastageTemplateView-DfP43M8-.js +2327 -0
- package/dist/api/stock.d.ts +2 -0
- package/dist/{app-CioeggUO.js → app-BuvV4n4w.js} +2344 -2296
- package/dist/app.js +7 -7
- package/dist/{closing-template-DrBlhTbC.js → closing-template-D1NlAV-G.js} +1 -1
- package/dist/{date2-mucf0HV-.js → date2-CkkGwYSP.js} +1 -1
- package/dist/{dayjs.min-C5lVIjQ1.js → dayjs.min-DFvOuCCo.js} +21 -21
- package/dist/{decimal-EYAs7CPT.js → decimal-D1O4-kbG.js} +2 -2
- package/dist/{defineDeepModel-BQ_3cF8o.js → defineDeepModel-s0no34Rq.js} +1 -1
- package/dist/{duplicate-template-K_oezMr4.js → duplicate-template-DJceVj9n.js} +1 -1
- package/dist/feature-AINxwcz_.js +25697 -0
- package/dist/{format-time-from-id-qnJY4xQY.js → format-time-from-id-CRiwabgV.js} +1 -1
- package/dist/{format-unit-display-6I_PHQ9C.js → format-unit-display-kd8gPWFg.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-CtI9oUN_.js} +5 -5
- package/dist/{index-5yza2WJR.js → index-Af5Cs7r5.js} +1 -1
- package/dist/{index-DXJ9MIiE.js → index-BVBQnKv6.js} +9 -9
- package/dist/{index-DqMYKP87.js → index-DKTL7IN3.js} +3 -3
- package/dist/{lodash-D6iOSfR7.js → lodash-TAQPcjEK.js} +1 -1
- package/dist/{netsuite-DKE_ORM0.js → netsuite-CcC4Y1c-.js} +70 -70
- package/dist/{purchase-order-template-Brpbfw8K.js → purchase-order-template-B-Xuh5oQ.js} +1 -1
- package/dist/{rules-fd3m4inF.js → rules-DwOMpBOV.js} +3 -3
- package/dist/{stock-CLX4SKxt.js → stock-DolMZJgQ.js} +3 -3
- package/dist/{stock-8-vRigjE.js → stock-X1ADgvOm.js} +35 -27
- package/dist/{supplier-Dlv1Clk5.js → supplier-DTzECjWy.js} +2 -2
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{use-ingredient-select-dialog-2j3Nbou_.js → use-ingredient-select-dialog-D7UCiLcS.js} +2 -2
- package/dist/{use-inventory-binding-dialog-_S2XGoVU.js → use-inventory-binding-dialog-uYYsTsLi.js} +2 -2
- package/dist/{use-template-enabled-locations-2-CWlQQnyD.js → use-template-enabled-locations-2-l2e5ocrp.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-anAmA_v_.js} +376 -376
- package/dist/{xlsx-oL4emcgf.js → xlsx-CtBehOaB.js} +398 -398
- package/dist/{xlsx.util-JOeDOZ3P.js → xlsx.util-jpTCFIaP.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-BuvV4n4w.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-BuvV4n4w.js";
|
|
2
|
+
import { u as S } from "./feature-AINxwcz_.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";
|