@feedmepos/mf-inventory-portal 0.0.23-dev.4 → 0.0.23-dev.41
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-DReDvY0M.js → App-DW2K97Bb.js} +84 -72
- package/dist/{ApprovalView-BMZlYmRk.js → ApprovalView-BgSxdrwt.js} +25 -28
- package/dist/{BindingsDialog-Y2K4I7H7.js → BindingsDialog-CQtusdvp.js} +6 -6
- package/dist/{BindingsPicker-DKBq9c37.js → BindingsPicker-BnEjRAah.js} +8 -9
- package/dist/{BindingsTable-45v4SDfp.js → BindingsTable-DpTPAef_.js} +18 -22
- package/dist/ClosingDraftView-CXKYLCZS.js +1190 -0
- package/dist/{ClosingTemplateView-CKJVYSbj.js → ClosingTemplateView-CMTJHywt.js} +271 -285
- package/dist/FmCustomAttribute.vue_vue_type_script_setup_true_lang-zOmcCdDR.js +142 -0
- package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-CMEOp-0r.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-mAPA5_sB.js} +18 -19
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-C1DjyjyH.js → FmUnitInput.vue_vue_type_script_setup_true_lang-BjNpfucZ.js} +25 -26
- package/dist/{IngredientGroupView-BuP-HGeg.js → IngredientGroupView-CrEfiZvn.js} +63 -69
- package/dist/IngredientsView-BB8LQlU9.js +1707 -0
- package/dist/{IntegrationView-kYCaKG0o.js → IntegrationView-D2wTkDyX.js} +89 -92
- package/dist/{InventoryBindingForm-BXHq4h-n.js → InventoryBindingForm-DW7rJDc1.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-CVxJ_bV3.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-Ci8UI1eQ.js} +112 -104
- package/dist/{InventoryBindingSummary-Bjasfc_v.js → InventoryBindingSummary-B40KofiI.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DM0C4raP.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DD7VT9MS.js} +1 -1
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-C3O3JebE.js → PremiumBadge.vue_vue_type_script_setup_true_lang-BGuXTfn6.js} +19 -20
- package/dist/{PurchaseOrderPrintPreview-CmjkfTTS.js → PurchaseOrderPrintPreview-DQmx28Be.js} +17 -18
- package/dist/ReceiveRequestView-CJknzKfd.js +4205 -0
- package/dist/RecipeView-D5oWQ9Yd.js +609 -0
- package/dist/StockView-U59PHCy2.js +1818 -0
- package/dist/{SupplierView-DAx7E7sR.js → SupplierView-CLjjpTNZ.js} +2325 -787
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-DLDDXnyG.js +1327 -0
- package/dist/TransferTemplateView-CFoVrPIX.js +1264 -0
- package/dist/{UnitView-CQPGZ8-r.js → UnitView-CAopphN_.js} +228 -227
- package/dist/{WarehouseView-jy-RNCgy.js → WarehouseView-DUZku5U6.js} +100 -106
- package/dist/api/adjustment-template.d.ts +25 -0
- package/dist/api/bill.d.ts +240 -84
- package/dist/api/closing-draft.d.ts +6 -0
- package/dist/api/closing.d.ts +1 -0
- package/dist/api/inventory.d.ts +15 -6
- package/dist/api/netsuite.d.ts +3 -3
- package/dist/app-0klJzLit.js +84527 -0
- package/dist/app.d.ts +64 -0
- package/dist/app.js +2 -2
- package/dist/components/FmCustomAttribute.vue.d.ts +23 -0
- package/dist/components/FmLockableField.vue.d.ts +37 -0
- package/dist/components/FmMultiselectDialogProps.d.ts +1 -0
- package/dist/components/inventory-binding/InventoryBinding.vue.d.ts +3 -1
- package/dist/components/row-action.enum.d.ts +1 -0
- package/dist/components/shell/inventory/binding-ui.vue.d.ts +3 -1
- package/dist/composable/defineDeepModel.d.ts +1 -1
- package/dist/{decimal-BAc9M88Q.js → decimal-Cu4rlnvU.js} +1 -1
- package/dist/feature-C1wCaXKQ.js +946 -0
- package/dist/format-unit-display-CMa5UhY1.js +1215 -0
- package/dist/{StockView-D9no-mrA.js → index-BJaMpEVJ.js} +2242 -3986
- package/dist/index-HTBqkVVr.js +29202 -0
- package/dist/router/name.d.ts +2 -0
- package/dist/stock-CB4yNRMO.js +125 -0
- package/dist/stores/feature.d.ts +6 -0
- package/dist/stores/integration/netsuite.d.ts +70 -2
- package/dist/stores/inventory.d.ts +21 -12
- package/dist/stores/supplier.d.ts +1 -1
- package/dist/style.css +1 -1
- package/dist/{supplier-DJC0UZWv.js → supplier-biIIXGyr.js} +15 -15
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{use-inventory-binding-dialog-PEQbFRvO.js → use-inventory-binding-dialog-BopoOOxB.js} +10 -11
- package/dist/views/adjustment-template/import/AdjustmentTemplateImport.vue.d.ts +2 -0
- package/dist/views/adjustment-template/import/AdjustmentTemplateImportItem.vue.d.ts +18 -0
- package/dist/views/adjustment-template/import/export.d.ts +60 -0
- package/dist/views/adjustment-template/wastage-template/WastageTemplateDetails.vue.d.ts +2 -0
- package/dist/views/adjustment-template/wastage-template/WastageTemplateDialog.vue.d.ts +22 -0
- package/dist/views/adjustment-template/wastage-template/WastageTemplatePublish.vue.d.ts +6 -0
- package/dist/views/adjustment-template/wastage-template/WastageTemplateReason.vue.d.ts +18 -0
- package/dist/views/adjustment-template/wastage-template/WastageTemplateView.vue.d.ts +2 -0
- package/dist/views/adjustment-template/wastage-template/actions.d.ts +1329 -0
- package/dist/views/adjustment-template/wastage-template/form/WastageTemplateForm.vue.d.ts +16 -0
- package/dist/views/adjustment-template/wastage-template/form/WastageTemplateItemTable.vue.d.ts +35 -0
- package/dist/views/adjustment-template/wastage-template/form/useAdjustmentTemplateItems.d.ts +20 -0
- package/dist/views/adjustment-template/wastage-template/props.d.ts +36 -0
- package/dist/views/adjustment-template/wastage-template/table.d.ts +1303 -0
- package/dist/views/closing-draft/ClosingDraftView.vue.d.ts +2 -0
- package/dist/views/closing-draft/components/closing-draft-action/ClosingDraftAction.vue.d.ts +22 -0
- package/dist/views/closing-draft/components/closing-draft-dialog/ClosingDraftDialog.vue.d.ts +625 -0
- package/dist/views/closing-draft/composables/use-closing-draft-actions.d.ts +25 -0
- package/dist/views/closing-draft/composables/use-closing-draft-table.d.ts +3645 -0
- package/dist/views/closing-draft/helpers/draft-status-to-class-name.helper.d.ts +1 -0
- package/dist/views/closing-draft/helpers/export-draft.helper.d.ts +19 -0
- package/dist/views/closing-draft/helpers/get-calculated-total.helper.d.ts +4 -0
- package/dist/views/closing-template/components/closing-template-form/composables/use-closing-template-items.d.ts +2 -1
- package/dist/views/closing-template/composables/use-closing-template-actions.d.ts +48 -204
- package/dist/views/closing-template/composables/use-closing-template-table.d.ts +49 -205
- package/dist/views/ingredient-group/composables/use-ingredient-group-table.d.ts +6 -3
- package/dist/views/ingredients/components/convert/ConvertFormProps.d.ts +1 -0
- package/dist/views/ingredients/components/ingredient-form/IngredientForm.vue.d.ts +4 -2
- package/dist/views/ingredients/components/inventory-binding/InventoryBindingForm.vue.d.ts +1 -0
- package/dist/views/ingredients/composables/use-ingredient-table.d.ts +2 -1
- package/dist/views/receive-request/components/netsuite/NetSuiteInfo.vue.d.ts +12 -0
- package/dist/views/receive-request/components/netsuite/NetSuiteProps.d.ts +13 -0
- package/dist/views/receive-request/components/netsuite/NetSuiteSync.vue.d.ts +12 -0
- package/dist/views/receive-request/components/transfer-form/NetSuiteField.vue.d.ts +13 -0
- package/dist/views/receive-request/components/transfer-form/SparkIcon.vue.d.ts +1 -1
- package/dist/views/receive-request/components/transfer-form/TransferForm.vue.d.ts +70 -17
- package/dist/views/receive-request/components/transfer-form/components/ForecastStock.vue.d.ts +4 -2
- package/dist/views/receive-request/components/transfer-form/composables/use-transfer-items.d.ts +2 -1
- package/dist/views/receive-request/composables/use-receive-request-form.d.ts +102 -24
- package/dist/views/receive-request/composables/use-receive-request-table.d.ts +102 -24
- package/dist/views/recipe/components/recipe-form/RecipeForm.vue.d.ts +2 -0
- package/dist/views/stock/components/StockRecordCard.vue.d.ts +120 -42
- package/dist/views/stock/components/dialog/AdjustedItemForm.vue.d.ts +6 -4
- package/dist/views/stock/helper/compute-summary-total.d.ts +2 -2
- package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-template-items.d.ts +2 -1
- package/dist/views/transfer-template/composables/use-transfer-template-actions.d.ts +24 -12
- package/dist/views/transfer-template/composables/use-transfer-template-table.d.ts +24 -12
- package/dist/views/transfer-template/helpers/import-export.helper.d.ts +2 -1
- package/package.json +7 -6
- package/dist/FmDroppableField-8RzKjEdL.js +0 -154
- package/dist/FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-BhdcqRh-.js +0 -436
- package/dist/FmMultiselectDialog-D7YtdoyJ.js +0 -415
- package/dist/IngredientBindedItem.vue_vue_type_script_setup_true_lang-zjvFEF5C.js +0 -51
- package/dist/IngredientsView-DMRN-odY.js +0 -1613
- package/dist/ReceiveRequestView-aQZJO8sq.js +0 -4165
- package/dist/RecipeView-DXO43tFi.js +0 -597
- package/dist/TableActionableRow.vue_vue_type_script_setup_true_lang-DlNJ6kRg.js +0 -135
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-DCA0RUfu.js +0 -1209
- package/dist/TransferTemplateView-CfxdQF1t.js +0 -1261
- package/dist/_plugin-vue_export-helper-CHgC5LLL.js +0 -9
- package/dist/app-KnSMkJBV.js +0 -33496
- package/dist/date2-CIeUqUIc.js +0 -117
- package/dist/dayjs.min-Df5jSnDJ.js +0 -282
- package/dist/defineDeepModel-BfuQAIoM.js +0 -13
- package/dist/feature-dwB4OxRQ.js +0 -86
- package/dist/format-time-from-id-BbvzyIN6.js +0 -15
- package/dist/format-unit-display-BBWblJEt.js +0 -1216
- package/dist/fuzzy-B9ryZ9VZ.js +0 -41
- package/dist/index-BN0CY3sZ.js +0 -22277
- package/dist/index-Bj1fJum-.js +0 -45
- package/dist/index-C4yL_7rR.js +0 -10545
- package/dist/netsuite-ByWOS6tI.js +0 -194
- package/dist/normalizeArguments-DP7Hrren.js +0 -1552
- package/dist/row-action.enum-PMKMRrZR.js +0 -50
- package/dist/rules-C12nWDD1.js +0 -198
- package/dist/use-template-enabled-locations-2-k9g5t8tt.js +0 -86
- package/dist/xlsx-B4XHad7S.js +0 -24004
- package/dist/xlsx.util-BSO4SHJi.js +0 -78
package/dist/router/name.d.ts
CHANGED
|
@@ -5,6 +5,8 @@ export declare enum RouteName {
|
|
|
5
5
|
UNIT = "UNIT",
|
|
6
6
|
STOCK = "STOCK",
|
|
7
7
|
CLOSING_TEMPLATE = "CLOSING_TEMPLATE",
|
|
8
|
+
CLOSING_DRAFT = "CLOSING_DRAFT",
|
|
9
|
+
WASTAGE_TEMPLATE = "WASTAGE_TEMPLATE",
|
|
8
10
|
WAREHOUSE = "WAREHOUSE",
|
|
9
11
|
RECEIVE_REQUEST = "RECEIVE_REQUEST",
|
|
10
12
|
TRANSFER_TEMPLATE = "TRANSFER_TEMPLATE",
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
import { X as m, u as B, a as d, aj as k, L as p } from "./app-0klJzLit.js";
|
|
2
|
+
import { useCoreStore as v } from "@feedmepos/mf-common";
|
|
3
|
+
import { useSnackbar as y } from "@feedmepos/ui-library";
|
|
4
|
+
import { ref as $, computed as S } from "vue";
|
|
5
|
+
const b = m((r, o) => {
|
|
6
|
+
const u = B(), a = v(), c = y();
|
|
7
|
+
return o.onError(async (t) => {
|
|
8
|
+
t.name === "SvcForbiddenError" && (c == null || c.open({
|
|
9
|
+
title: t.title,
|
|
10
|
+
message: t.message,
|
|
11
|
+
type: "error"
|
|
12
|
+
}));
|
|
13
|
+
}), {
|
|
14
|
+
async readStockBalance() {
|
|
15
|
+
const t = u.currentLocationDBName, e = `${r.inventoryBackendUrl}/${t}/stock-balance`;
|
|
16
|
+
return await o.get(e);
|
|
17
|
+
},
|
|
18
|
+
async readSkuBalance() {
|
|
19
|
+
var s;
|
|
20
|
+
const t = u.currentLocationDBName, e = `${r.inventoryBackendUrl}/${t}/sku/balance`;
|
|
21
|
+
return (((s = a.currentBusiness.value) == null ? void 0 : s.menuVersion) ?? "") === "v3" ? await o.get(e) : await o.get(`${e}?useInventoryDoc=true`);
|
|
22
|
+
},
|
|
23
|
+
async readSingleAdjustment(t) {
|
|
24
|
+
const e = u.currentLocationDBName, n = `${r.inventoryBackendUrl}/${e}/adjustment`;
|
|
25
|
+
return await o.get(`${n}?adjustmentId=${t}`);
|
|
26
|
+
},
|
|
27
|
+
async readStockAdjustment(t, e, n) {
|
|
28
|
+
const s = u.currentLocationDBName, i = `${r.inventoryBackendUrl}/${s}/sku`;
|
|
29
|
+
return await o.get(`${i}?skuId=${t}&start=${e}&end=${n}`);
|
|
30
|
+
},
|
|
31
|
+
async convertSku(t) {
|
|
32
|
+
var i;
|
|
33
|
+
const e = u.currentLocationDBName, n = `${r.inventoryBackendUrl}/${e}/sku/convert`;
|
|
34
|
+
return (((i = a.currentBusiness.value) == null ? void 0 : i.menuVersion) ?? "") === "v3" ? await o.post(n, t) : await o.post(`${n}?useInventoryDoc=true`, t);
|
|
35
|
+
},
|
|
36
|
+
async adjustSku(t) {
|
|
37
|
+
var i;
|
|
38
|
+
const e = u.currentLocationDBName, n = `${r.inventoryBackendUrl}/${e}/sku/adjust`;
|
|
39
|
+
return (((i = a.currentBusiness.value) == null ? void 0 : i.menuVersion) ?? "") === "v3" ? await o.post(n, t) : await o.post(`${n}?useInventoryDoc=true`, t);
|
|
40
|
+
},
|
|
41
|
+
recalculation: {
|
|
42
|
+
getRecalculateAbility() {
|
|
43
|
+
var s;
|
|
44
|
+
const e = `business_${(s = a.currentBusiness.value) == null ? void 0 : s._id}`, n = `${r.inventoryBackendUrl}/${e}/stock/operations/recalculate`;
|
|
45
|
+
return o.get(n);
|
|
46
|
+
},
|
|
47
|
+
startRecalculateTask() {
|
|
48
|
+
var s;
|
|
49
|
+
const e = `business_${(s = a.currentBusiness.value) == null ? void 0 : s._id}`, n = `${r.inventoryBackendUrl}/${e}/stock/operations/recalculate?refundFromPreviousAdjustment=true`;
|
|
50
|
+
return o.post(n);
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
};
|
|
54
|
+
});
|
|
55
|
+
function g() {
|
|
56
|
+
return {
|
|
57
|
+
stockBalance: {
|
|
58
|
+
_id: "",
|
|
59
|
+
items: []
|
|
60
|
+
},
|
|
61
|
+
productBalance: []
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
const f = p(0), w = {
|
|
65
|
+
id: "",
|
|
66
|
+
balance: f,
|
|
67
|
+
closing: null,
|
|
68
|
+
costs: null
|
|
69
|
+
}, l = $(g()), A = () => {
|
|
70
|
+
const r = d(), o = S(() => {
|
|
71
|
+
var t;
|
|
72
|
+
const a = (t = l.value.stockBalance.skus) == null ? void 0 : t.groupBy((e) => e.id), c = (e) => {
|
|
73
|
+
var n;
|
|
74
|
+
return ((n = a == null ? void 0 : a.get(e)) == null ? void 0 : n[0]) ?? { ...w, id: e };
|
|
75
|
+
};
|
|
76
|
+
return r.skus.map((e) => c(e._id));
|
|
77
|
+
}), u = b();
|
|
78
|
+
return {
|
|
79
|
+
// state
|
|
80
|
+
get stockBalance() {
|
|
81
|
+
return {
|
|
82
|
+
...l.value.stockBalance,
|
|
83
|
+
skus: o.value
|
|
84
|
+
};
|
|
85
|
+
},
|
|
86
|
+
set stockBalance(a) {
|
|
87
|
+
l.value.stockBalance = a;
|
|
88
|
+
},
|
|
89
|
+
get productBalance() {
|
|
90
|
+
return l.value.productBalance;
|
|
91
|
+
},
|
|
92
|
+
set productBalance(a) {
|
|
93
|
+
l.value.productBalance = a;
|
|
94
|
+
},
|
|
95
|
+
// actions
|
|
96
|
+
async readStockBalance() {
|
|
97
|
+
this.stockBalance = await u.readStockBalance();
|
|
98
|
+
},
|
|
99
|
+
async readProductBalance() {
|
|
100
|
+
this.productBalance = [];
|
|
101
|
+
const a = d(), c = k({
|
|
102
|
+
recipes: a.recipes,
|
|
103
|
+
skus: a.skus,
|
|
104
|
+
inventoryBindingMapping: {},
|
|
105
|
+
stockBalance: this.stockBalance
|
|
106
|
+
// silent: true
|
|
107
|
+
});
|
|
108
|
+
function t(e, n) {
|
|
109
|
+
return Object.prototype.hasOwnProperty.call(e, n);
|
|
110
|
+
}
|
|
111
|
+
for (const e in c.convertCountdown)
|
|
112
|
+
if (t(c.convertCountdown, e)) {
|
|
113
|
+
const n = c.convertCountdown[e];
|
|
114
|
+
this.productBalance.push({
|
|
115
|
+
id: e,
|
|
116
|
+
count: n
|
|
117
|
+
});
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
};
|
|
121
|
+
};
|
|
122
|
+
export {
|
|
123
|
+
b as a,
|
|
124
|
+
A as u
|
|
125
|
+
};
|
package/dist/stores/feature.d.ts
CHANGED
|
@@ -3,11 +3,17 @@ export declare const useFeatureStore: () => {
|
|
|
3
3
|
readonly isWarehouse: boolean;
|
|
4
4
|
readonly restaurantPosVersion: string | null | undefined;
|
|
5
5
|
readonly enableTotalCost: boolean;
|
|
6
|
+
/** @deprecated TODO: remove */
|
|
6
7
|
readonly enableBackdatePo: boolean;
|
|
8
|
+
/** @deprecated TODO: remove */
|
|
7
9
|
readonly autoReceiveWarehouse: boolean;
|
|
10
|
+
/** @deprecated TODO: remove */
|
|
8
11
|
readonly manualReceive: boolean;
|
|
9
12
|
readonly enablePoTemplate: boolean;
|
|
10
13
|
readonly enableSupplierMasterList: boolean;
|
|
11
14
|
readonly mustUsePoTemplate: boolean;
|
|
15
|
+
/** @deprecated TODO: remove */
|
|
12
16
|
readonly mustUseDefaultCost: boolean;
|
|
17
|
+
readonly businessSupplierOnly: boolean;
|
|
18
|
+
init(): Promise<void>;
|
|
13
19
|
};
|
|
@@ -31,7 +31,7 @@ export declare function useNetSuiteStore(): {
|
|
|
31
31
|
}[];
|
|
32
32
|
syncedAt?: string | null | undefined;
|
|
33
33
|
restlet?: {
|
|
34
|
-
type: "createItemReceipt";
|
|
34
|
+
type: "createItemReceipt" | "retrieveRecordInfo";
|
|
35
35
|
scriptId: string;
|
|
36
36
|
deploymentId: string;
|
|
37
37
|
}[] | null | undefined;
|
|
@@ -76,6 +76,73 @@ export declare function useNetSuiteStore(): {
|
|
|
76
76
|
};
|
|
77
77
|
readonly netSuiteItemIdToSkuId: Map<unknown, [string, ...string[]]>;
|
|
78
78
|
readonly netSuiteMeasurementIdToMeasurementId: Map<unknown, [string, ...string[]]>;
|
|
79
|
+
readonly netSuiteItemBySkuId: Map<unknown, [{
|
|
80
|
+
pktCode?: string | null | undefined;
|
|
81
|
+
pktName?: string | null | undefined;
|
|
82
|
+
externalId?: string | null | undefined;
|
|
83
|
+
id: string;
|
|
84
|
+
netSuiteId: string;
|
|
85
|
+
unitTypeId: string;
|
|
86
|
+
unitOfMeasureId: string;
|
|
87
|
+
subsidiaryIds: string[];
|
|
88
|
+
includeChildren: boolean;
|
|
89
|
+
}, ...{
|
|
90
|
+
pktCode?: string | null | undefined;
|
|
91
|
+
pktName?: string | null | undefined;
|
|
92
|
+
externalId?: string | null | undefined;
|
|
93
|
+
id: string;
|
|
94
|
+
netSuiteId: string;
|
|
95
|
+
unitTypeId: string;
|
|
96
|
+
unitOfMeasureId: string;
|
|
97
|
+
subsidiaryIds: string[];
|
|
98
|
+
includeChildren: boolean;
|
|
99
|
+
}[]]>;
|
|
100
|
+
readonly unitByNetsuiteId: Map<unknown, [{
|
|
101
|
+
_id: string;
|
|
102
|
+
name: string;
|
|
103
|
+
abbrev: string;
|
|
104
|
+
precision: number;
|
|
105
|
+
measurements: {
|
|
106
|
+
id: string;
|
|
107
|
+
name: string;
|
|
108
|
+
abbrev: string;
|
|
109
|
+
conversion: {
|
|
110
|
+
amount: number;
|
|
111
|
+
precision: number;
|
|
112
|
+
};
|
|
113
|
+
}[];
|
|
114
|
+
}, ...{
|
|
115
|
+
_id: string;
|
|
116
|
+
name: string;
|
|
117
|
+
abbrev: string;
|
|
118
|
+
precision: number;
|
|
119
|
+
measurements: {
|
|
120
|
+
id: string;
|
|
121
|
+
name: string;
|
|
122
|
+
abbrev: string;
|
|
123
|
+
conversion: {
|
|
124
|
+
amount: number;
|
|
125
|
+
precision: number;
|
|
126
|
+
};
|
|
127
|
+
}[];
|
|
128
|
+
}[]]>;
|
|
129
|
+
readonly measurementByNetsuiteId: Map<unknown, [{
|
|
130
|
+
id: string;
|
|
131
|
+
name: string;
|
|
132
|
+
abbrev: string;
|
|
133
|
+
conversion: {
|
|
134
|
+
amount: number;
|
|
135
|
+
precision: number;
|
|
136
|
+
};
|
|
137
|
+
} | undefined, ...({
|
|
138
|
+
id: string;
|
|
139
|
+
name: string;
|
|
140
|
+
abbrev: string;
|
|
141
|
+
conversion: {
|
|
142
|
+
amount: number;
|
|
143
|
+
precision: number;
|
|
144
|
+
};
|
|
145
|
+
} | undefined)[]]>;
|
|
79
146
|
getNetSuiteVendor(supplierId: string): FdoNetSuiteVendor | undefined;
|
|
80
147
|
getNetSuiteLocation(locationId: string): FdoNetSuiteLocation | undefined;
|
|
81
148
|
getLocationSubsidiary(netSuiteLocationId?: string | null): {
|
|
@@ -101,7 +168,8 @@ export declare function useNetSuiteStore(): {
|
|
|
101
168
|
getAvailableMeasurements(skuId: string, subsidiaryId?: string | null): string[];
|
|
102
169
|
readSetting(): Promise<void>;
|
|
103
170
|
getVendorSubsidiaryName(supplierId: string): string;
|
|
104
|
-
|
|
171
|
+
syncTransferOrder(type: string, poId: string, porId?: string): Promise<void>;
|
|
172
|
+
getItemPKTCode(sku: FdoInventorySku, measurementId?: string | null): string | null;
|
|
105
173
|
};
|
|
106
174
|
export type FdoNetSuiteSubsidiaryWithChildren = FdoNetSuiteSubsidiary & {
|
|
107
175
|
fullName?: string;
|
|
@@ -88,11 +88,12 @@ export declare function useInventoryStore(): {
|
|
|
88
88
|
precision: number;
|
|
89
89
|
};
|
|
90
90
|
} | null | undefined;
|
|
91
|
+
operationalGroup?: string | null | undefined;
|
|
91
92
|
thresholds?: {
|
|
92
93
|
low: number;
|
|
93
94
|
mid: number;
|
|
94
95
|
} | null | undefined;
|
|
95
|
-
|
|
96
|
+
customAttributes?: Record<string, any> | null | undefined;
|
|
96
97
|
unit: {
|
|
97
98
|
_id: string;
|
|
98
99
|
name: string;
|
|
@@ -113,6 +114,7 @@ export declare function useInventoryStore(): {
|
|
|
113
114
|
name: string;
|
|
114
115
|
}[] | null | undefined;
|
|
115
116
|
recipe?: {
|
|
117
|
+
customAttributes?: Record<string, any> | null | undefined;
|
|
116
118
|
_id: string;
|
|
117
119
|
name: string;
|
|
118
120
|
contains: {
|
|
@@ -191,11 +193,12 @@ export declare function useInventoryStore(): {
|
|
|
191
193
|
precision: number;
|
|
192
194
|
};
|
|
193
195
|
} | null | undefined;
|
|
196
|
+
operationalGroup?: string | null | undefined;
|
|
194
197
|
thresholds?: {
|
|
195
198
|
low: number;
|
|
196
199
|
mid: number;
|
|
197
200
|
} | null | undefined;
|
|
198
|
-
|
|
201
|
+
customAttributes?: Record<string, any> | null | undefined;
|
|
199
202
|
code: string;
|
|
200
203
|
_id: string;
|
|
201
204
|
name: string;
|
|
@@ -861,11 +864,12 @@ export declare function useInventoryStore(): {
|
|
|
861
864
|
precision: number;
|
|
862
865
|
};
|
|
863
866
|
} | null | undefined;
|
|
867
|
+
operationalGroup?: string | null | undefined;
|
|
864
868
|
thresholds?: {
|
|
865
869
|
low: number;
|
|
866
870
|
mid: number;
|
|
867
871
|
} | null | undefined;
|
|
868
|
-
|
|
872
|
+
customAttributes?: Record<string, any> | null | undefined;
|
|
869
873
|
unit: {
|
|
870
874
|
_id: string;
|
|
871
875
|
name: string;
|
|
@@ -886,6 +890,7 @@ export declare function useInventoryStore(): {
|
|
|
886
890
|
name: string;
|
|
887
891
|
}[] | null | undefined;
|
|
888
892
|
recipe?: {
|
|
893
|
+
customAttributes?: Record<string, any> | null | undefined;
|
|
889
894
|
_id: string;
|
|
890
895
|
name: string;
|
|
891
896
|
contains: {
|
|
@@ -964,11 +969,12 @@ export declare function useInventoryStore(): {
|
|
|
964
969
|
precision: number;
|
|
965
970
|
};
|
|
966
971
|
} | null | undefined;
|
|
972
|
+
operationalGroup?: string | null | undefined;
|
|
967
973
|
thresholds?: {
|
|
968
974
|
low: number;
|
|
969
975
|
mid: number;
|
|
970
976
|
} | null | undefined;
|
|
971
|
-
|
|
977
|
+
customAttributes?: Record<string, any> | null | undefined;
|
|
972
978
|
code: string;
|
|
973
979
|
_id: string;
|
|
974
980
|
name: string;
|
|
@@ -1958,11 +1964,8 @@ export declare function useInventoryStore(): {
|
|
|
1958
1964
|
};
|
|
1959
1965
|
closing: {
|
|
1960
1966
|
closedBy?: {
|
|
1961
|
-
faceId?: unknown;
|
|
1962
1967
|
name: string;
|
|
1963
|
-
|
|
1964
|
-
_id: string;
|
|
1965
|
-
passcode: string;
|
|
1968
|
+
id: string;
|
|
1966
1969
|
} | null | undefined;
|
|
1967
1970
|
_id?: string | undefined;
|
|
1968
1971
|
skus?: {
|
|
@@ -2038,6 +2041,7 @@ export declare function useInventoryStore(): {
|
|
|
2038
2041
|
}[];
|
|
2039
2042
|
}>;
|
|
2040
2043
|
readonly recipes: {
|
|
2044
|
+
customAttributes?: Record<string, any> | null | undefined;
|
|
2041
2045
|
_id: string;
|
|
2042
2046
|
name: string;
|
|
2043
2047
|
contains: {
|
|
@@ -2059,6 +2063,7 @@ export declare function useInventoryStore(): {
|
|
|
2059
2063
|
}[];
|
|
2060
2064
|
}[];
|
|
2061
2065
|
readonly recipeById: Record<string, {
|
|
2066
|
+
customAttributes?: Record<string, any> | null | undefined;
|
|
2062
2067
|
_id: string;
|
|
2063
2068
|
name: string;
|
|
2064
2069
|
contains: {
|
|
@@ -2118,11 +2123,12 @@ export declare function useInventoryStore(): {
|
|
|
2118
2123
|
precision: number;
|
|
2119
2124
|
};
|
|
2120
2125
|
} | null | undefined;
|
|
2126
|
+
operationalGroup?: string | null | undefined;
|
|
2121
2127
|
thresholds?: {
|
|
2122
2128
|
low: number;
|
|
2123
2129
|
mid: number;
|
|
2124
2130
|
} | null | undefined;
|
|
2125
|
-
|
|
2131
|
+
customAttributes?: Record<string, any> | null | undefined;
|
|
2126
2132
|
unit: {
|
|
2127
2133
|
_id: string;
|
|
2128
2134
|
name: string;
|
|
@@ -2181,11 +2187,12 @@ export declare function useInventoryStore(): {
|
|
|
2181
2187
|
precision: number;
|
|
2182
2188
|
};
|
|
2183
2189
|
} | null | undefined;
|
|
2190
|
+
operationalGroup?: string | null | undefined;
|
|
2184
2191
|
thresholds?: {
|
|
2185
2192
|
low: number;
|
|
2186
2193
|
mid: number;
|
|
2187
2194
|
} | null | undefined;
|
|
2188
|
-
|
|
2195
|
+
customAttributes?: Record<string, any> | null | undefined;
|
|
2189
2196
|
unit: {
|
|
2190
2197
|
_id: string;
|
|
2191
2198
|
name: string;
|
|
@@ -2244,11 +2251,12 @@ export declare function useInventoryStore(): {
|
|
|
2244
2251
|
precision: number;
|
|
2245
2252
|
};
|
|
2246
2253
|
} | null | undefined;
|
|
2254
|
+
operationalGroup?: string | null | undefined;
|
|
2247
2255
|
thresholds?: {
|
|
2248
2256
|
low: number;
|
|
2249
2257
|
mid: number;
|
|
2250
2258
|
} | null | undefined;
|
|
2251
|
-
|
|
2259
|
+
customAttributes?: Record<string, any> | null | undefined;
|
|
2252
2260
|
unit: {
|
|
2253
2261
|
_id: string;
|
|
2254
2262
|
name: string;
|
|
@@ -2326,11 +2334,12 @@ export declare function useInventoryStore(): {
|
|
|
2326
2334
|
precision: number;
|
|
2327
2335
|
};
|
|
2328
2336
|
} | null | undefined;
|
|
2337
|
+
operationalGroup?: string | null | undefined;
|
|
2329
2338
|
thresholds?: {
|
|
2330
2339
|
low: number;
|
|
2331
2340
|
mid: number;
|
|
2332
2341
|
} | null | undefined;
|
|
2333
|
-
|
|
2342
|
+
customAttributes?: Record<string, any> | null | undefined;
|
|
2334
2343
|
code: string;
|
|
2335
2344
|
_id: string;
|
|
2336
2345
|
name: string;
|
|
@@ -902,4 +902,4 @@ export declare const useSupplierStore: import("pinia").StoreDefinition<"supplier
|
|
|
902
902
|
registrationNumber: string;
|
|
903
903
|
};
|
|
904
904
|
}>;
|
|
905
|
-
}, "readSuppliers" | "createSupplier" | "updateSupplier" | "deleteSupplier" | "importSuppliers"
|
|
905
|
+
}, "init" | "readSuppliers" | "createSupplier" | "updateSupplier" | "deleteSupplier" | "importSuppliers">>;
|
package/dist/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.fm-
|
|
1
|
+
.fm-droppable-field[data-v-e121b2c1]{display:flex;flex-direction:column;gap:4px}.fm-droppable-field__container[data-v-e121b2c1]{position:relative;background-color:var(--fm-color-neutral-white);padding:12px;border-radius:8px;border-width:2px;border-style:dashed;border-color:var(--fm-color-neutral-gray-300);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;text-align:center}.fm-droppable-field__container--disabled[data-v-e121b2c1]{cursor:not-allowed;color:var(--fm-color-neutral-gray-200);border-color:var(--fm-color-neutral-gray-200)}.fm-droppable-field__container--dragging[data-v-e121b2c1]{border-color:var(--fm-color-primary)}.fm-droppable-field__container--invalid[data-v-e121b2c1]{border-color:var(--fm-color-system-red-300)}.fm-droppable-field__container[data-v-e121b2c1]:hover:not(.fm-droppable-field__container--disabled){border-color:var(--fm-color-neutral-gray-400)}.fm-droppable-field__input[data-v-e121b2c1]{cursor:pointer;opacity:0;position:absolute;top:0;left:0;height:100%;width:100%}.fm-droppable-field__input[data-v-e121b2c1]:disabled{display:none;cursor:not-allowed}.fade-enter-active,.fade-leave-active{transition:opacity .5s ease}.fade-enter-from,.fade-leave-to{opacity:0}.fade-enter-active[data-v-0b70e452],.fade-leave-active[data-v-0b70e452]{transition:opacity .25s ease}.fade-enter[data-v-0b70e452],.fade-leave-to[data-v-0b70e452]{opacity:0}.fm-forecast-notification-low{background-color:var(--fm-color-system-red-100);color:var(--fm-color-system-red-400)}.fm-forecast-notification-mid{background-color:var(--fm-color-system-orange-100);color:var(--fm-color-system-orange-400)}.fm-forecast-notification-high{background-color:var(--fm-color-system-green-100);color:var(--fm-color-system-green-400)}.fm-forecast-notification-indicator{display:inline-block;height:12px;width:12px;border-radius:9999px}.fm-forecast-notification-indicator-low{background-color:var(--fm-color-system-red-400)}.fm-forecast-notification-indicator-mid{background-color:var(--fm-color-system-orange-400)}.fm-forecast-notification-indicator-high{background-color:var(--fm-color-system-green-400)}.map-button[data-v-272f5e8b]{border-top-width:1px;border-top-color:var(--fm-color-neutral-gray-200);color:var(--fm-color-neutral-gray-400);padding:.2rem 1rem;border-radius:8px}table[data-v-92a03d5c]{width:100%;border-spacing:unset;line-height:inherit}table td[data-v-92a03d5c],table th[data-v-92a03d5c]{padding:3px 5px;vertical-align:top}hr[data-v-92a03d5c]{border-collapse:unset;background:#888;height:2px;border:0px}.text-left[data-v-92a03d5c]{text-align:left}.text-right[data-v-92a03d5c]{text-align:right}.purchase-box[data-v-92a03d5c]{max-width:800px;margin:auto;padding:30px;border:1px solid #eee;box-shadow:0 0 10px #00000026;font-size:16px;line-height:1.5;font-family:Helvetica Neue,Helvetica,Helvetica,Arial,sans-serif;color:#555}.title[data-v-92a03d5c]{padding-bottom:0;font-size:30px;color:#333}.header[data-v-92a03d5c]{font-weight:600;color:#333}.sub-header[data-v-92a03d5c]{font-size:18px;color:#333}.caption[data-v-92a03d5c]{font-size:14px;color:#666}.address[data-v-92a03d5c]{font-size:16px;line-height:1.2;color:#666}.purchase-body[data-v-92a03d5c]{margin-top:30px}.item-header[data-v-92a03d5c]{border:0px;background:#ccc;color:#444}.v-enter-active[data-v-4515fce1],.v-leave-active[data-v-4515fce1]{transition:opacity .1s ease}.v-enter-from[data-v-4515fce1],.v-leave-to[data-v-4515fce1]{opacity:0}.fm-status-badge{font-size:.875rem;font-weight:600;line-height:1.125rem;letter-spacing:.0125em;text-decoration-line:none;border-radius:8px;display:flex;align-items:center;padding-left:8px;padding-right:8px;height:22px}.fm-status-badge-draft{background-color:var(--fm-color-neutral-gray-100);color:var(--fm-color-neutral-gray-500)}.fm-status-badge-receiving{background-color:var(--fm-color-system-blue-100);color:var(--fm-color-system-blue-400)}.fm-status-badge-cancel{background-color:var(--fm-color-system-red-100);color:var(--fm-color-system-red-400)}.fm-status-badge-complete{background-color:var(--fm-color-system-green-100);color:var(--fm-color-system-green-400)}.fm-status-badge-processing,.fm-status-badge-requesting{background-color:var(--fm-color-system-orange-100);color:var(--fm-color-system-orange-400)}.fm-status-badge-transfer-info,.fm-status-badge-info-secondary{background-color:var(--fm-color-system-blue-100);color:var(--fm-color-system-blue-400)}.fm-status-badge-success-secondary{background-color:var(--fm-color-system-green-100);color:var(--fm-color-system-green-400)}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { X as m, u, s as y, ak as b, al as v } from "./app-0klJzLit.js";
|
|
2
2
|
import { useCoreStore as c } from "@feedmepos/mf-common";
|
|
3
3
|
import { defineStore as w } from "pinia";
|
|
4
4
|
import { ref as l, computed as d } from "vue";
|
|
5
|
-
const
|
|
6
|
-
function
|
|
5
|
+
const i = m((t, p) => {
|
|
6
|
+
function a() {
|
|
7
7
|
var o;
|
|
8
8
|
const s = c(), e = u(), r = e.businessLevel, n = `business_${((o = s.currentBusiness.value) == null ? void 0 : o._id) ?? ""}`, S = e.currentLocation.dbName;
|
|
9
9
|
return r ? n : S;
|
|
10
10
|
}
|
|
11
11
|
return {
|
|
12
12
|
async readSuppliers() {
|
|
13
|
-
const s =
|
|
13
|
+
const s = a(), e = `${t.inventoryBackendUrl}/${s}/supplier`;
|
|
14
14
|
return await p.get(e);
|
|
15
15
|
},
|
|
16
16
|
async readLocationSuppliers() {
|
|
@@ -23,40 +23,40 @@ const a = m((t, p) => {
|
|
|
23
23
|
return await p.get(r);
|
|
24
24
|
},
|
|
25
25
|
async createSupplier(s) {
|
|
26
|
-
const e =
|
|
26
|
+
const e = a(), r = `${t.inventoryBackendUrl}/${e}/supplier`;
|
|
27
27
|
return await p.post(r, s);
|
|
28
28
|
},
|
|
29
29
|
async importSuppliers(s) {
|
|
30
|
-
const e =
|
|
30
|
+
const e = a(), r = `${t.inventoryBackendUrl}/${e}/supplier/import`;
|
|
31
31
|
return await p.post(r, s);
|
|
32
32
|
},
|
|
33
33
|
async updateSupplier(s) {
|
|
34
|
-
const e =
|
|
34
|
+
const e = a(), r = `${t.inventoryBackendUrl}/${e}/supplier`;
|
|
35
35
|
return await p.put(r, s);
|
|
36
36
|
},
|
|
37
37
|
async deleteSupplier(s) {
|
|
38
|
-
const e =
|
|
38
|
+
const e = a(), r = `${t.inventoryBackendUrl}/${e}/supplier`;
|
|
39
39
|
return await p.delete(r, s);
|
|
40
40
|
}
|
|
41
41
|
};
|
|
42
42
|
}), f = w("supplier", () => {
|
|
43
|
-
const t = l(new Array()), p = l(new Array()),
|
|
43
|
+
const t = l(new Array()), p = l(new Array()), a = d(() => [...t.value, ...p.value]), s = d(() => y(a.value, "_id"));
|
|
44
44
|
return {
|
|
45
45
|
async readSuppliers() {
|
|
46
|
-
const e =
|
|
46
|
+
const e = i();
|
|
47
47
|
t.value = await e.readLocationSuppliers(), p.value = await e.readBusinessSuppliers();
|
|
48
48
|
},
|
|
49
49
|
async createSupplier(e) {
|
|
50
|
-
await
|
|
50
|
+
await i().createSupplier(e);
|
|
51
51
|
},
|
|
52
52
|
async updateSupplier(e) {
|
|
53
|
-
await
|
|
53
|
+
await i().updateSupplier(e);
|
|
54
54
|
},
|
|
55
55
|
async deleteSupplier(e) {
|
|
56
|
-
await
|
|
56
|
+
await i().deleteSupplier(e);
|
|
57
57
|
},
|
|
58
58
|
async importSuppliers(e) {
|
|
59
|
-
await
|
|
59
|
+
await i().importSuppliers(e);
|
|
60
60
|
},
|
|
61
61
|
async init() {
|
|
62
62
|
const e = b();
|
|
@@ -66,7 +66,7 @@ const a = m((t, p) => {
|
|
|
66
66
|
throw r instanceof v || e.error("Error at reading suppliers"), r;
|
|
67
67
|
}
|
|
68
68
|
},
|
|
69
|
-
suppliers:
|
|
69
|
+
suppliers: a,
|
|
70
70
|
locationSuppliers: t,
|
|
71
71
|
businessSuppliers: p,
|
|
72
72
|
supplierById: s
|