@feedmepos/mf-inventory-portal 1.4.1-dev.1 → 1.4.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-ChJEzu4r.js → App-D8p5pMar.js} +5 -5
- package/dist/{ApprovalView-DE7cizNA.js → ApprovalView-B6WmrP3R.js} +7 -7
- package/dist/{BindingsDialog-BsMtvOJG.js → BindingsDialog-DAG2toHR.js} +2 -2
- package/dist/{BindingsPicker-Cqm2FCk4.js → BindingsPicker-CPbNuwFq.js} +2 -2
- package/dist/{BindingsTable-DnmlqSXV.js → BindingsTable-Hkkel0vq.js} +3 -3
- package/dist/{ClosingDraftView-DCo7R5X_.js → ClosingDraftView-JCtS2MZa.js} +15 -15
- package/dist/{ClosingHistoryView-B8pvoz_L.js → ClosingHistoryView-D7GacAqj.js} +5 -5
- package/dist/{ClosingTemplateView-BhWMZskM.js → ClosingTemplateView-DqpbjHK2.js} +14 -14
- package/dist/{DefaultView-7L4zg3pD.js → DefaultView-BSm6fE5w.js} +2 -2
- package/dist/{DeliveryOrderPrintPreview-BJUAI20p.js → DeliveryOrderPrintPreview-DFj56iJk.js} +2 -2
- package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-CZz44xPT.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-CaVUl6v3.js} +2 -2
- package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-D2xaJ_fT.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-FunJ5ZX5.js} +2 -2
- package/dist/{FmMultiselectDialog-CSlbhVxn.js → FmMultiselectDialog-BE2Tqm4H.js} +1 -1
- package/dist/{FmMultiselectDialog-CPt0eMqz.js → FmMultiselectDialog-DpekFj8a.js} +2 -2
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-DeFbqEt_.js → FmUnitInput.vue_vue_type_script_setup_true_lang-Bt_kCIFn.js} +4 -4
- package/dist/{ImportView-DDq7-EqO.js → ImportView-CAcUO9Pv.js} +6 -6
- package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-TLC_uZ1L.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-0Abq7FDN.js} +1 -1
- package/dist/{IngredientGroupView-BOPm59h1.js → IngredientGroupView-CeUfykez.js} +5 -5
- package/dist/{IngredientsView-Drxqdl5C.js → IngredientsView-Cdhgw3Tw.js} +15 -15
- package/dist/{IntegrationExplorerView-ClolIlZJ.js → IntegrationExplorerView-BioiObpU.js} +5 -5
- package/dist/{IntegrationView-BhsxOMny.js → IntegrationView-BHjOvMpX.js} +13 -13
- package/dist/{InventoryBindingForm-DSmmb2Re.js → InventoryBindingForm-D892WEqV.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-Bs1WRSC4.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-BMfmKcz8.js} +5 -5
- package/dist/{InventoryBindingSummary-DwmmGqLA.js → InventoryBindingSummary-DOGWF0fo.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-cBTXwRyT.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-B-dhMJ0F.js} +1 -1
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-WgbXX2to.js → PremiumBadge.vue_vue_type_script_setup_true_lang-CKuIWTXZ.js} +1 -1
- package/dist/{PublishView-CjIwzQ1D.js → PublishView-Dh6OiaG1.js} +3 -3
- package/dist/{PurchaseOrderPrintPreview-D14UaMbm.js → PurchaseOrderPrintPreview-Cpme08gm.js} +2 -2
- package/dist/{ReceiveRequestView-C5s6H1ly.js → ReceiveRequestView-Dldwu3-H.js} +25 -25
- package/dist/{RecipeView-BWlgNjqM.js → RecipeView-gkZuFdCP.js} +17 -17
- package/dist/{SettingsView-BiaJS0Qs.js → SettingsView-wOy_OATI.js} +4 -4
- package/dist/{StockView-DzdW3saV.js → StockView-DeLcyQrC.js} +19 -19
- package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-CziwNGpm.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-C2Jax3tb.js} +1 -1
- package/dist/{SupplierView-CEH1mh4O.js → SupplierView-Bf2AW8JH.js} +12 -12
- package/dist/{SurchargeView-DLL1vb1m.js → SurchargeView-CJtg87ol.js} +6 -6
- package/dist/{SystemTrailDialog.vue_vue_type_script_setup_true_lang-CyzJFEM1.js → SystemTrailDialog.vue_vue_type_script_setup_true_lang-Bfzqxalj.js} +2 -2
- package/dist/{TemplatePublishDialog.vue_vue_type_script_setup_true_lang-riu5GB0x.js → TemplatePublishDialog.vue_vue_type_script_setup_true_lang-CEz3Yc2Z.js} +1 -1
- package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-CdPx9jtv.js → TransferDetails.vue_vue_type_script_setup_true_lang-CcpH12aM.js} +20 -20
- package/dist/{TransferTemplateView-B1hOOEld.js → TransferTemplateView-DpWFExzQ.js} +18 -18
- package/dist/{UnitCostHistoryView-CfVLgSsg.js → UnitCostHistoryView-PEexDaAO.js} +4 -4
- package/dist/{UnitDisplayControl.vue_vue_type_script_setup_true_lang-D_5MeWML.js → UnitDisplayControl.vue_vue_type_script_setup_true_lang-i8HZEphD.js} +4 -4
- package/dist/{UnitView-CNEW1ZyC.js → UnitView-BPyyMHKE.js} +7 -7
- package/dist/{WarehouseView-BAEddBqH.js → WarehouseView-BmCech19.js} +5 -5
- package/dist/{WastageTemplateView-BDDcGlH1.js → WastageTemplateView-DJOBAWKd.js} +14 -14
- package/dist/api/food-market-hub.d.ts +1 -1
- package/dist/api/inventory.d.ts +92 -92
- package/dist/api/netsuite.d.ts +67 -67
- package/dist/api/surcharge.d.ts +2 -2
- package/dist/{app-8jckOqPv.js → app-D4P-koOR.js} +31824 -31795
- package/dist/app.d.ts +24 -24
- package/dist/app.js +1 -1
- package/dist/{closing-template-DI_wHTs-.js → closing-template-CCvXzoLm.js} +1 -1
- package/dist/components/inventory-binding/InventoryBinding.vue.d.ts +20 -20
- package/dist/components/shell/inventory/binding-dialog.vue.d.ts +6 -6
- package/dist/components/shell/inventory/binding-ui.vue.d.ts +11 -11
- package/dist/{date2-R--GWp3h.js → date2-XHYHbI0K.js} +1 -1
- package/dist/{dayjs.min-BLMwzZoP.js → dayjs.min-pkE_kmHZ.js} +1 -1
- package/dist/{decimal-C1gVMYNr.js → decimal-CQ7SlCe0.js} +2 -2
- package/dist/{defineDeepModel-v4CSJ0KR.js → defineDeepModel-CZDkmNol.js} +1 -1
- package/dist/{duplicate-template-B2FyWucr.js → duplicate-template-BQ0bF_MO.js} +1 -1
- package/dist/export-CDIp6ydU.js +26 -0
- package/dist/{feature-D5wDntDA.js → feature-C4zPjstX.js} +2 -2
- package/dist/{format-time-from-id-iIaeuVUR.js → format-time-from-id-D_USijTz.js} +1 -1
- package/dist/{format-unit-display-DoXOol_B.js → format-unit-display-CF6-yU7v.js} +11 -11
- package/dist/helper/xlsx.util.d.ts +9 -0
- package/dist/{import-export.helper-CRZm_4kx.js → import-export.helper-iVXMr9yw.js} +6 -6
- package/dist/{index-DvydJuBP.js → index-BIG8c4oA.js} +3 -3
- package/dist/{index-Dctf0kPG.js → index-CTNLpvtM.js} +1 -1
- package/dist/{index-BlCcDs_t.js → index-EoaZ_eFV.js} +1 -1
- package/dist/{inventory-core-dart.default-BGNoRNOu.js → inventory-core-dart.default-D6cCA8tk.js} +1 -1
- package/dist/{lodash-BGLr9-Z4.js → lodash-DR7t9CsC.js} +1 -1
- package/dist/{lz-string-BXxSHhql.js → lz-string-DgqLqrsO.js} +1 -1
- package/dist/modules/print-template/api/print-template.d.ts +3 -3
- package/dist/modules/print-template/components/PrintTemplateEditorDialog.vue.d.ts +6 -6
- package/dist/modules/print-template/store/print-template.d.ts +36 -36
- package/dist/{netsuite-QrjgLCzF.js → netsuite-ByBZj6uf.js} +55 -44
- package/dist/{number-BW3CMNw8.js → number-f4J4YlZT.js} +3 -3
- package/dist/{predefined-templates-BAl0dgvF.js → predefined-templates-BlmLhRsh.js} +1 -1
- package/dist/{purchase-order-template-BXiI76-R.js → purchase-order-template-BS94QDpg.js} +1 -1
- package/dist/{recalculationUtils-DryzcsyX.js → recalculationUtils-D0wl-tgM.js} +1 -1
- package/dist/{rules-uhOTzvDT.js → rules-Cpi5Vduo.js} +2 -2
- package/dist/{stock-DIzLmqOG.js → stock-BynB5KIH.js} +1 -1
- package/dist/{stock-CFigyCpv.js → stock-GYUDrBUF.js} +3 -3
- package/dist/stores/integration/foodmarkethub.d.ts +1 -1
- package/dist/stores/integration/netsuite.d.ts +22 -22
- package/dist/stores/inventory.d.ts +91 -91
- package/dist/stores/location.d.ts +28 -28
- package/dist/stores/stock.d.ts +3 -3
- package/dist/stores/supplier.d.ts +120 -120
- package/dist/stores/surcharge.d.ts +1 -1
- package/dist/stores/warehouse.d.ts +5 -5
- package/dist/{supplier-DnHSGzUP.js → supplier-BDpzWHvm.js} +2 -2
- package/dist/{surcharge-NTU0Whsq.js → surcharge-ztZ3mUE2.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{use-ingredient-select-dialog-BTeCOYD1.js → use-ingredient-select-dialog-xx_W7OyU.js} +2 -2
- package/dist/{use-inventory-binding-dialog-C5dSHkMZ.js → use-inventory-binding-dialog-B_OV8CCL.js} +2 -2
- package/dist/{use-template-enabled-locations-Ba9BFrFN.js → use-template-enabled-locations-ByOi4t2R.js} +2 -2
- package/dist/{use-transfer-locations-D__VLxA7.js → use-transfer-locations-BOR-wq8s.js} +2 -2
- package/dist/{useHrmPermission-DMlbCSlp.js → useHrmPermission-BtXw89bp.js} +1 -1
- package/dist/{useNavigationMenu-jtnBmp0t.js → useNavigationMenu-Ds6IBfYX.js} +2 -2
- package/dist/{useSseClient-D8q23tYV.js → useSseClient-q5d7Qjrq.js} +1 -1
- package/dist/views/adjustment-template/wastage-template/actions.d.ts +60 -60
- package/dist/views/adjustment-template/wastage-template/form/WastageTemplateItemTable.vue.d.ts +4 -4
- package/dist/views/adjustment-template/wastage-template/form/useAdjustmentTemplateItems.d.ts +4 -4
- package/dist/views/adjustment-template/wastage-template/table.d.ts +66 -66
- package/dist/views/closing-draft/components/closing-draft-dialog/ClosingDraftDialog.vue.d.ts +156 -156
- package/dist/views/closing-draft/composables/use-closing-draft-import.d.ts +55 -55
- package/dist/views/closing-draft/composables/use-closing-draft-table.d.ts +234 -234
- package/dist/views/closing-template/components/closing-template-form/composables/use-closing-template-items.d.ts +8 -8
- package/dist/views/closing-template/composables/use-closing-template-actions.d.ts +132 -132
- package/dist/views/closing-template/composables/use-closing-template-table.d.ts +132 -132
- package/dist/views/ingredient-group/components/ingredient-group-rule-field/IngredientGroupRuleField.vue.d.ts +2 -2
- package/dist/views/ingredient-group/composables/use-ingredient-group-rule-item.d.ts +1 -1
- package/dist/views/ingredient-group/composables/use-ingredient-group-table.d.ts +9 -9
- package/dist/views/ingredients/components/convert/ConvertForm.vue.d.ts +6 -6
- package/dist/views/ingredients/components/ingredient-form/IngredientForm.vue.d.ts +32 -32
- package/dist/views/ingredients/components/inventory-binding/InventoryBindingForm.vue.d.ts +12 -12
- package/dist/views/ingredients/components/inventory-binding/v2/InventoryBindingFormV2.vue.d.ts +12 -12
- package/dist/views/ingredients/components/inventory-binding/v2/components/InventoryBindingAlternative.vue.d.ts +4 -4
- package/dist/views/ingredients/components/inventory-binding/v2/components/InventoryRecipeBindingV2Field.vue.d.ts +12 -12
- package/dist/views/ingredients/components/inventory-binding/v2/components/InventorySkuBindingV2Field.vue.d.ts +12 -12
- package/dist/views/ingredients/components/inventory-binding/v2/composables/use-inventory-binding-alternative-table.d.ts +1 -1
- package/dist/views/ingredients/composables/use-ingredient-table.d.ts +8 -8
- package/dist/views/integration/components/ApplyProduct.vue.d.ts +2 -2
- package/dist/views/integration/components/ApplyProductDialog.vue.d.ts +2 -2
- package/dist/views/integration/components/ApplyProductDialogV4.vue.d.ts +2 -2
- package/dist/views/integration/components/netsuite/InventoryTransfer.vue.d.ts +4 -4
- package/dist/views/integration/components/netsuite/InventoryTransferIngredientTable.vue.d.ts +32 -32
- package/dist/views/integration/components/netsuite/PurchaseOrder.vue.d.ts +4 -4
- package/dist/views/integration/components/netsuite/TransferOrder.vue.d.ts +4 -4
- package/dist/views/integration/components/netsuite/business/AddLocationDialog.vue.d.ts +12 -12
- package/dist/views/integration/components/netsuite/business/AddVendorDialog.vue.d.ts +60 -60
- package/dist/views/integration-explorer/netsuite/inventoryTransfer/InventoryTransferView.vue.d.ts +4 -4
- package/dist/views/integration-explorer/netsuite/orders/OrdersView.vue.d.ts +4 -4
- package/dist/views/receive-request/components/transfer-form/NetSuiteField.vue.d.ts +2 -2
- package/dist/views/receive-request/components/transfer-form/TransferFormWithController.vue.d.ts +152 -152
- package/dist/views/receive-request/components/transfer-form/components/ForecastStock.vue.d.ts +32 -32
- package/dist/views/receive-request/components/transfer-form/components/TransferItemTable.vue.d.ts +64 -64
- package/dist/views/receive-request/components/transfer-form/composables/use-transfer-items.d.ts +16 -16
- package/dist/views/receive-request/composables/use-process-purchase-order.d.ts +221 -221
- package/dist/views/receive-request/composables/use-receive-request-form.d.ts +1503 -1503
- package/dist/views/receive-request/composables/use-receive-request-table.d.ts +1758 -1758
- package/dist/views/recipe/components/recipe-form/RecipeForm.vue.d.ts +6 -6
- package/dist/views/recipe/composables/use-recipe-bulk-editor.d.ts +90 -90
- package/dist/views/stock/components/StockRecordCard.vue.d.ts +1 -1
- package/dist/views/stock/components/dialog/AdjustedItemForm.vue.d.ts +26 -26
- package/dist/views/stock/components/dialog/AmendAdjustmentForm.vue.d.ts +10 -10
- package/dist/views/supplier/components/SupplierForm.vue.d.ts +10 -10
- package/dist/views/supplier/components/SupplierSupplyItemField.vue.d.ts +2 -2
- package/dist/views/supplier/composables/use-supplier-table.d.ts +5 -5
- package/dist/views/transfer-template/components/transfer-template-dialog/TransferTemplateDialog.vue.d.ts +122 -122
- package/dist/views/transfer-template/components/transfer-template-form/components/NetSuiteCustomCodeSelection.vue.d.ts +18 -18
- package/dist/views/transfer-template/components/transfer-template-form/components/TransferTemplateItemTable.vue.d.ts +32 -32
- package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-locations.d.ts +16 -16
- package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-template-items.d.ts +16 -16
- package/dist/views/transfer-template/composables/use-netsuite-custom-field.d.ts +48 -48
- package/dist/views/transfer-template/composables/use-transfer-template-actions.d.ts +757 -757
- package/dist/views/transfer-template/composables/use-transfer-template-table.d.ts +755 -755
- package/dist/views/unit/components/unit-form/UnitForm.vue.d.ts +2 -2
- package/dist/views/unit/components/unit-summary/UnitSummary.vue.d.ts +2 -2
- package/dist/views/unit/composables/use-unit-table.d.ts +1 -1
- package/dist/views/unit-cost-history/composables/use-unit-cost-history.d.ts +3 -3
- package/dist/views/warehouse/components/WarehouseForm.vue.d.ts +10 -10
- package/dist/{vue-i18n-8-OMxHzQ.js → vue-i18n-C35dl24s.js} +302 -302
- package/dist/{xlsx-BFjtlsJV.js → xlsx-CzLrFB_A.js} +1 -1
- package/dist/xlsx.util-osyDkxYO.js +101 -0
- package/package.json +5 -5
- package/dist/export-rvaYes9_.js +0 -25
- package/dist/xlsx.util-0LMGvDYM.js +0 -78
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { V as e, a3 as Kt, a4 as
|
|
1
|
+
import { V as e, a3 as Kt, a4 as Gt, a5 as zt, a6 as Yt, a7 as Fe, a8 as Jt, a9 as ke, T as He, aa as Xe, ab as Ct, ac as O, ad as x, d as Te, N as R, w as M, ae as $e, C as ne, B as se, af as Ke, P as B, ag as Nt, ah as Wt, ai as Qt, aj as Zt, ak as et, al as Xt, m as en, i as tn, s as ft, a as nn, u as Me } from "./app-D4P-koOR.js";
|
|
2
2
|
import { useCoreStore as we } from "@feedmepos/mf-common";
|
|
3
3
|
import { useSnackbar as rn } from "@feedmepos/ui-library";
|
|
4
|
-
import { _ as P } from "./lodash-
|
|
5
|
-
import { defineComponent as sn, ref as
|
|
6
|
-
import { u as dn } from "./feature-
|
|
4
|
+
import { _ as P } from "./lodash-DR7t9CsC.js";
|
|
5
|
+
import { defineComponent as sn, ref as Ge, computed as Ie, resolveComponent as xe, openBlock as W, createBlock as on, withCtx as oe, createVNode as ae, createElementVNode as w, createElementBlock as ue, Fragment as Le, createCommentVNode as Ue, createTextVNode as Q, toDisplayString as V, renderList as an, unref as It, h as un } from "vue";
|
|
6
|
+
import { u as dn } from "./feature-C4zPjstX.js";
|
|
7
7
|
var cn = Object.defineProperty, g = (s, u) => cn(s, "name", { value: u, configurable: !0 }), Ce = "MYR";
|
|
8
8
|
e.enum([
|
|
9
9
|
"custbody_fm_do_id",
|
|
@@ -20,11 +20,11 @@ e.enum([
|
|
|
20
20
|
/// delivery order item id
|
|
21
21
|
"custcol_fm_line_id"
|
|
22
22
|
]);
|
|
23
|
-
var
|
|
23
|
+
var ze;
|
|
24
24
|
(function(s) {
|
|
25
25
|
s[s.Create = 0] = "Create", s[s.Set = 1] = "Set", s[s.Unset = 2] = "Unset", s[s.Change = 3] = "Change";
|
|
26
|
-
})(
|
|
27
|
-
e.nativeEnum(
|
|
26
|
+
})(ze || (ze = {}));
|
|
27
|
+
e.nativeEnum(ze);
|
|
28
28
|
e.enum([
|
|
29
29
|
"TrnfrOrd",
|
|
30
30
|
"PurchOrd"
|
|
@@ -35,7 +35,8 @@ e.enum([
|
|
|
35
35
|
]);
|
|
36
36
|
e.enum([
|
|
37
37
|
"THB",
|
|
38
|
-
"MYR"
|
|
38
|
+
"MYR",
|
|
39
|
+
"SGD"
|
|
39
40
|
]);
|
|
40
41
|
var tt = e.object({
|
|
41
42
|
hascostline: e.string(),
|
|
@@ -487,8 +488,8 @@ e.object({
|
|
|
487
488
|
})
|
|
488
489
|
});
|
|
489
490
|
var At = Kt.extend({
|
|
490
|
-
nsConfig:
|
|
491
|
-
}), Mt =
|
|
491
|
+
nsConfig: Gt
|
|
492
|
+
}), Mt = zt.omit({
|
|
492
493
|
measurements: !0
|
|
493
494
|
}).extend({
|
|
494
495
|
nsConfig: Yt,
|
|
@@ -1942,11 +1943,11 @@ var _t;
|
|
|
1942
1943
|
country: ((ut = n.doc.profile.address) == null ? void 0 : ut.country) || "",
|
|
1943
1944
|
postcode: ((dt = n.doc.profile.address) == null ? void 0 : dt.postcode) || ""
|
|
1944
1945
|
}
|
|
1945
|
-
}, E = (mt = (lt = (ct = I.options) == null ? void 0 : ct.netSuite) == null ? void 0 : lt.additionalInfo) == null ? void 0 : mt.reduce((j,
|
|
1946
|
-
const ge =
|
|
1946
|
+
}, E = (mt = (lt = (ct = I.options) == null ? void 0 : ct.netSuite) == null ? void 0 : lt.additionalInfo) == null ? void 0 : mt.reduce((j, z) => {
|
|
1947
|
+
const ge = z.compute(r, z.extraParams);
|
|
1947
1948
|
return {
|
|
1948
1949
|
...j,
|
|
1949
|
-
[
|
|
1950
|
+
[z.fieldId]: ge
|
|
1950
1951
|
};
|
|
1951
1952
|
}, {}), _ = {
|
|
1952
1953
|
id: i.id,
|
|
@@ -1959,17 +1960,17 @@ var _t;
|
|
|
1959
1960
|
...E
|
|
1960
1961
|
}
|
|
1961
1962
|
}, S = m.map((j) => {
|
|
1962
|
-
const
|
|
1963
|
-
return Je.FromNetSuite.transform(I,
|
|
1963
|
+
const z = l[j.id];
|
|
1964
|
+
return Je.FromNetSuite.transform(I, z, j);
|
|
1964
1965
|
}), b = f.map((j) => {
|
|
1965
|
-
const
|
|
1966
|
-
return je.FromNetSuite.transform(I,
|
|
1966
|
+
const z = a[j.id];
|
|
1967
|
+
return je.FromNetSuite.transform(I, z, j);
|
|
1967
1968
|
}), h = i.item.items.map((j) => {
|
|
1968
|
-
const
|
|
1969
|
+
const z = o[j.line].sku, ge = o[j.line].measurement;
|
|
1969
1970
|
return ie.FromNetSuite.toPurchaseOrderItem({
|
|
1970
1971
|
currency: i.currency.refName,
|
|
1971
1972
|
nsOrderItem: j,
|
|
1972
|
-
sku:
|
|
1973
|
+
sku: z,
|
|
1973
1974
|
glImpactCost: [],
|
|
1974
1975
|
measurement: ge,
|
|
1975
1976
|
context: I
|
|
@@ -1993,8 +1994,8 @@ var _t;
|
|
|
1993
1994
|
id: i.custbody_fm_po_request_id,
|
|
1994
1995
|
adjustmentIds: []
|
|
1995
1996
|
} : void 0
|
|
1996
|
-
}, { processedAt: me, rejectedAt: Pe } = Ft(i.createdDate, i.orderStatus.id, p ?? []), ve = S.reduce((j,
|
|
1997
|
-
const ge = new Date(
|
|
1997
|
+
}, { processedAt: me, rejectedAt: Pe } = Ft(i.createdDate, i.orderStatus.id, p ?? []), ve = S.reduce((j, z) => {
|
|
1998
|
+
const ge = new Date(z.createdAt);
|
|
1998
1999
|
return j ? ge.getTime() < j.getTime() ? ge : j : ge;
|
|
1999
2000
|
}, null);
|
|
2000
2001
|
return {
|
|
@@ -3708,7 +3709,7 @@ function q(s, u, d, c, r) {
|
|
|
3708
3709
|
return typeof c == "object" && (n = JSON.stringify(c), t = JSON.stringify(r)), `${s} ${u} field ${d} changed from "${n}" to "${t}"`;
|
|
3709
3710
|
}
|
|
3710
3711
|
g(q, "generateLogMessage");
|
|
3711
|
-
function
|
|
3712
|
+
function Gn(s, u, d, c = !1) {
|
|
3712
3713
|
var n, t;
|
|
3713
3714
|
const r = [];
|
|
3714
3715
|
if (u || r.push({
|
|
@@ -3794,8 +3795,8 @@ function zn(s, u, d, c = !1) {
|
|
|
3794
3795
|
}
|
|
3795
3796
|
return r;
|
|
3796
3797
|
}
|
|
3797
|
-
g(
|
|
3798
|
-
function
|
|
3798
|
+
g(Gn, "detectTransferOrderConflicts");
|
|
3799
|
+
function zn(s, u, d, c, r) {
|
|
3799
3800
|
if (s.length === 0)
|
|
3800
3801
|
throw new Error("No order lines found");
|
|
3801
3802
|
let n = c || (r == null ? void 0 : r.purchaseOrder), t = r;
|
|
@@ -3876,7 +3877,7 @@ function Gn(s, u, d, c, r) {
|
|
|
3876
3877
|
purchaseOrderRequest: t
|
|
3877
3878
|
};
|
|
3878
3879
|
}
|
|
3879
|
-
g(
|
|
3880
|
+
g(zn, "resolveTransferOrderConflicts");
|
|
3880
3881
|
e.object({
|
|
3881
3882
|
lineItem: He.nullish(),
|
|
3882
3883
|
existinglineItem: He.nullish(),
|
|
@@ -4387,10 +4388,10 @@ function ai(s, u, d) {
|
|
|
4387
4388
|
return r;
|
|
4388
4389
|
}
|
|
4389
4390
|
g(ai, "resolveInventoryChildItemConflicts");
|
|
4390
|
-
var
|
|
4391
|
+
var G;
|
|
4391
4392
|
(function(s) {
|
|
4392
4393
|
s.ASSEMBLY_ITEM_CREATED = "ASSEMBLY_ITEM_CREATED", s.ASSEMBLY_ITEM_UPDATED = "ASSEMBLY_ITEM_UPDATED", s.ASSEMBLY_ITEM_DELETED = "ASSEMBLY_ITEM_DELETED", s.ASSEMBLY_ITEM_SKU_UPDATED = "ASSEMBLY_ITEM_SKU_UPDATED";
|
|
4393
|
-
})(
|
|
4394
|
+
})(G || (G = {}));
|
|
4394
4395
|
var ui = Fe.pick({
|
|
4395
4396
|
code: !0,
|
|
4396
4397
|
name: !0,
|
|
@@ -4418,7 +4419,7 @@ function li(s) {
|
|
|
4418
4419
|
throw new Error("[detectAssemblyChildItemConflicts] only supports Assembly child items");
|
|
4419
4420
|
if (!c)
|
|
4420
4421
|
return u.push({
|
|
4421
|
-
type:
|
|
4422
|
+
type: G.ASSEMBLY_ITEM_CREATED,
|
|
4422
4423
|
message: `Assembly Child Item [${d.netSuiteId}] config doesn't exist`,
|
|
4423
4424
|
data: d
|
|
4424
4425
|
}), u;
|
|
@@ -4426,7 +4427,7 @@ function li(s) {
|
|
|
4426
4427
|
for (const n of r) {
|
|
4427
4428
|
const t = d[n] ?? null, i = c[n] ?? null;
|
|
4428
4429
|
P.isEqual(t, i) || u.push({
|
|
4429
|
-
type:
|
|
4430
|
+
type: G.ASSEMBLY_ITEM_UPDATED,
|
|
4430
4431
|
message: q("Assembly Child Item", d.netSuiteId, n, i, t),
|
|
4431
4432
|
data: {
|
|
4432
4433
|
field: n,
|
|
@@ -4444,7 +4445,7 @@ function mi(s) {
|
|
|
4444
4445
|
throw new Error("[detectAssemblyParentItemConflicts] only supports Assembly parent items");
|
|
4445
4446
|
if (!c)
|
|
4446
4447
|
return u.push({
|
|
4447
|
-
type:
|
|
4448
|
+
type: G.ASSEMBLY_ITEM_CREATED,
|
|
4448
4449
|
message: `Assembly Parent Item [${d.netSuiteId}] config doesn't exist`,
|
|
4449
4450
|
data: d
|
|
4450
4451
|
}), u;
|
|
@@ -4452,7 +4453,7 @@ function mi(s) {
|
|
|
4452
4453
|
for (const t of r) {
|
|
4453
4454
|
const i = d[t] ?? null, o = c[t] ?? null;
|
|
4454
4455
|
P.isEqual(i, o) || u.push({
|
|
4455
|
-
type:
|
|
4456
|
+
type: G.ASSEMBLY_ITEM_UPDATED,
|
|
4456
4457
|
message: q("Assembly Parent Item", d.netSuiteId, t, o, i),
|
|
4457
4458
|
data: {
|
|
4458
4459
|
field: t,
|
|
@@ -4465,7 +4466,7 @@ function mi(s) {
|
|
|
4465
4466
|
for (const t of n) {
|
|
4466
4467
|
const i = d.skuCache[t] ?? null, o = c.skuCache[t] ?? null;
|
|
4467
4468
|
P.isEqual(i, o) || u.push({
|
|
4468
|
-
type:
|
|
4469
|
+
type: G.ASSEMBLY_ITEM_SKU_UPDATED,
|
|
4469
4470
|
message: q("Assembly Parent Item", d.netSuiteId, t, o, i),
|
|
4470
4471
|
data: {
|
|
4471
4472
|
field: t,
|
|
@@ -4480,17 +4481,17 @@ g(mi, "detectAssemblyParentItemConflicts");
|
|
|
4480
4481
|
function fi(s, u, d) {
|
|
4481
4482
|
if (u.itemType !== R.Enum.Assembly)
|
|
4482
4483
|
throw new Error("[resolveAssemblyParentItemConflicts] only supports Assembly parent items");
|
|
4483
|
-
if (s.some((n) => n.type ===
|
|
4484
|
+
if (s.some((n) => n.type === G.ASSEMBLY_ITEM_CREATED))
|
|
4484
4485
|
return u;
|
|
4485
4486
|
let r = d;
|
|
4486
4487
|
for (const n of s)
|
|
4487
|
-
if (n.type ===
|
|
4488
|
+
if (n.type === G.ASSEMBLY_ITEM_UPDATED) {
|
|
4488
4489
|
const t = n.data.field;
|
|
4489
4490
|
r = {
|
|
4490
4491
|
...r,
|
|
4491
4492
|
[t]: n.data.incomingValue
|
|
4492
4493
|
};
|
|
4493
|
-
} else if (n.type ===
|
|
4494
|
+
} else if (n.type === G.ASSEMBLY_ITEM_SKU_UPDATED) {
|
|
4494
4495
|
const t = n.data.field;
|
|
4495
4496
|
r = {
|
|
4496
4497
|
...r,
|
|
@@ -4509,11 +4510,11 @@ g(fi, "resolveAssemblyParentItemConflicts");
|
|
|
4509
4510
|
function Ii(s, u, d) {
|
|
4510
4511
|
if (u.itemType !== R.Enum.Assembly)
|
|
4511
4512
|
throw new Error("[resolveAssemblyChildItemConflicts] only supports Assembly child items");
|
|
4512
|
-
if (s.some((n) => n.type ===
|
|
4513
|
+
if (s.some((n) => n.type === G.ASSEMBLY_ITEM_CREATED))
|
|
4513
4514
|
return u;
|
|
4514
4515
|
let r = d;
|
|
4515
4516
|
for (const n of s)
|
|
4516
|
-
if (n.type ===
|
|
4517
|
+
if (n.type === G.ASSEMBLY_ITEM_UPDATED) {
|
|
4517
4518
|
const t = n.data.field;
|
|
4518
4519
|
r = {
|
|
4519
4520
|
...r,
|
|
@@ -4900,11 +4901,11 @@ const de = en((s, u) => {
|
|
|
4900
4901
|
},
|
|
4901
4902
|
emits: ["update:modelValue"],
|
|
4902
4903
|
setup(s, { emit: u }) {
|
|
4903
|
-
const d = s, c = u, r =
|
|
4904
|
+
const d = s, c = u, r = Ge(!1), n = Ie(() => d.sku._id ? i.customFieldOptions[d.sku._id] ?? [] : []), t = Ge({
|
|
4904
4905
|
code: "",
|
|
4905
4906
|
name: "",
|
|
4906
4907
|
childName: ""
|
|
4907
|
-
}), i =
|
|
4908
|
+
}), i = zi(), o = we(), m = Ie(() => {
|
|
4908
4909
|
var a;
|
|
4909
4910
|
const f = `business_${((a = o.currentBusiness.value) == null ? void 0 : a._id) ?? ""}`;
|
|
4910
4911
|
return Be[f].code;
|
|
@@ -5075,9 +5076,19 @@ const de = en((s, u) => {
|
|
|
5075
5076
|
business_6776a1fe205a52001c516efa: {
|
|
5076
5077
|
code: "externalId",
|
|
5077
5078
|
name: "name"
|
|
5079
|
+
},
|
|
5080
|
+
// SG - Zus (Dev)
|
|
5081
|
+
business_69d4bdb1f3a537001c875f08: {
|
|
5082
|
+
code: "externalId",
|
|
5083
|
+
name: "name"
|
|
5084
|
+
},
|
|
5085
|
+
// SG - Zus (Prod)
|
|
5086
|
+
business_69c26a6ce0c953001bceb402: {
|
|
5087
|
+
code: "externalId",
|
|
5088
|
+
name: "name"
|
|
5078
5089
|
}
|
|
5079
5090
|
};
|
|
5080
|
-
function
|
|
5091
|
+
function Gi() {
|
|
5081
5092
|
return {
|
|
5082
5093
|
setting: {
|
|
5083
5094
|
_id: "",
|
|
@@ -5098,8 +5109,8 @@ function zi() {
|
|
|
5098
5109
|
itemReplicas: []
|
|
5099
5110
|
};
|
|
5100
5111
|
}
|
|
5101
|
-
const T =
|
|
5102
|
-
function
|
|
5112
|
+
const T = Ge(Gi());
|
|
5113
|
+
function zi() {
|
|
5103
5114
|
const s = nn(), u = Ie(() => T.value.setting.items.groupBy("netSuiteId", (i) => i.id)), d = Ie(() => T.value.setting.units.flatMap((i) => i.measurements).groupBy("netSuiteId", (i) => i.id)), c = Ie(() => T.value.setting.items.groupBy((i) => i.id)), r = Ie(
|
|
5104
5115
|
() => T.value.setting.units.groupBy(
|
|
5105
5116
|
(i) => i.netSuiteId,
|
|
@@ -5588,8 +5599,8 @@ const Ji = {
|
|
|
5588
5599
|
}
|
|
5589
5600
|
};
|
|
5590
5601
|
export {
|
|
5591
|
-
|
|
5602
|
+
ze as S,
|
|
5592
5603
|
Ki as _,
|
|
5593
5604
|
de as a,
|
|
5594
|
-
|
|
5605
|
+
zi as u
|
|
5595
5606
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { w as o } from "./app-
|
|
2
|
-
import { F as l } from "./decimal-
|
|
3
|
-
import "./dayjs.min-
|
|
1
|
+
import { w as o } from "./app-D4P-koOR.js";
|
|
2
|
+
import { F as l } from "./decimal-CQ7SlCe0.js";
|
|
3
|
+
import "./dayjs.min-pkE_kmHZ.js";
|
|
4
4
|
function g(n, t) {
|
|
5
5
|
return o.convertPrecision({
|
|
6
6
|
value: n,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { m as qn, i as Wn, y as zn } from "./app-
|
|
1
|
+
import { m as qn, i as Wn, y as zn } from "./app-D4P-koOR.js";
|
|
2
2
|
import { defineStore as Vn } from "pinia";
|
|
3
3
|
import { ref as mt, computed as Kn } from "vue";
|
|
4
4
|
import { useCoreStore as Yn } from "@feedmepos/mf-common";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as u, g as d, c as f, b as m } from "./number-
|
|
2
|
-
import { b, c as p } from "./date2-
|
|
1
|
+
import { a as u, g as d, c as f, b as m } from "./number-f4J4YlZT.js";
|
|
2
|
+
import { b, c as p } from "./date2-XHYHbI0K.js";
|
|
3
3
|
function M() {
|
|
4
4
|
return function(e) {
|
|
5
5
|
return !!e || "Required";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { u as i } from "./stock-
|
|
2
|
-
import { a as s, O as p } from "./app-
|
|
1
|
+
import { u as i } from "./stock-BynB5KIH.js";
|
|
2
|
+
import { a as s, O as p } from "./app-D4P-koOR.js";
|
|
3
3
|
import { ref as k, computed as B } from "vue";
|
|
4
|
-
import { c as d } from "./number-
|
|
4
|
+
import { c as d } from "./number-f4J4YlZT.js";
|
|
5
5
|
function m() {
|
|
6
6
|
return {
|
|
7
7
|
stockBalance: {
|
|
@@ -82,9 +82,9 @@ export declare function useNetSuiteStore(): {
|
|
|
82
82
|
deploymentId: string;
|
|
83
83
|
}[] | null | undefined;
|
|
84
84
|
locations: {
|
|
85
|
-
id: string;
|
|
86
|
-
name: string;
|
|
87
85
|
type: "restaurant" | "warehouse";
|
|
86
|
+
name: string;
|
|
87
|
+
id: string;
|
|
88
88
|
netSuiteId: string;
|
|
89
89
|
subsidiaryId: string;
|
|
90
90
|
}[];
|
|
@@ -117,16 +117,16 @@ export declare function useNetSuiteStore(): {
|
|
|
117
117
|
}[];
|
|
118
118
|
subsidiaries: {
|
|
119
119
|
parentId?: string | undefined;
|
|
120
|
-
id: string;
|
|
121
120
|
name: string;
|
|
121
|
+
id: string;
|
|
122
122
|
country: string;
|
|
123
123
|
currency: string;
|
|
124
124
|
}[];
|
|
125
125
|
vendors: {
|
|
126
126
|
externalId?: string | null | undefined;
|
|
127
127
|
custentity_financeapproval?: boolean | null | undefined;
|
|
128
|
-
id: string;
|
|
129
128
|
name: string;
|
|
129
|
+
id: string;
|
|
130
130
|
netSuiteId: string;
|
|
131
131
|
subsidiaryId: string;
|
|
132
132
|
}[];
|
|
@@ -138,8 +138,8 @@ export declare function useNetSuiteStore(): {
|
|
|
138
138
|
flattenedSubsidiaryNames: string[];
|
|
139
139
|
subsidiaryTree: ({
|
|
140
140
|
parentId?: string | undefined;
|
|
141
|
-
id: string;
|
|
142
141
|
name: string;
|
|
142
|
+
id: string;
|
|
143
143
|
country: string;
|
|
144
144
|
currency: string;
|
|
145
145
|
} & {
|
|
@@ -153,10 +153,10 @@ export declare function useNetSuiteStore(): {
|
|
|
153
153
|
isReady: boolean;
|
|
154
154
|
skuOptions: Record<string, NetSuiteSettingOption>;
|
|
155
155
|
itemReplicas: {
|
|
156
|
-
deletedAt?: string | null | undefined;
|
|
157
156
|
name?: string | null | undefined;
|
|
158
157
|
externalId?: string | null | undefined;
|
|
159
158
|
syncedAt?: string | null | undefined;
|
|
159
|
+
deletedAt?: string | null | undefined;
|
|
160
160
|
itemSubType?: string | null | undefined;
|
|
161
161
|
parentNetSuiteId?: string | null | undefined;
|
|
162
162
|
cogsAccount?: {
|
|
@@ -171,8 +171,8 @@ export declare function useNetSuiteStore(): {
|
|
|
171
171
|
measurement?: string | null | undefined;
|
|
172
172
|
inventoryBindings?: {
|
|
173
173
|
measurement?: {
|
|
174
|
-
id: string;
|
|
175
174
|
name: string;
|
|
175
|
+
id: string;
|
|
176
176
|
abbrev: string;
|
|
177
177
|
conversion: {
|
|
178
178
|
amount: number;
|
|
@@ -181,24 +181,24 @@ export declare function useNetSuiteStore(): {
|
|
|
181
181
|
} | null | undefined;
|
|
182
182
|
rules?: Record<string, any> | null | undefined;
|
|
183
183
|
alternatives?: {
|
|
184
|
-
priority?: number | null | undefined;
|
|
185
184
|
default?: boolean | null | undefined;
|
|
186
185
|
trackingMeasurement?: string | null | undefined;
|
|
186
|
+
priority?: number | null | undefined;
|
|
187
187
|
_id: string;
|
|
188
188
|
}[] | null | undefined;
|
|
189
|
-
id: string;
|
|
190
189
|
type: "RECIPE" | "SKU" | "SKU_GROUP";
|
|
191
190
|
amount: {
|
|
192
191
|
amount: number;
|
|
193
192
|
precision: number;
|
|
194
193
|
};
|
|
194
|
+
id: string;
|
|
195
195
|
}[] | null | undefined;
|
|
196
196
|
} | null | undefined;
|
|
197
197
|
valuation?: "FIFO" | "LIFO" | "FEFO" | "WAVG" | null | undefined;
|
|
198
198
|
defaultCost?: {
|
|
199
199
|
measurement?: {
|
|
200
|
-
id: string;
|
|
201
200
|
name: string;
|
|
201
|
+
id: string;
|
|
202
202
|
abbrev: string;
|
|
203
203
|
conversion: {
|
|
204
204
|
amount: number;
|
|
@@ -217,17 +217,14 @@ export declare function useNetSuiteStore(): {
|
|
|
217
217
|
mid: number;
|
|
218
218
|
} | null | undefined;
|
|
219
219
|
customAttributes?: Record<string, any> | null | undefined;
|
|
220
|
-
_id: string;
|
|
221
|
-
name: string;
|
|
222
|
-
code: string;
|
|
223
220
|
unit: {
|
|
224
221
|
_id: string;
|
|
225
222
|
name: string;
|
|
226
223
|
abbrev: string;
|
|
227
224
|
precision: number;
|
|
228
225
|
measurements: {
|
|
229
|
-
id: string;
|
|
230
226
|
name: string;
|
|
227
|
+
id: string;
|
|
231
228
|
abbrev: string;
|
|
232
229
|
conversion: {
|
|
233
230
|
amount: number;
|
|
@@ -235,6 +232,9 @@ export declare function useNetSuiteStore(): {
|
|
|
235
232
|
};
|
|
236
233
|
}[];
|
|
237
234
|
};
|
|
235
|
+
code: string;
|
|
236
|
+
_id: string;
|
|
237
|
+
name: string;
|
|
238
238
|
} | null | undefined;
|
|
239
239
|
businessId: string;
|
|
240
240
|
netSuiteId: string;
|
|
@@ -288,8 +288,8 @@ export declare function useNetSuiteStore(): {
|
|
|
288
288
|
abbrev: string;
|
|
289
289
|
precision: number;
|
|
290
290
|
measurements: {
|
|
291
|
-
id: string;
|
|
292
291
|
name: string;
|
|
292
|
+
id: string;
|
|
293
293
|
abbrev: string;
|
|
294
294
|
conversion: {
|
|
295
295
|
amount: number;
|
|
@@ -302,8 +302,8 @@ export declare function useNetSuiteStore(): {
|
|
|
302
302
|
abbrev: string;
|
|
303
303
|
precision: number;
|
|
304
304
|
measurements: {
|
|
305
|
-
id: string;
|
|
306
305
|
name: string;
|
|
306
|
+
id: string;
|
|
307
307
|
abbrev: string;
|
|
308
308
|
conversion: {
|
|
309
309
|
amount: number;
|
|
@@ -312,16 +312,16 @@ export declare function useNetSuiteStore(): {
|
|
|
312
312
|
}[];
|
|
313
313
|
}[]]>;
|
|
314
314
|
readonly measurementByNetsuiteId: Map<unknown, [{
|
|
315
|
-
id: string;
|
|
316
315
|
name: string;
|
|
316
|
+
id: string;
|
|
317
317
|
abbrev: string;
|
|
318
318
|
conversion: {
|
|
319
319
|
amount: number;
|
|
320
320
|
precision: number;
|
|
321
321
|
};
|
|
322
322
|
} | undefined, ...({
|
|
323
|
-
id: string;
|
|
324
323
|
name: string;
|
|
324
|
+
id: string;
|
|
325
325
|
abbrev: string;
|
|
326
326
|
conversion: {
|
|
327
327
|
amount: number;
|
|
@@ -329,16 +329,16 @@ export declare function useNetSuiteStore(): {
|
|
|
329
329
|
};
|
|
330
330
|
} | undefined)[]]>;
|
|
331
331
|
readonly configuredLocations: {
|
|
332
|
-
id: string;
|
|
333
|
-
name: string;
|
|
334
332
|
type: "restaurant" | "warehouse";
|
|
333
|
+
name: string;
|
|
334
|
+
id: string;
|
|
335
335
|
netSuiteId: string;
|
|
336
336
|
subsidiaryId: string;
|
|
337
337
|
}[];
|
|
338
338
|
readonly currentLocationSetting: {
|
|
339
|
-
id: string;
|
|
340
|
-
name: string;
|
|
341
339
|
type: "restaurant" | "warehouse";
|
|
340
|
+
name: string;
|
|
341
|
+
id: string;
|
|
342
342
|
netSuiteId: string;
|
|
343
343
|
subsidiaryId: string;
|
|
344
344
|
} | undefined;
|