@feedmepos/mf-inventory-portal 0.0.23-dev.3 → 0.0.23-dev.30
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-BREfwtck.js → App-Brc7GX7l.js} +85 -73
- package/dist/{ApprovalView-DCzLx24G.js → ApprovalView-CMRd7pcC.js} +24 -27
- package/dist/{BindingsDialog-CUcC8lue.js → BindingsDialog-DoakDtFI.js} +4 -4
- package/dist/{BindingsPicker-3VOdZBWI.js → BindingsPicker-BC3rjqKw.js} +8 -9
- package/dist/{BindingsTable-D5Lt6GOO.js → BindingsTable-xKRvhEV5.js} +18 -22
- package/dist/ClosingDraftView-DlaVbAHy.js +1190 -0
- package/dist/{ClosingTemplateView-CukthwOo.js → ClosingTemplateView-DFxLuV8k.js} +272 -286
- package/dist/FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DjGGEGQ9.js +282 -0
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-DigsIOB0.js → FmUnitInput.vue_vue_type_script_setup_true_lang-DNEwc797.js} +116 -114
- package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-DweLQVwq.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-DlM-xGKh.js} +5 -5
- package/dist/{IngredientGroupView-CkD8x2CP.js → IngredientGroupView-C4bL0O5L.js} +63 -69
- package/dist/IngredientsView-CfS8FgxA.js +1657 -0
- package/dist/{IntegrationView-BfeV07OO.js → IntegrationView-aSAeFNtp.js} +92 -95
- package/dist/{InventoryBindingForm-BsSmth0U.js → InventoryBindingForm-C7rIUyV1.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-CMV5e99K.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-Ba6WLcom.js} +25 -27
- package/dist/{InventoryBindingSummary-BHloDawE.js → InventoryBindingSummary-Ix92wSE6.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BjddpTCS.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-6BUIvm7C.js} +1 -1
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-BZBa_99i.js → PremiumBadge.vue_vue_type_script_setup_true_lang-Cd6LQ6Yz.js} +23 -24
- package/dist/{PurchaseOrderPrintPreview-CTdd-RuH.js → PurchaseOrderPrintPreview-DJSF8YaR.js} +13 -14
- package/dist/ReceiveRequestView-BUyShiP2.js +4188 -0
- package/dist/{RecipeView-CrmDQdc5.js → RecipeView-c0XB2_P8.js} +79 -85
- package/dist/{StockView-Xb3fQaiD.js → StockView-DNPNymCW.js} +1338 -1446
- package/dist/{SupplierView-CrtIiaz0.js → SupplierView-Cz0hgito.js} +2325 -787
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-ySR4KngR.js +1227 -0
- package/dist/TransferTemplateView-B7kzPdfT.js +1264 -0
- package/dist/{UnitView-C6BgrZ1G.js → UnitView-BKWbaZfc.js} +40 -44
- package/dist/{WarehouseView-Hhd76ybU.js → WarehouseView-BgE3teyT.js} +94 -100
- package/dist/api/adjustment-template.d.ts +23 -0
- package/dist/api/bill.d.ts +2 -2
- package/dist/api/closing-draft.d.ts +6 -0
- package/dist/api/closing.d.ts +1 -0
- package/dist/api/netsuite.d.ts +1 -1
- package/dist/app-Bkg0JUKr.js +84182 -0
- package/dist/app.d.ts +56 -0
- package/dist/app.js +2 -2
- package/dist/components/FmMinMaxInputRules.d.ts +4 -1
- package/dist/components/FmMultiselectDialogProps.d.ts +1 -0
- package/dist/components/row-action.enum.d.ts +1 -0
- package/dist/composable/defineDeepModel.d.ts +1 -1
- package/dist/{decimal-rPKr5T-H.js → decimal-CZ3lFF__.js} +1 -1
- package/dist/{feature-z95vJnA1.js → feature-By_PNrnn.js} +23 -9
- package/dist/format-unit-display-ZlJT10zr.js +1207 -0
- package/dist/index-B4nO9Djl.js +12087 -0
- package/dist/router/name.d.ts +2 -0
- package/dist/stock-DNajb8lV.js +125 -0
- package/dist/stores/feature.d.ts +2 -0
- package/dist/stores/integration/netsuite.d.ts +69 -1
- package/dist/stores/inventory.d.ts +1 -4
- package/dist/style.css +1 -1
- package/dist/{supplier-BixmjZyl.js → supplier-eaFF1izE.js} +15 -15
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{use-inventory-binding-dialog-BRygbm1p.js → use-inventory-binding-dialog-14JW4t6q.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/WastageTemplateView.vue.d.ts +2 -0
- package/dist/views/adjustment-template/wastage-template/actions.d.ts +1295 -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 +29 -0
- package/dist/views/adjustment-template/wastage-template/table.d.ts +1273 -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 +621 -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 +3621 -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/composables/use-closing-template-actions.d.ts +24 -192
- package/dist/views/closing-template/composables/use-closing-template-table.d.ts +25 -193
- package/dist/views/receive-request/components/transfer-form/TransferForm.vue.d.ts +34 -34
- package/dist/views/receive-request/components/transfer-form/composables/use-transfer-items.d.ts +1 -0
- package/dist/views/receive-request/composables/use-receive-request-form.d.ts +54 -54
- package/dist/views/receive-request/composables/use-receive-request-table.d.ts +54 -54
- package/dist/views/receive-request/helper/check-netsuite-subsidiary.helper.d.ts +1 -0
- package/dist/views/stock/components/StockRecordCard.vue.d.ts +1 -1
- package/dist/views/stock/components/dialog/AdjustedItemForm.vue.d.ts +2 -2
- 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 +8 -8
- package/dist/views/transfer-template/composables/use-transfer-template-actions.d.ts +96 -96
- package/dist/views/transfer-template/composables/use-transfer-template-table.d.ts +96 -96
- package/package.json +3 -3
- package/dist/FmDroppableField-8RzKjEdL.js +0 -154
- package/dist/FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-Dwb3eBLo.js +0 -267
- package/dist/FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-CvtvzIt1.js +0 -436
- package/dist/FmMultiselectDialog-CKBcMDGC.js +0 -415
- package/dist/IngredientsView-DuK4YSD6.js +0 -1613
- package/dist/ReceiveRequestView-CgWNaYs1.js +0 -4104
- package/dist/TableActionableRow.vue_vue_type_script_setup_true_lang-DlNJ6kRg.js +0 -135
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-C9H41eg7.js +0 -1189
- package/dist/TransferTemplateView-Cc7VRbZ7.js +0 -1262
- package/dist/_plugin-vue_export-helper-CHgC5LLL.js +0 -9
- package/dist/app-CwUHqg7h.js +0 -33462
- package/dist/date2-CHNm4ELK.js +0 -117
- package/dist/dayjs.min-FE3dpxHU.js +0 -282
- package/dist/defineDeepModel-Dc1zZzOi.js +0 -13
- package/dist/format-time-from-id-CaPj8EHN.js +0 -15
- package/dist/format-unit-display-Bkz5kW6p.js +0 -1198
- package/dist/fuzzy-DXqhGaFi.js +0 -41
- package/dist/index-BMJHz32O.js +0 -22277
- package/dist/index-Be5vGZdr.js +0 -45
- package/dist/index-D2juQPg6.js +0 -10545
- package/dist/netsuite-P0as0Moa.js +0 -194
- package/dist/normalizeArguments-DP7Hrren.js +0 -1552
- package/dist/row-action.enum-PMKMRrZR.js +0 -50
- package/dist/rules-BQz4NGht.js +0 -198
- package/dist/use-template-enabled-locations-2-Dd15d-ng.js +0 -86
- package/dist/xlsx-k2Rf0NcF.js +0 -24004
- package/dist/xlsx.util-CJxPf7XZ.js +0 -78
|
@@ -1,16 +1,10 @@
|
|
|
1
|
-
import { ref as W, defineComponent as I, watch as ee, onMounted as te, onUnmounted as
|
|
2
|
-
import {
|
|
3
|
-
import { useCoreStore as
|
|
4
|
-
import {
|
|
5
|
-
import { c as Ne, _ as qe, F as Q } from "./TableActionableRow.vue_vue_type_script_setup_true_lang-DlNJ6kRg.js";
|
|
6
|
-
import { u as Be, _ as ze, a as Ie } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-CvtvzIt1.js";
|
|
7
|
-
import { useDialogChild as je, useDialog as Me, useSnackbar as ae, useProxiedModel as oe, useBreakpoints as Oe } from "@feedmepos/ui-library";
|
|
8
|
-
import { R as E } from "./rules-BQz4NGht.js";
|
|
1
|
+
import { ref as W, defineComponent as I, watch as ee, onMounted as te, onUnmounted as Ce, openBlock as S, createElementBlock as q, toRaw as be, reactive as Fe, createElementVNode as g, toDisplayString as U, unref as c, createVNode as V, resolveComponent as L, createSlots as $e, withCtx as N, createTextVNode as We, renderSlot as De, createBlock as z, createCommentVNode as Ae, computed as C, isRef as we, normalizeClass as Se, normalizeStyle as Pe } from "vue";
|
|
2
|
+
import { W as Re, an as Te, ao as Ue, f as Ee, D as Ve, h as J, e as O, ap as Le, _ as Ne, l as E, d as T, u as Be, x as qe, y as ze, z as Ie, B as je, E as Q } from "./app-Bkg0JUKr.js";
|
|
3
|
+
import { useCoreStore as Oe, useI18n as j } from "@feedmepos/mf-common";
|
|
4
|
+
import { useDialogChild as Ge, useDialog as Me, useSnackbar as ae, useProxiedModel as oe, useBreakpoints as Ke } from "@feedmepos/ui-library";
|
|
9
5
|
import { c as le, u as se } from "./googlemap-Dm8ERVai.js";
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
const X = Pe((m, h) => {
|
|
13
|
-
const y = Le();
|
|
6
|
+
const X = Re((m, h) => {
|
|
7
|
+
const y = Oe();
|
|
14
8
|
return {
|
|
15
9
|
async readWarehouses() {
|
|
16
10
|
var l;
|
|
@@ -40,7 +34,7 @@ function He() {
|
|
|
40
34
|
};
|
|
41
35
|
}
|
|
42
36
|
const _e = W(He());
|
|
43
|
-
function
|
|
37
|
+
function xe() {
|
|
44
38
|
return {
|
|
45
39
|
// state
|
|
46
40
|
get warehouses() {
|
|
@@ -109,7 +103,7 @@ function Ze(m, h) {
|
|
|
109
103
|
id: "action",
|
|
110
104
|
header: "",
|
|
111
105
|
cell(p) {
|
|
112
|
-
return
|
|
106
|
+
return Ee(
|
|
113
107
|
[Ve[J.Edit], Ve[J.Delete]],
|
|
114
108
|
(s) => {
|
|
115
109
|
y(s, p.row.original.original);
|
|
@@ -186,25 +180,25 @@ const Je = /* @__PURE__ */ I({
|
|
|
186
180
|
};
|
|
187
181
|
}
|
|
188
182
|
function v(r, f, b) {
|
|
189
|
-
const
|
|
190
|
-
u.push(
|
|
183
|
+
const F = l.maps.event.addListener(r, f, b);
|
|
184
|
+
u.push(F);
|
|
191
185
|
}
|
|
192
186
|
const M = W([]);
|
|
193
187
|
function $(r, f, b) {
|
|
194
188
|
v(r, f, b);
|
|
195
189
|
}
|
|
196
|
-
function
|
|
197
|
-
|
|
198
|
-
const
|
|
190
|
+
function x(r) {
|
|
191
|
+
P(null), M.value = r.map((f, b) => {
|
|
192
|
+
const F = new l.maps.Marker({
|
|
199
193
|
position: f,
|
|
200
194
|
draggable: !0
|
|
201
195
|
});
|
|
202
|
-
return $(
|
|
196
|
+
return $(F, "dragend", (D) => {
|
|
203
197
|
n("marker-change", { index: b, position: _(D) });
|
|
204
|
-
}),
|
|
205
|
-
}),
|
|
198
|
+
}), F;
|
|
199
|
+
}), P(s.value);
|
|
206
200
|
}
|
|
207
|
-
function
|
|
201
|
+
function P(r) {
|
|
208
202
|
M.value.map((f) => be(f).setMap(r));
|
|
209
203
|
}
|
|
210
204
|
const i = W([]);
|
|
@@ -215,9 +209,9 @@ const Je = /* @__PURE__ */ I({
|
|
|
215
209
|
v(r, f, b);
|
|
216
210
|
}
|
|
217
211
|
function o(r) {
|
|
218
|
-
return i.value[r].getPath().getArray().map(({ lat: b, lng:
|
|
212
|
+
return i.value[r].getPath().getArray().map(({ lat: b, lng: F }) => ({
|
|
219
213
|
lat: b(),
|
|
220
|
-
lng:
|
|
214
|
+
lng: F()
|
|
221
215
|
}));
|
|
222
216
|
}
|
|
223
217
|
function e(r) {
|
|
@@ -225,24 +219,24 @@ const Je = /* @__PURE__ */ I({
|
|
|
225
219
|
n("polygon-change", { index: r, path: f });
|
|
226
220
|
}
|
|
227
221
|
function t(r, f) {
|
|
228
|
-
const
|
|
229
|
-
n("polygon-change", { index: r, path:
|
|
222
|
+
const F = o(r).filter((D, G) => G !== f);
|
|
223
|
+
n("polygon-change", { index: r, path: F });
|
|
230
224
|
}
|
|
231
|
-
function
|
|
225
|
+
function B(r, f) {
|
|
232
226
|
f.vertex !== void 0 ? t(r, f.vertex) : n("polygon-right-click", r);
|
|
233
227
|
}
|
|
234
228
|
function w(r) {
|
|
235
229
|
d(null), i.value = r.map((f, b) => {
|
|
236
|
-
const
|
|
230
|
+
const F = new l.maps.Polygon({
|
|
237
231
|
paths: f.paths,
|
|
238
232
|
strokeColor: f.strokeColor,
|
|
239
233
|
fillColor: f.fillColor,
|
|
240
234
|
fillOpacity: 0.5,
|
|
241
235
|
editable: a.editable
|
|
242
236
|
});
|
|
243
|
-
return k(
|
|
237
|
+
return k(F, "contextmenu", (D) => B(b, D)), F.getPaths().forEach((D) => {
|
|
244
238
|
A(D, "insert_at", () => e(b)), A(D, "set_at", () => e(b));
|
|
245
|
-
}),
|
|
239
|
+
}), F;
|
|
246
240
|
}), d(s.value);
|
|
247
241
|
}
|
|
248
242
|
function d(r) {
|
|
@@ -251,7 +245,7 @@ const Je = /* @__PURE__ */ I({
|
|
|
251
245
|
function Y(r, f, b) {
|
|
252
246
|
v(r, f, b);
|
|
253
247
|
}
|
|
254
|
-
function
|
|
248
|
+
function R() {
|
|
255
249
|
s.value = new l.maps.Map(p.value, {
|
|
256
250
|
center: a.center,
|
|
257
251
|
zoom: a.zoom,
|
|
@@ -261,11 +255,11 @@ const Je = /* @__PURE__ */ I({
|
|
|
261
255
|
scrollwheel: !0
|
|
262
256
|
}), Y(s.value, "click", (r) => n("map-click", _(r)));
|
|
263
257
|
}
|
|
264
|
-
return ee(() => a.markers,
|
|
265
|
-
!p.value || !l || (
|
|
266
|
-
}),
|
|
258
|
+
return ee(() => a.markers, x, { deep: !0 }), ee(() => a.polygons, w, { deep: !0 }), te(() => {
|
|
259
|
+
!p.value || !l || (R(), x(a.markers), w(a.polygons));
|
|
260
|
+
}), Ce(() => {
|
|
267
261
|
u.forEach((r) => r.remove());
|
|
268
|
-
}), (r, f) => (S(),
|
|
262
|
+
}), (r, f) => (S(), q("div", {
|
|
269
263
|
ref_key: "mapRef",
|
|
270
264
|
ref: p,
|
|
271
265
|
class: "map app-map"
|
|
@@ -284,9 +278,9 @@ const Je = /* @__PURE__ */ I({
|
|
|
284
278
|
}
|
|
285
279
|
},
|
|
286
280
|
setup(m) {
|
|
287
|
-
const h = m, y =
|
|
281
|
+
const h = m, y = Ge(), a = se(), { t: n } = j(), l = Fe(
|
|
288
282
|
O(h.coordinate ? h.coordinate : le.jb)
|
|
289
|
-
), p = W(""), s =
|
|
283
|
+
), p = W(""), s = Le(async function() {
|
|
290
284
|
p.value = await a.getFirstMatchingAddress(
|
|
291
285
|
l.lat,
|
|
292
286
|
l.lng
|
|
@@ -299,7 +293,7 @@ const Je = /* @__PURE__ */ I({
|
|
|
299
293
|
l.lat = v.lat, l.lng = v.lng, y.emitData(O(l)), s();
|
|
300
294
|
}
|
|
301
295
|
const _ = W();
|
|
302
|
-
return (v, M) => (S(),
|
|
296
|
+
return (v, M) => (S(), q("div", Qe, [
|
|
303
297
|
g("div", Xe, [
|
|
304
298
|
g("div", null, [
|
|
305
299
|
g("span", Ye, U(c(n)("inventory.formField.coordinate.address")) + ": ", 1),
|
|
@@ -326,7 +320,7 @@ const Je = /* @__PURE__ */ I({
|
|
|
326
320
|
}, null, 8, ["center", "markers"])
|
|
327
321
|
]));
|
|
328
322
|
}
|
|
329
|
-
}), ro = /* @__PURE__ */
|
|
323
|
+
}), ro = /* @__PURE__ */ Ne(so, [["__scopeId", "data-v-272f5e8b"]]);
|
|
330
324
|
function ke([m, h]) {
|
|
331
325
|
return {
|
|
332
326
|
lat: h,
|
|
@@ -380,7 +374,7 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
|
|
|
380
374
|
}).onPrimary(i);
|
|
381
375
|
}
|
|
382
376
|
const $ = (i) => a("update:modelValue", i ? no(i) : null);
|
|
383
|
-
async function
|
|
377
|
+
async function x() {
|
|
384
378
|
if (!y.disabled) {
|
|
385
379
|
if (!n.isGoogleMapReady) {
|
|
386
380
|
p.open({
|
|
@@ -393,12 +387,12 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
|
|
|
393
387
|
M($);
|
|
394
388
|
}
|
|
395
389
|
}
|
|
396
|
-
function
|
|
390
|
+
function P() {
|
|
397
391
|
a("update:modelValue", null);
|
|
398
392
|
}
|
|
399
393
|
return (i, k) => {
|
|
400
394
|
const A = L("FmField"), o = L("FmButton"), e = L("FmFormGroup");
|
|
401
|
-
return S(),
|
|
395
|
+
return S(), q("div", uo, [
|
|
402
396
|
V(e, {
|
|
403
397
|
class: "flex-1",
|
|
404
398
|
"model-value": c(s),
|
|
@@ -411,10 +405,10 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
|
|
|
411
405
|
focused: u.value,
|
|
412
406
|
"helper-text": i.helperText,
|
|
413
407
|
"helper-state": i.helperState,
|
|
414
|
-
onClick: k[0] || (k[0] = (t) =>
|
|
408
|
+
onClick: k[0] || (k[0] = (t) => x())
|
|
415
409
|
}, $e({
|
|
416
410
|
default: N(({ invalid: t }) => [
|
|
417
|
-
i.modelValue && i.modelValue[0] && i.modelValue[1] ? (S(),
|
|
411
|
+
i.modelValue && i.modelValue[0] && i.modelValue[1] ? (S(), q("div", io, [
|
|
418
412
|
V(A, {
|
|
419
413
|
invalid: t,
|
|
420
414
|
class: "fm-typo-en-body-lg-400"
|
|
@@ -424,7 +418,7 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
|
|
|
424
418
|
]),
|
|
425
419
|
_: 2
|
|
426
420
|
}, 1032, ["invalid"])
|
|
427
|
-
])) : (S(),
|
|
421
|
+
])) : (S(), q("div", co, [
|
|
428
422
|
V(o, {
|
|
429
423
|
label: c(_)("inventory.formField.coordinate.addCoordinate"),
|
|
430
424
|
"prepend-icon": "add",
|
|
@@ -446,7 +440,7 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
|
|
|
446
440
|
key: 0,
|
|
447
441
|
"prepend-icon": "delete",
|
|
448
442
|
variant: "tertiary",
|
|
449
|
-
onClick: k[1] || (k[1] = (t) =>
|
|
443
|
+
onClick: k[1] || (k[1] = (t) => P())
|
|
450
444
|
})) : Ae("", !0)
|
|
451
445
|
]);
|
|
452
446
|
};
|
|
@@ -459,7 +453,7 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
|
|
|
459
453
|
},
|
|
460
454
|
emits: ["update:modelValue", "validation-success"],
|
|
461
455
|
setup(m, { expose: h, emit: y }) {
|
|
462
|
-
const a = m, n = y, { t: l } = j(), p =
|
|
456
|
+
const a = m, n = y, { t: l } = j(), p = C({
|
|
463
457
|
get() {
|
|
464
458
|
var o, e;
|
|
465
459
|
return ((e = (o = a.modelValue) == null ? void 0 : o.profile) == null ? void 0 : e.name) ?? "";
|
|
@@ -468,7 +462,7 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
|
|
|
468
462
|
const e = a.modelValue ?? {};
|
|
469
463
|
e.profile ?? (e.profile = {}), e.profile.name = o, n("update:modelValue", e);
|
|
470
464
|
}
|
|
471
|
-
}), s =
|
|
465
|
+
}), s = C({
|
|
472
466
|
get() {
|
|
473
467
|
var o, e;
|
|
474
468
|
return ((e = (o = a.modelValue) == null ? void 0 : o.profile) == null ? void 0 : e.regNo) ?? "";
|
|
@@ -477,7 +471,7 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
|
|
|
477
471
|
const e = a.modelValue ?? {};
|
|
478
472
|
e.profile ?? (e.profile = {}), e.profile.regNo = o, n("update:modelValue", e);
|
|
479
473
|
}
|
|
480
|
-
}), u =
|
|
474
|
+
}), u = C({
|
|
481
475
|
get() {
|
|
482
476
|
var o, e, t;
|
|
483
477
|
return ((t = (e = (o = a.modelValue) == null ? void 0 : o.profile) == null ? void 0 : e.address) == null ? void 0 : t.line1) ?? "";
|
|
@@ -487,7 +481,7 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
|
|
|
487
481
|
const e = a.modelValue ?? {};
|
|
488
482
|
e.profile ?? (e.profile = {}), (t = e.profile).address ?? (t.address = {}), e.profile.address.line1 = o, n("update:modelValue", e);
|
|
489
483
|
}
|
|
490
|
-
}), _ =
|
|
484
|
+
}), _ = C({
|
|
491
485
|
get() {
|
|
492
486
|
var o, e, t;
|
|
493
487
|
return ((t = (e = (o = a.modelValue) == null ? void 0 : o.profile) == null ? void 0 : e.address) == null ? void 0 : t.line2) ?? "";
|
|
@@ -497,7 +491,7 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
|
|
|
497
491
|
const e = a.modelValue ?? {};
|
|
498
492
|
e.profile ?? (e.profile = {}), (t = e.profile).address ?? (t.address = {}), e.profile.address.line2 = o, n("update:modelValue", e);
|
|
499
493
|
}
|
|
500
|
-
}), v =
|
|
494
|
+
}), v = C({
|
|
501
495
|
get() {
|
|
502
496
|
var o, e, t;
|
|
503
497
|
return ((t = (e = (o = a.modelValue) == null ? void 0 : o.profile) == null ? void 0 : e.address) == null ? void 0 : t.city) ?? "";
|
|
@@ -507,7 +501,7 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
|
|
|
507
501
|
const e = a.modelValue ?? {};
|
|
508
502
|
e.profile ?? (e.profile = {}), (t = e.profile).address ?? (t.address = {}), e.profile.address.city = o, n("update:modelValue", e);
|
|
509
503
|
}
|
|
510
|
-
}), M =
|
|
504
|
+
}), M = C({
|
|
511
505
|
get() {
|
|
512
506
|
var o, e, t;
|
|
513
507
|
return ((t = (e = (o = a.modelValue) == null ? void 0 : o.profile) == null ? void 0 : e.address) == null ? void 0 : t.postcode) ?? "";
|
|
@@ -517,7 +511,7 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
|
|
|
517
511
|
const e = a.modelValue ?? {};
|
|
518
512
|
e.profile ?? (e.profile = {}), (t = e.profile).address ?? (t.address = {}), e.profile.address.postcode = o, n("update:modelValue", e);
|
|
519
513
|
}
|
|
520
|
-
}), $ =
|
|
514
|
+
}), $ = C({
|
|
521
515
|
get() {
|
|
522
516
|
var o, e, t;
|
|
523
517
|
return ((t = (e = (o = a.modelValue) == null ? void 0 : o.profile) == null ? void 0 : e.address) == null ? void 0 : t.state) ?? "";
|
|
@@ -527,7 +521,7 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
|
|
|
527
521
|
const e = a.modelValue ?? {};
|
|
528
522
|
e.profile ?? (e.profile = {}), (t = e.profile).address ?? (t.address = {}), e.profile.address.state = o, n("update:modelValue", e);
|
|
529
523
|
}
|
|
530
|
-
}),
|
|
524
|
+
}), x = C({
|
|
531
525
|
get() {
|
|
532
526
|
var o, e, t;
|
|
533
527
|
return ((t = (e = (o = a.modelValue) == null ? void 0 : o.profile) == null ? void 0 : e.address) == null ? void 0 : t.country) ?? "";
|
|
@@ -537,7 +531,7 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
|
|
|
537
531
|
const e = a.modelValue ?? {};
|
|
538
532
|
e.profile ?? (e.profile = {}), (t = e.profile).address ?? (t.address = {}), e.profile.address.country = o, n("update:modelValue", e);
|
|
539
533
|
}
|
|
540
|
-
}),
|
|
534
|
+
}), P = C({
|
|
541
535
|
get() {
|
|
542
536
|
var o, e, t;
|
|
543
537
|
return ((t = (e = (o = a.modelValue) == null ? void 0 : o.profile) == null ? void 0 : e.address) == null ? void 0 : t.coordinates) ?? null;
|
|
@@ -547,7 +541,7 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
|
|
|
547
541
|
const e = a.modelValue ?? {};
|
|
548
542
|
e.profile ?? (e.profile = {}), (t = e.profile).address ?? (t.address = {}), e.profile.address.coordinates = o, n("update:modelValue", e);
|
|
549
543
|
}
|
|
550
|
-
}), i =
|
|
544
|
+
}), i = C({
|
|
551
545
|
get() {
|
|
552
546
|
var o, e;
|
|
553
547
|
return ((e = (o = a.modelValue) == null ? void 0 : o.profile) == null ? void 0 : e.phoneNo) ?? "";
|
|
@@ -556,7 +550,7 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
|
|
|
556
550
|
const e = a.modelValue ?? {};
|
|
557
551
|
e.profile ?? (e.profile = {}), e.profile.phoneNo = o, n("update:modelValue", e);
|
|
558
552
|
}
|
|
559
|
-
}), k =
|
|
553
|
+
}), k = C({
|
|
560
554
|
get() {
|
|
561
555
|
var o, e;
|
|
562
556
|
return ((e = (o = a.modelValue) == null ? void 0 : o.profile) == null ? void 0 : e.email) ?? "";
|
|
@@ -580,7 +574,7 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
|
|
|
580
574
|
(e = (o = A.value) == null ? void 0 : o.resetInputs) == null || e.call(o);
|
|
581
575
|
}
|
|
582
576
|
}), (o, e) => {
|
|
583
|
-
const t = L("FmTextField"),
|
|
577
|
+
const t = L("FmTextField"), B = L("FmPhoneNumber"), w = L("FmForm");
|
|
584
578
|
return S(), z(w, {
|
|
585
579
|
ref_key: "formRef",
|
|
586
580
|
ref: A,
|
|
@@ -653,8 +647,8 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
|
|
|
653
647
|
rules: [c(E)()],
|
|
654
648
|
"label-mark": "required",
|
|
655
649
|
label: c(l)("inventory.warehouse.address.country"),
|
|
656
|
-
modelValue:
|
|
657
|
-
"onUpdate:modelValue": e[7] || (e[7] = (d) =>
|
|
650
|
+
modelValue: x.value,
|
|
651
|
+
"onUpdate:modelValue": e[7] || (e[7] = (d) => x.value = d)
|
|
658
652
|
}, null, 8, ["disabled", "rules", "label", "modelValue"])
|
|
659
653
|
])
|
|
660
654
|
]),
|
|
@@ -664,14 +658,14 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
|
|
|
664
658
|
disabled: o.disabled,
|
|
665
659
|
rules: [c(E)()],
|
|
666
660
|
"label-mark": "required",
|
|
667
|
-
modelValue:
|
|
668
|
-
"onUpdate:modelValue": e[8] || (e[8] = (d) =>
|
|
661
|
+
modelValue: P.value,
|
|
662
|
+
"onUpdate:modelValue": e[8] || (e[8] = (d) => P.value = d)
|
|
669
663
|
}, null, 8, ["disabled", "rules", "modelValue"])
|
|
670
664
|
]),
|
|
671
665
|
g("div", wo, [
|
|
672
666
|
g("div", Vo, U(c(l)("inventory.warehouse.contact.title")), 1),
|
|
673
667
|
g("div", _o, [
|
|
674
|
-
V(
|
|
668
|
+
V(B, {
|
|
675
669
|
disabled: o.disabled,
|
|
676
670
|
rules: [c(E)()],
|
|
677
671
|
"label-mark": "required",
|
|
@@ -703,7 +697,7 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
|
|
|
703
697
|
},
|
|
704
698
|
emits: ["update:show", "submitted"],
|
|
705
699
|
setup(m, { expose: h, emit: y }) {
|
|
706
|
-
const a = m, n = y, l = W(!1), p = ae(), { t: s } = j(), u =
|
|
700
|
+
const a = m, n = y, l = W(!1), p = ae(), { t: s } = j(), u = xe(), _ = C(() => {
|
|
707
701
|
switch (a.mode) {
|
|
708
702
|
case T.READ:
|
|
709
703
|
return "";
|
|
@@ -713,7 +707,7 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
|
|
|
713
707
|
return s("inventory.warehouse.create.title");
|
|
714
708
|
}
|
|
715
709
|
return "";
|
|
716
|
-
}), v =
|
|
710
|
+
}), v = C(() => {
|
|
717
711
|
switch (a.mode) {
|
|
718
712
|
case T.READ:
|
|
719
713
|
return "";
|
|
@@ -738,8 +732,8 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
|
|
|
738
732
|
(e = (o = M.value) == null ? void 0 : o.resetInputs) == null || e.call(o);
|
|
739
733
|
}
|
|
740
734
|
});
|
|
741
|
-
const $ = oe(a, "show"),
|
|
742
|
-
function
|
|
735
|
+
const $ = oe(a, "show"), x = oe(a, "warehouse");
|
|
736
|
+
function P() {
|
|
743
737
|
var o, e;
|
|
744
738
|
(e = (o = M.value) == null ? void 0 : o.validateInputs) == null || e.call(o);
|
|
745
739
|
}
|
|
@@ -758,11 +752,11 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
|
|
|
758
752
|
l.value = !0;
|
|
759
753
|
try {
|
|
760
754
|
await Promise.all([
|
|
761
|
-
u.createWarehouse(
|
|
755
|
+
u.createWarehouse(x.value),
|
|
762
756
|
new Promise((t) => setTimeout(t, 1e3))
|
|
763
757
|
]), p.open({
|
|
764
758
|
title: s("inventory.common.success"),
|
|
765
|
-
message: s("inventory.warehouse.create.success", { name: (e = (o =
|
|
759
|
+
message: s("inventory.warehouse.create.success", { name: (e = (o = x.value) == null ? void 0 : o.profile) == null ? void 0 : e.name }),
|
|
766
760
|
type: "success"
|
|
767
761
|
}), n("update:show", !1), n("submitted");
|
|
768
762
|
} catch (t) {
|
|
@@ -777,7 +771,7 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
|
|
|
777
771
|
}
|
|
778
772
|
async function A() {
|
|
779
773
|
var o, e;
|
|
780
|
-
if (
|
|
774
|
+
if (x.value === null) {
|
|
781
775
|
p.open({
|
|
782
776
|
title: s("inventory.warehouse.update.error.title"),
|
|
783
777
|
message: s("inventory.warehouse.update.error.emptyWarehouse"),
|
|
@@ -788,11 +782,11 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
|
|
|
788
782
|
l.value = !0;
|
|
789
783
|
try {
|
|
790
784
|
await Promise.all([
|
|
791
|
-
u.updateWarehouse(
|
|
785
|
+
u.updateWarehouse(x.value),
|
|
792
786
|
new Promise((t) => setTimeout(t, 1e3))
|
|
793
787
|
]), p.open({
|
|
794
788
|
title: s("inventory.common.success"),
|
|
795
|
-
message: s("inventory.warehouse.update.success", { name: (e = (o =
|
|
789
|
+
message: s("inventory.warehouse.update.success", { name: (e = (o = x.value) == null ? void 0 : o.profile) == null ? void 0 : e.name }),
|
|
796
790
|
type: "success"
|
|
797
791
|
}), n("update:show", !1), n("submitted");
|
|
798
792
|
} catch (t) {
|
|
@@ -806,8 +800,8 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
|
|
|
806
800
|
}
|
|
807
801
|
}
|
|
808
802
|
return (o, e) => {
|
|
809
|
-
const t = L("FmButton"),
|
|
810
|
-
return S(), z(
|
|
803
|
+
const t = L("FmButton"), B = L("FmSideSheet");
|
|
804
|
+
return S(), z(B, {
|
|
811
805
|
header: _.value,
|
|
812
806
|
modelValue: c($),
|
|
813
807
|
"onUpdate:modelValue": e[1] || (e[1] = (w) => we($) ? $.value = w : null),
|
|
@@ -822,8 +816,8 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
|
|
|
822
816
|
class: "w-full",
|
|
823
817
|
ref_key: "formRef",
|
|
824
818
|
ref: M,
|
|
825
|
-
modelValue: c(
|
|
826
|
-
"onUpdate:modelValue": e[0] || (e[0] = (d) => we(
|
|
819
|
+
modelValue: c(x),
|
|
820
|
+
"onUpdate:modelValue": e[0] || (e[0] = (d) => we(x) ? x.value = d : null),
|
|
827
821
|
onValidationSuccess: i,
|
|
828
822
|
key: ((w = o.warehouse) == null ? void 0 : w._id) ?? "",
|
|
829
823
|
disabled: l.value
|
|
@@ -835,7 +829,7 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
|
|
|
835
829
|
V(t, {
|
|
836
830
|
loading: l.value,
|
|
837
831
|
label: v.value,
|
|
838
|
-
onClick:
|
|
832
|
+
onClick: P
|
|
839
833
|
}, null, 8, ["loading", "label"])
|
|
840
834
|
])
|
|
841
835
|
]),
|
|
@@ -843,13 +837,13 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
|
|
|
843
837
|
}, 8, ["header", "modelValue", "dismiss-away"]);
|
|
844
838
|
};
|
|
845
839
|
}
|
|
846
|
-
}),
|
|
840
|
+
}), xo = { class: "flex flex-col py-8" }, Co = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, Fo = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, $o = {
|
|
847
841
|
key: 0,
|
|
848
842
|
class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
|
|
849
|
-
}, Wo = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary line-clamp-3" },
|
|
843
|
+
}, Wo = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary line-clamp-3" }, Uo = /* @__PURE__ */ I({
|
|
850
844
|
__name: "WarehouseView",
|
|
851
845
|
setup(m) {
|
|
852
|
-
const h =
|
|
846
|
+
const h = xe(), y = Be(), a = C(() => h.warehouses), n = Me(), l = ae(), p = W(!1), { t: s } = j();
|
|
853
847
|
te(() => {
|
|
854
848
|
y._currentLocation && A();
|
|
855
849
|
}), ee([() => y._currentLocation], () => {
|
|
@@ -898,7 +892,7 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
|
|
|
898
892
|
n.close();
|
|
899
893
|
}
|
|
900
894
|
}
|
|
901
|
-
const { columnDefs:
|
|
895
|
+
const { columnDefs: x, formatRowData: P } = Ze(
|
|
902
896
|
v,
|
|
903
897
|
M
|
|
904
898
|
);
|
|
@@ -919,7 +913,7 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
|
|
|
919
913
|
p.value = !1;
|
|
920
914
|
}
|
|
921
915
|
}
|
|
922
|
-
const { breakpoints: o } =
|
|
916
|
+
const { breakpoints: o } = Ke(), e = C(() => o.value.xs || o.value.sm), t = C(() => e.value ? 10 : 20), B = qe();
|
|
923
917
|
return (w, d) => {
|
|
924
918
|
const Y = L("FmTable");
|
|
925
919
|
return S(), z(ze, {
|
|
@@ -948,40 +942,40 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
|
|
|
948
942
|
searchable: "",
|
|
949
943
|
"change-location": "",
|
|
950
944
|
search: k.value,
|
|
951
|
-
"onUpdate:search": d[0] || (d[0] = (
|
|
945
|
+
"onUpdate:search": d[0] || (d[0] = (R) => k.value = R)
|
|
952
946
|
}, null, 8, ["search"]),
|
|
953
947
|
(S(), z(Y, {
|
|
954
|
-
style:
|
|
955
|
-
"column-defs": c(
|
|
956
|
-
"row-data": c(
|
|
948
|
+
style: Pe(c(B).tableHeight),
|
|
949
|
+
"column-defs": c(x),
|
|
950
|
+
"row-data": c(P)(a.value),
|
|
957
951
|
"search-value": k.value,
|
|
958
952
|
loading: !c(y)._currentLocation || p.value,
|
|
959
|
-
onRowClick: d[1] || (d[1] = (
|
|
953
|
+
onRowClick: d[1] || (d[1] = (R) => v(R.original.original)),
|
|
960
954
|
key: a.value.length,
|
|
961
955
|
"page-size": t.value
|
|
962
956
|
}, {
|
|
963
|
-
"list-row": N((
|
|
964
|
-
V(
|
|
965
|
-
row:
|
|
957
|
+
"list-row": N((R) => [
|
|
958
|
+
V(je, {
|
|
959
|
+
row: R,
|
|
966
960
|
onRowClick: (r) => v(r.original)
|
|
967
961
|
}, {
|
|
968
962
|
default: N((r) => {
|
|
969
|
-
var f, b,
|
|
963
|
+
var f, b, F, D, G, re, ne, ue, K, ie, de, ce, pe, me, H, fe, he, ye, ve, Z, ge;
|
|
970
964
|
return [
|
|
971
|
-
g("div",
|
|
972
|
-
g("div",
|
|
965
|
+
g("div", xo, [
|
|
966
|
+
g("div", Co, [
|
|
973
967
|
V(c(Q), {
|
|
974
|
-
render: (
|
|
968
|
+
render: (F = (b = (f = r.warehouse) == null ? void 0 : f.column) == null ? void 0 : b.columnDef) == null ? void 0 : F.cell,
|
|
975
969
|
props: (G = (D = r.warehouse) == null ? void 0 : D.getContext) == null ? void 0 : G.call(D)
|
|
976
970
|
}, null, 8, ["render", "props"])
|
|
977
971
|
]),
|
|
978
|
-
g("div",
|
|
972
|
+
g("div", Fo, [
|
|
979
973
|
V(c(Q), {
|
|
980
974
|
render: (ue = (ne = (re = r.contact) == null ? void 0 : re.column) == null ? void 0 : ne.columnDef) == null ? void 0 : ue.cell,
|
|
981
975
|
props: (ie = (K = r.contact) == null ? void 0 : K.getContext) == null ? void 0 : ie.call(K)
|
|
982
976
|
}, null, 8, ["render", "props"])
|
|
983
977
|
]),
|
|
984
|
-
(de =
|
|
978
|
+
(de = R.original) != null && de.email ? (S(), q("div", $o, [
|
|
985
979
|
V(c(Q), {
|
|
986
980
|
render: (me = (pe = (ce = r.email) == null ? void 0 : ce.column) == null ? void 0 : pe.columnDef) == null ? void 0 : me.cell,
|
|
987
981
|
props: (fe = (H = r.email) == null ? void 0 : H.getContext) == null ? void 0 : fe.call(H)
|
|
@@ -1004,10 +998,10 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
|
|
|
1004
998
|
], 2),
|
|
1005
999
|
V(Mo, {
|
|
1006
1000
|
show: u.value.show,
|
|
1007
|
-
"onUpdate:show": d[2] || (d[2] = (
|
|
1001
|
+
"onUpdate:show": d[2] || (d[2] = (R) => u.value.show = R),
|
|
1008
1002
|
warehouse: u.value.warehouse,
|
|
1009
1003
|
mode: u.value.mode,
|
|
1010
|
-
onSubmitted: d[3] || (d[3] = (
|
|
1004
|
+
onSubmitted: d[3] || (d[3] = (R) => A(!0))
|
|
1011
1005
|
}, null, 8, ["show", "warehouse", "mode"])
|
|
1012
1006
|
]),
|
|
1013
1007
|
_: 1
|
|
@@ -1016,5 +1010,5 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
|
|
|
1016
1010
|
}
|
|
1017
1011
|
});
|
|
1018
1012
|
export {
|
|
1019
|
-
|
|
1013
|
+
Uo as default
|
|
1020
1014
|
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { RevisionIdMeta } from '@feedmepos/inventory-core';
|
|
2
|
+
export interface RecentPublish {
|
|
3
|
+
recentJob?: PublishingJob | null;
|
|
4
|
+
publishedRevs?: FdoAdjustmentTemplatePublish['publishedRev'] | null;
|
|
5
|
+
}
|
|
6
|
+
export interface PublishingJob {
|
|
7
|
+
id: string;
|
|
8
|
+
businessId: string;
|
|
9
|
+
outlets: string[];
|
|
10
|
+
completed: string[];
|
|
11
|
+
createdAt: string;
|
|
12
|
+
updatedAt: string;
|
|
13
|
+
}
|
|
14
|
+
export declare const useAdjustmentTemplateApi: () => {
|
|
15
|
+
getRecentPublishingJob(): Promise<RecentPublish>;
|
|
16
|
+
startNewPublish(): Promise<PublishingJob>;
|
|
17
|
+
getTemplate(id: string): Promise<FdoAdjustmentTemplate & RevisionIdMeta>;
|
|
18
|
+
readTemplates(): Promise<(FdoAdjustmentTemplate & RevisionIdMeta)[]>;
|
|
19
|
+
createTemplate(template: Omit<FdoAdjustmentTemplate, '_id'>): Promise<FdoAdjustmentTemplate>;
|
|
20
|
+
updateTemplate(template: FdoAdjustmentTemplate & RevisionIdMeta): Promise<FdoAdjustmentTemplate>;
|
|
21
|
+
deleteTemplate(template: FdoAdjustmentTemplate & RevisionIdMeta): Promise<any>;
|
|
22
|
+
importTemplates(templates: Array<(FdoAdjustmentTemplate & RevisionIdMeta) | Omit<FdoAdjustmentTemplate, '_id'>>): Promise<any>;
|
|
23
|
+
};
|
package/dist/api/bill.d.ts
CHANGED
|
@@ -329,7 +329,7 @@ export declare const useBillApi: () => {
|
|
|
329
329
|
} | null | undefined;
|
|
330
330
|
calculatorVersion?: number | null | undefined;
|
|
331
331
|
slot: string;
|
|
332
|
-
status: "DRAFT" | "
|
|
332
|
+
status: "DRAFT" | "COMPLETED" | "BILLED" | "REFUNDED" | "VOIDED" | "PREORDER";
|
|
333
333
|
items: Record<string, {
|
|
334
334
|
createdBy?: {
|
|
335
335
|
id: string;
|
|
@@ -1010,7 +1010,7 @@ export declare const useBillApi: () => {
|
|
|
1010
1010
|
} | null | undefined;
|
|
1011
1011
|
calculatorVersion?: number | null | undefined;
|
|
1012
1012
|
slot: string;
|
|
1013
|
-
status: "DRAFT" | "
|
|
1013
|
+
status: "DRAFT" | "COMPLETED" | "BILLED" | "REFUNDED" | "VOIDED" | "PREORDER";
|
|
1014
1014
|
items: Record<string, {
|
|
1015
1015
|
createdBy?: {
|
|
1016
1016
|
id: string;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { RevisionIdMeta } from '@feedmepos/inventory-core';
|
|
2
|
+
export declare const useClosingDraftApi: () => {
|
|
3
|
+
getDraft(id: string): Promise<FdoClosingDraft & RevisionIdMeta>;
|
|
4
|
+
readDrafts(): Promise<(FdoClosingDraft & RevisionIdMeta)[]>;
|
|
5
|
+
runOperation(operation: FdtoClosingDraftOperation): Promise<void>;
|
|
6
|
+
};
|
package/dist/api/closing.d.ts
CHANGED
package/dist/api/netsuite.d.ts
CHANGED
|
@@ -64,7 +64,7 @@ export declare const useNetSuiteApi: () => {
|
|
|
64
64
|
}[];
|
|
65
65
|
realm: string;
|
|
66
66
|
}>;
|
|
67
|
-
|
|
67
|
+
syncTransferOrder(type: string, locationId: string, poId: string, porId?: string): Promise<{
|
|
68
68
|
accessToken?: string | null | undefined;
|
|
69
69
|
syncedAt?: string | null | undefined;
|
|
70
70
|
restlet?: {
|