@feedmepos/mf-inventory-portal 1.3.7-dev.2 → 1.3.7
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-Bt9_9LW3.js → App-D1-fT3jF.js} +3 -3
- package/dist/ApprovalView-0FbsslVD.js +226 -0
- package/dist/{BindingsDialog-lLNdP2RG.js → BindingsDialog-DeavyPY-.js} +5 -5
- package/dist/{BindingsPicker-BwxdoHu-.js → BindingsPicker-BGzhKq8G.js} +3 -3
- package/dist/{BindingsTable-C8cf9nV_.js → BindingsTable-Dr9hWkE1.js} +5 -5
- package/dist/{ClosingDraftView-CHB815at.js → ClosingDraftView-6gwWEWWB.js} +57 -57
- package/dist/{ClosingHistoryView-BQS52wLi.js → ClosingHistoryView-D4rNnlsq.js} +4 -4
- package/dist/{ClosingTemplateView-7o5xDvYi.js → ClosingTemplateView-DxCLH1GH.js} +16 -16
- package/dist/{DeliveryOrderPrintPreview-DBWYDmhP.js → DeliveryOrderPrintPreview-D-XeZX-z.js} +17 -17
- package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-hX9rZGHP.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DeoaPLQm.js} +14 -14
- package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-DLo83JRe.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-BMhSHZ3Z.js} +2 -2
- package/dist/{FmMultiselectDialog-CX6Q05kY.js → FmMultiselectDialog-BQZmTWDb.js} +2 -2
- package/dist/{FmMultiselectDialog-eZLmEoMJ.js → FmMultiselectDialog-DJFi54mG.js} +1 -1
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-CNP7o7p-.js → FmUnitInput.vue_vue_type_script_setup_true_lang-DAivpdPp.js} +4 -4
- package/dist/{ImportView-5F1k_NOx.js → ImportView-DPQY0ELT.js} +6 -6
- package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-COyKYsPf.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-DeVYXEzb.js} +1 -1
- package/dist/{IngredientGroupView-1kwOZDub.js → IngredientGroupView-5AuPbMDz.js} +7 -7
- package/dist/{IngredientsView-L50oDR5B.js → IngredientsView-qMotWYnL.js} +17 -17
- package/dist/{IntegrationView-CwBluyeW.js → IntegrationView-CVdwhNTA.js} +13 -13
- package/dist/{InventoryBindingForm-28KU0Y69.js → InventoryBindingForm-B5KUYKIu.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-DAxmcGtJ.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-pbyMU879.js} +5 -5
- package/dist/{InventoryBindingSummary-hjZLd6je.js → InventoryBindingSummary-Bm3A2kmC.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-GqT3S9zo.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-NnoVkA8W.js} +1 -1
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-6jv1aHW-.js → PremiumBadge.vue_vue_type_script_setup_true_lang-Dp4gFbs5.js} +1 -1
- package/dist/PublishView-DOIiAeDK.js +208 -0
- package/dist/{PurchaseOrderPrintPreview-C_AaZuFs.js → PurchaseOrderPrintPreview-BE-8EJFv.js} +12 -12
- package/dist/ReceiveRequestView-ur3OeHuv.js +2802 -0
- package/dist/{RecipeView-B39YtOhH.js → RecipeView-CM-BrVSe.js} +21 -22
- package/dist/{StockView-DGO3Xf6j.js → StockView-DDqlms0m.js} +20 -21
- package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-b6jr57r-.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-CcQ6bBWG.js} +1 -1
- package/dist/{SupplierView-Bfo4AYFs.js → SupplierView-CM2PrtHi.js} +14 -14
- package/dist/{SurchargeView-CPuDx3I8.js → SurchargeView-q2NfASMH.js} +8 -8
- package/dist/{SystemTrailDialog.vue_vue_type_script_setup_true_lang-EmbaZT8X.js → SystemTrailDialog.vue_vue_type_script_setup_true_lang-BbZQZQTQ.js} +2 -2
- package/dist/{TemplatePublishDialog.vue_vue_type_script_setup_true_lang-CMWRgrTV.js → TemplatePublishDialog.vue_vue_type_script_setup_true_lang-Bp3joqMK.js} +67 -60
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-GhRFdMoW.js +3521 -0
- package/dist/{TransferTemplateView-DH1BkbUP.js → TransferTemplateView-B26H_T9Q.js} +19 -20
- package/dist/{UnitCostHistoryView-DonGH8na.js → UnitCostHistoryView-BzumRVdx.js} +4 -4
- package/dist/{UnitDisplayControl.vue_vue_type_script_setup_true_lang-CW3kofME.js → UnitDisplayControl.vue_vue_type_script_setup_true_lang-CfWpv2Mv.js} +4 -4
- package/dist/{UnitView-CFBdZjSP.js → UnitView-Cxfg--TU.js} +9 -9
- package/dist/{WarehouseView-gdd1ou_Y.js → WarehouseView-CvoafTrd.js} +7 -7
- package/dist/{WastageTemplateView-BoMqb-zR.js → WastageTemplateView-Bqd4Wp3d.js} +16 -16
- package/dist/{app-QEDlYnlN.js → app-CrrDFeMj.js} +4557 -4711
- package/dist/app.d.ts +0 -32
- package/dist/app.js +2 -2
- package/dist/{closing-template-CbHN15AQ.js → closing-template-Ew74NLQj.js} +1 -1
- package/dist/{component-kqxARxvM.js → component-DpCUABT3.js} +21 -30
- package/dist/components/row-action.enum.d.ts +0 -3
- package/dist/{date2-Z-I7Kd_W.js → date2-Bklbk2g-.js} +4 -4
- package/dist/{dayjs.min-D4CmdyEZ.js → dayjs.min-B463GIlc.js} +1 -1
- package/dist/{decimal-C-T875Hm.js → decimal-Dm2vbfDq.js} +2 -2
- package/dist/defineDeepModel-SD5OUepJ.js +19 -0
- package/dist/{duplicate-template-CmTg7BGs.js → duplicate-template-CR79OmLy.js} +1 -1
- package/dist/{export-B1VAPZRx.js → export-CQJcxfPC.js} +1 -1
- package/dist/{inventory-core-dart.default-ugZJdof5.js → feature-CZHvliez.js} +1395 -322
- package/dist/{format-time-from-id-DZ_PAFci.js → format-time-from-id-61ydd8RS.js} +1 -1
- package/dist/{format-unit-display-DlODRa7k.js → format-unit-display-BLtW28yU.js} +13 -13
- package/dist/{import-export.helper-DVCiPtHv.js → import-export.helper-uhFwjH6X.js} +6 -6
- package/dist/{index-rghVMuZK.js → index-CouegIcG.js} +1 -1
- package/dist/{index-BHqcJDf6.js → index-Dx5HvWR_.js} +1 -1
- package/dist/{index-BZxwdVW1.js → index-uA6bkf1x.js} +3 -3
- package/dist/{lodash-CgDY9U7s.js → lodash-CjyamSgJ.js} +1 -1
- package/dist/{lz-string-DNoTxtCy.js → lz-string-BbZdMrTL.js} +1 -1
- package/dist/{netsuite-B64xGIt5.js → netsuite-2v3F8ILe.js} +9 -60
- package/dist/{number-Bqy4-9rV.js → number-BYbxsJHr.js} +3 -3
- package/dist/{purchase-order-template-BxowjjVQ.js → purchase-order-template-s1AiueV_.js} +1 -1
- package/dist/router/name.d.ts +0 -2
- package/dist/{row-action.enum-Co_O4qD9.js → row-action.enum-BcW_L_nE.js} +3 -11
- package/dist/{rules-BkK6oJzC.js → rules-C7L-LFOd.js} +2 -2
- package/dist/{stock-lXNLY2TO.js → stock-CvYOcgWb.js} +3 -3
- package/dist/{stock-CedueOcQ.js → stock-D2s88pz1.js} +1 -1
- package/dist/stores/feature.d.ts +0 -2
- package/dist/stores/integration/netsuite.d.ts +1 -1
- package/dist/style.css +1 -1
- package/dist/{supplier-BxEW6DYL.js → supplier-DmobM7mD.js} +2 -2
- package/dist/{surcharge-_zxlHhpJ.js → surcharge-BdZOVfi0.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{use-ingredient-select-dialog-BQFTqO6q.js → use-ingredient-select-dialog-BUCJBHjV.js} +2 -2
- package/dist/{use-inventory-binding-dialog-BnJKIhqC.js → use-inventory-binding-dialog-DiN1hBIm.js} +2 -2
- package/dist/{use-template-enabled-locations-2-Ch5vC3Ux.js → use-template-enabled-locations-CmH6I2cy.js} +33 -21
- package/dist/views/receive-request/components/transfer-form/TransferFormWithController.vue.d.ts +21 -21
- package/dist/views/receive-request/composables/use-process-purchase-order.d.ts +21 -21
- package/dist/views/receive-request/composables/use-receive-request-form.d.ts +129 -129
- package/dist/views/receive-request/composables/use-receive-request-table.d.ts +150 -154
- package/dist/views/transfer-template/components/transfer-template-form/composables/use-template-enabled-locations.d.ts +7 -93
- package/dist/vue-i18n-D0Q6LFcu.js +2365 -0
- package/dist/{xlsx-BlvEsbYy.js → xlsx-D4PML26z.js} +398 -398
- package/dist/{xlsx.util-B4ae3AUU.js → xlsx.util-BWLcCmO_.js} +1 -1
- package/package.json +3 -8
- package/dist/ApprovalView-BAFatrEE.js +0 -241
- package/dist/IntegrationExplorerView-BVJ3qSYS.js +0 -22254
- package/dist/PublishView-kBqlO98G.js +0 -234
- package/dist/ReceiveRequestView-sebwwuaH.js +0 -2817
- package/dist/SettingsView-CFoKuaMo.js +0 -695
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-_5fogvJl.js +0 -3790
- package/dist/api/integration-sync-log.d.ts +0 -47
- package/dist/api/netsuite-explorer.d.ts +0 -51
- package/dist/defineDeepModel-Ds_lq_kg.js +0 -19
- package/dist/feature-_WJViVjR.js +0 -1081
- package/dist/modules/print-template/api/print-template.d.ts +0 -29
- package/dist/modules/print-template/components/BlockConfigPanel.vue.d.ts +0 -19
- package/dist/modules/print-template/components/CustomPrintTemplatePreview.vue.d.ts +0 -25
- package/dist/modules/print-template/components/PrintTemplateEditorDialog.vue.d.ts +0 -45
- package/dist/modules/print-template/components/TemplatePreview.vue.d.ts +0 -22
- package/dist/modules/print-template/composables/print-po-with-template.d.ts +0 -25
- package/dist/modules/print-template/definitions/block-definitions.d.ts +0 -88
- package/dist/modules/print-template/definitions/predefined-templates.d.ts +0 -22
- package/dist/modules/print-template/definitions/template-renderer.d.ts +0 -17
- package/dist/modules/print-template/index.d.ts +0 -11
- package/dist/modules/print-template/store/print-template.d.ts +0 -170
- package/dist/modules/print-template/types/print-data.d.ts +0 -52
- package/dist/modules/print-template/utils/sanitize-html.d.ts +0 -32
- package/dist/predefined-templates-B5qmOdnZ.js +0 -4542
- package/dist/views/integration/components/IntegrationSyncLogTab.vue.d.ts +0 -15
- package/dist/views/integration/composables/use-integration-sync-log.d.ts +0 -45
- package/dist/views/integration-explorer/IntegrationExplorerView.vue.d.ts +0 -2
- package/dist/views/integration-explorer/composables/use-explorer-tab.d.ts +0 -126
- package/dist/views/integration-explorer/netsuite/ExplorerRecordSyncLog.vue.d.ts +0 -17
- package/dist/views/integration-explorer/netsuite/ExplorerRecordToolbar.vue.d.ts +0 -201
- package/dist/views/integration-explorer/netsuite/ExplorerSystemNote.vue.d.ts +0 -15
- package/dist/views/integration-explorer/netsuite/JsonViewer.vue.d.ts +0 -15
- package/dist/views/integration-explorer/netsuite/NetSuiteExplorerView.vue.d.ts +0 -2
- package/dist/views/integration-explorer/netsuite/inventoryTransfer/InventoryTransferSideSheet.vue.d.ts +0 -7
- package/dist/views/integration-explorer/netsuite/inventoryTransfer/InventoryTransferView.vue.d.ts +0 -39
- package/dist/views/integration-explorer/netsuite/items/AssemblyItemSideSheet.vue.d.ts +0 -7
- package/dist/views/integration-explorer/netsuite/items/InventoryItemSideSheet.vue.d.ts +0 -7
- package/dist/views/integration-explorer/netsuite/items/ItemsView.vue.d.ts +0 -2
- package/dist/views/integration-explorer/netsuite/items/ServiceItemSideSheet.vue.d.ts +0 -7
- package/dist/views/integration-explorer/netsuite/orders/ExplorerOrderDetailSideSheet.vue.d.ts +0 -7
- package/dist/views/integration-explorer/netsuite/orders/OrdersView.vue.d.ts +0 -39
- package/dist/views/integration-explorer/netsuite/orders/PurchaseOrderSideSheet.vue.d.ts +0 -7
- package/dist/views/integration-explorer/netsuite/orders/SyncNetsuiteButton.vue.d.ts +0 -29
- package/dist/views/integration-explorer/netsuite/orders/TransferOrderSideSheet.vue.d.ts +0 -7
- package/dist/views/settings/SettingsView.vue.d.ts +0 -2
- package/dist/views/transfer-template/components/transfer-template-form/composables/use-template-enabled-locations-2.d.ts +0 -13
- package/dist/vue-i18n-taYcBeKI.js +0 -2365
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { defineComponent as Ve, ref as
|
|
1
|
+
import { defineComponent as Ve, ref as Y, computed as U, onMounted as et, resolveComponent as O, openBlock as A, createElementBlock as R, Fragment as ce, createTextVNode as ue, createBlock as pe, withCtx as q, createElementVNode as n, toDisplayString as W, unref as v, createVNode as _, createCommentVNode as se, h as S, watch as He, renderList as je, reactive as Lt, isRef as _t, normalizeClass as Ie, normalizeStyle as xt, Teleport as Et, mergeProps as zt } from "vue";
|
|
2
2
|
import { u as Ht, _ as Ot } from "./SingleColumnLayout.vue_vue_type_script_setup_true_lang-CkPuJQWF.js";
|
|
3
3
|
import { useCoreStore as Dt, useI18n as tt } from "@feedmepos/mf-common";
|
|
4
|
-
import { useSnackbar as at, useDialog as
|
|
5
|
-
import { o as Gt, u as Ge,
|
|
4
|
+
import { useSnackbar as at, useDialog as Kt, components as ke, useProxiedModel as Yt, useBreakpoints as qt } from "@feedmepos/ui-library";
|
|
5
|
+
import { o as Gt, u as Ge, K as Z, y as H, s as At, v as Ue, L as _e, D as Oe, c as Qt, a as wt } from "./app-CrrDFeMj.js";
|
|
6
6
|
import { defineStore as St, storeToRefs as Wt } from "pinia";
|
|
7
|
-
import {
|
|
8
|
-
import { R as Jt } from "./rules-
|
|
9
|
-
import { e as nt, a as Xe, t as Xt, c as Re, l as $t, m as Ft, j as Bt, k as Tt, o as te } from "./number-
|
|
10
|
-
import { b as ea, d as ta } from "./xlsx.util-
|
|
11
|
-
import { u as jt } from "./stock-
|
|
12
|
-
import { u as ot } from "./stock-
|
|
13
|
-
import { D as bt, R as Te } from "./row-action.enum-
|
|
14
|
-
import { c as aa } from "./component-
|
|
15
|
-
import { f as na } from "./format-time-from-id-
|
|
16
|
-
import { _ as oa } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-
|
|
7
|
+
import { d as Ye, e as Ct, f as Zt, a as De } from "./date2-Bklbk2g-.js";
|
|
8
|
+
import { R as Jt } from "./rules-C7L-LFOd.js";
|
|
9
|
+
import { e as nt, a as Xe, t as Xt, c as Re, l as $t, m as Ft, j as Bt, k as Tt, o as te } from "./number-BYbxsJHr.js";
|
|
10
|
+
import { b as ea, d as ta } from "./xlsx.util-BWLcCmO_.js";
|
|
11
|
+
import { u as jt } from "./stock-CvYOcgWb.js";
|
|
12
|
+
import { u as ot } from "./stock-D2s88pz1.js";
|
|
13
|
+
import { D as bt, R as Te } from "./row-action.enum-BcW_L_nE.js";
|
|
14
|
+
import { c as aa } from "./component-DpCUABT3.js";
|
|
15
|
+
import { f as na } from "./format-time-from-id-61ydd8RS.js";
|
|
16
|
+
import { _ as oa } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-BMhSHZ3Z.js";
|
|
17
17
|
import { E as sa } from "./empty-placeholder-wf6-BWE8.js";
|
|
18
18
|
import { F as ht } from "./FmAdminBadge-BOEV93D3.js";
|
|
19
|
-
import { u as ra } from "./vue-i18n-
|
|
20
|
-
import { F as la } from "./decimal-
|
|
19
|
+
import { u as ra } from "./vue-i18n-D0Q6LFcu.js";
|
|
20
|
+
import { F as la } from "./decimal-Dm2vbfDq.js";
|
|
21
21
|
import { _ as ia, F as ze } from "./TableActionableRow.vue_vue_type_script_setup_true_lang-Ca_eYa8-.js";
|
|
22
22
|
const Qe = Gt((c, s) => {
|
|
23
23
|
function e() {
|
|
@@ -64,7 +64,7 @@ const Qe = Gt((c, s) => {
|
|
|
64
64
|
onFinished: { type: Function }
|
|
65
65
|
},
|
|
66
66
|
setup(c) {
|
|
67
|
-
const s = c, e =
|
|
67
|
+
const s = c, e = Y(), u = Qe(), k = at(), h = Y(!1), r = Y(null), L = Y(!1), V = U(() => {
|
|
68
68
|
switch (s.action) {
|
|
69
69
|
case Z.enum.approveDraft:
|
|
70
70
|
return "Approve";
|
|
@@ -96,7 +96,7 @@ const Qe = Gt((c, s) => {
|
|
|
96
96
|
});
|
|
97
97
|
const x = U({
|
|
98
98
|
get() {
|
|
99
|
-
return r.value === null ? "" :
|
|
99
|
+
return r.value === null ? "" : Ye(r.value);
|
|
100
100
|
},
|
|
101
101
|
set(d) {
|
|
102
102
|
if (d) {
|
|
@@ -117,7 +117,7 @@ const Qe = Gt((c, s) => {
|
|
|
117
117
|
r.value = null;
|
|
118
118
|
}
|
|
119
119
|
}), G = U(() => r.value ? r.value.getTime() > (/* @__PURE__ */ new Date()).getTime() : !1);
|
|
120
|
-
async function
|
|
120
|
+
async function K(d) {
|
|
121
121
|
h.value = !0;
|
|
122
122
|
try {
|
|
123
123
|
d ? await u.runOperationV1({
|
|
@@ -155,7 +155,7 @@ const Qe = Gt((c, s) => {
|
|
|
155
155
|
const j = O("FmLabel"), D = O("FmDatePicker"), Q = O("FmTimePicker"), y = O("FmTextField"), m = O("FmButton"), F = O("FmForm");
|
|
156
156
|
return L.value ? (A(), pe(F, {
|
|
157
157
|
key: 1,
|
|
158
|
-
onValidationSuccess:
|
|
158
|
+
onValidationSuccess: K,
|
|
159
159
|
class: "flex flex-col gap-32",
|
|
160
160
|
disabled: h.value
|
|
161
161
|
}, {
|
|
@@ -175,7 +175,7 @@ const Qe = Gt((c, s) => {
|
|
|
175
175
|
_(D, {
|
|
176
176
|
modelValue: x.value,
|
|
177
177
|
"onUpdate:modelValue": t[0] || (t[0] = (z) => x.value = z),
|
|
178
|
-
max: v(
|
|
178
|
+
max: v(Ye)(/* @__PURE__ */ new Date())
|
|
179
179
|
}, null, 8, ["modelValue", "max"]),
|
|
180
180
|
_(j, { class: "fm-typo-en-body-lg-600" }, {
|
|
181
181
|
default: q(() => t[7] || (t[7] = [
|
|
@@ -231,12 +231,12 @@ function ga(c, s, e, u, k, h, r) {
|
|
|
231
231
|
const L = It(c), V = u ?? L, I = $t(V, s), x = s.amount === 0 ? null : Ft(I, {
|
|
232
232
|
...s,
|
|
233
233
|
amount: Math.abs(s.amount)
|
|
234
|
-
}), M = x ? nt(x, ya) : null, G = ((ne = c.sku.defaultCost) == null ? void 0 : ne.costPerUnit) ?? { amount: 0, precision: 0 },
|
|
234
|
+
}), M = x ? nt(x, ya) : null, G = ((ne = c.sku.defaultCost) == null ? void 0 : ne.costPerUnit) ?? { amount: 0, precision: 0 }, K = Number(H.toFormatString({ value: G })), d = ((me = (le = c.sku.defaultCost) == null ? void 0 : le.measurement) == null ? void 0 : me.conversion) ?? {
|
|
235
235
|
amount: 1,
|
|
236
236
|
precision: 0
|
|
237
237
|
}, t = Number(
|
|
238
238
|
H.toFormatString({ value: d })
|
|
239
|
-
), j = k ? Number(H.toFormatString({ value: k })) : 0, D = Number(H.toFormatString({ value: s })), Q = Number(H.toFormatString({ value: V })), y = Q - D, m = y *
|
|
239
|
+
), j = k ? Number(H.toFormatString({ value: k })) : 0, D = Number(H.toFormatString({ value: s })), Q = Number(H.toFormatString({ value: V })), y = Q - D, m = y * K / t, F = Q * K / t, z = D * K / t, ae = {};
|
|
240
240
|
return r && h && r.forEach((g) => {
|
|
241
241
|
const P = { amount: 0, precision: 0 }, J = h[g];
|
|
242
242
|
if (J) {
|
|
@@ -264,7 +264,7 @@ function ga(c, s, e, u, k, h, r) {
|
|
|
264
264
|
value: Tt(M, 2)
|
|
265
265
|
})
|
|
266
266
|
) : null,
|
|
267
|
-
costPerUnit:
|
|
267
|
+
costPerUnit: K,
|
|
268
268
|
opening: j,
|
|
269
269
|
...ae,
|
|
270
270
|
varianceQty: y,
|
|
@@ -388,9 +388,9 @@ function _a(c, s, e) {
|
|
|
388
388
|
V.forEach((g) => {
|
|
389
389
|
r.has(g) && (I.push(g), r.delete(g));
|
|
390
390
|
});
|
|
391
|
-
const x = Array.from(r).sort(), M = [...I, ...x], G = [...c.items, ...c.negativeStockItems ?? []],
|
|
391
|
+
const x = Array.from(r).sort(), M = [...I, ...x], G = [...c.items, ...c.negativeStockItems ?? []], K = Pt(G), d = G.map((g) => {
|
|
392
392
|
var xe, Ae, be;
|
|
393
|
-
const P = ((xe = u.get(g.sku._id)) == null ? void 0 : xe[0]) ?? va, J = ((Ae =
|
|
393
|
+
const P = ((xe = u.get(g.sku._id)) == null ? void 0 : xe[0]) ?? va, J = ((Ae = K == null ? void 0 : K.get(g.sku._id)) == null ? void 0 : Ae[0]) ?? [], ee = h.get(g.sku._id), X = L.get(g.sku._id);
|
|
394
394
|
return ga(
|
|
395
395
|
g,
|
|
396
396
|
P,
|
|
@@ -440,7 +440,7 @@ const xa = { class: "flex flex-col" }, Da = {
|
|
|
440
440
|
setup(c) {
|
|
441
441
|
const s = c;
|
|
442
442
|
ot();
|
|
443
|
-
const e =
|
|
443
|
+
const e = Y(!1), u = Y(null), k = Y(!1);
|
|
444
444
|
et(() => {
|
|
445
445
|
if (s.draft.effectiveAt)
|
|
446
446
|
u.value = new Date(s.draft.effectiveAt);
|
|
@@ -452,7 +452,7 @@ const xa = { class: "flex flex-col" }, Da = {
|
|
|
452
452
|
});
|
|
453
453
|
const h = U({
|
|
454
454
|
get() {
|
|
455
|
-
return u.value === null ? "" :
|
|
455
|
+
return u.value === null ? "" : Ye(u.value);
|
|
456
456
|
},
|
|
457
457
|
set(I) {
|
|
458
458
|
if (I) {
|
|
@@ -477,7 +477,7 @@ const xa = { class: "flex flex-col" }, Da = {
|
|
|
477
477
|
e.value = !0, s.onFinished(u.value.toISOString());
|
|
478
478
|
}
|
|
479
479
|
return (I, x) => {
|
|
480
|
-
const M = O("FmLabel"), G = O("FmDatePicker"),
|
|
480
|
+
const M = O("FmLabel"), G = O("FmDatePicker"), K = O("FmTimePicker"), d = O("FmButton"), t = O("FmForm");
|
|
481
481
|
return k.value ? (A(), pe(t, {
|
|
482
482
|
key: 1,
|
|
483
483
|
onValidationSuccess: V,
|
|
@@ -507,7 +507,7 @@ const xa = { class: "flex flex-col" }, Da = {
|
|
|
507
507
|
_(G, {
|
|
508
508
|
modelValue: h.value,
|
|
509
509
|
"onUpdate:modelValue": x[0] || (x[0] = (j) => h.value = j),
|
|
510
|
-
max: v(
|
|
510
|
+
max: v(Ye)(/* @__PURE__ */ new Date())
|
|
511
511
|
}, null, 8, ["modelValue", "max"]),
|
|
512
512
|
_(M, { class: "fm-typo-en-body-lg-600" }, {
|
|
513
513
|
default: q(() => x[4] || (x[4] = [
|
|
@@ -515,7 +515,7 @@ const xa = { class: "flex flex-col" }, Da = {
|
|
|
515
515
|
])),
|
|
516
516
|
_: 1
|
|
517
517
|
}),
|
|
518
|
-
_(
|
|
518
|
+
_(K, {
|
|
519
519
|
modelValue: r.value,
|
|
520
520
|
"onUpdate:modelValue": x[1] || (x[1] = (j) => r.value = j)
|
|
521
521
|
}, null, 8, ["modelValue"]),
|
|
@@ -545,7 +545,7 @@ const xa = { class: "flex flex-col" }, Da = {
|
|
|
545
545
|
}), qe = St(
|
|
546
546
|
"closingDraftActions",
|
|
547
547
|
function() {
|
|
548
|
-
const s =
|
|
548
|
+
const s = Kt(), e = at(), u = ot(), k = Qe(), h = jt(), r = Y(!1), L = Y();
|
|
549
549
|
function V(y) {
|
|
550
550
|
const m = {
|
|
551
551
|
draft: y
|
|
@@ -611,7 +611,7 @@ const xa = { class: "flex flex-col" }, Da = {
|
|
|
611
611
|
}
|
|
612
612
|
});
|
|
613
613
|
}
|
|
614
|
-
function
|
|
614
|
+
function K(y, m) {
|
|
615
615
|
s.open({
|
|
616
616
|
title: "Mark draft as failed",
|
|
617
617
|
contentComponent: Je,
|
|
@@ -694,7 +694,7 @@ const xa = { class: "flex flex-col" }, Da = {
|
|
|
694
694
|
closeDraftDialog: t,
|
|
695
695
|
approveDraft: M,
|
|
696
696
|
rejectDraft: G,
|
|
697
|
-
markAsFailed:
|
|
697
|
+
markAsFailed: K,
|
|
698
698
|
syncDraft: d,
|
|
699
699
|
exportDraft: x,
|
|
700
700
|
refreshBalance: j,
|
|
@@ -705,7 +705,7 @@ const xa = { class: "flex flex-col" }, Da = {
|
|
|
705
705
|
};
|
|
706
706
|
}
|
|
707
707
|
);
|
|
708
|
-
function
|
|
708
|
+
function Ke(c) {
|
|
709
709
|
switch (c) {
|
|
710
710
|
case "DRAFT":
|
|
711
711
|
return "fm-status-badge-draft";
|
|
@@ -720,7 +720,7 @@ function Ye(c) {
|
|
|
720
720
|
const Sa = St(
|
|
721
721
|
"closingDraftTable",
|
|
722
722
|
function() {
|
|
723
|
-
const { t: s } = tt(), e = Dt(), u = qe(), k =
|
|
723
|
+
const { t: s } = tt(), e = Dt(), u = qe(), k = Y(new Array()), h = Y(!1), r = Ge(), L = Qe();
|
|
724
724
|
async function V() {
|
|
725
725
|
if (k.value = [], !!r._currentLocation) {
|
|
726
726
|
h.value = !0;
|
|
@@ -848,7 +848,7 @@ const Sa = St(
|
|
|
848
848
|
S(
|
|
849
849
|
"div",
|
|
850
850
|
{
|
|
851
|
-
class: ["fm-status-badge",
|
|
851
|
+
class: ["fm-status-badge", Ke("FAILED")]
|
|
852
852
|
},
|
|
853
853
|
"Rejected"
|
|
854
854
|
)
|
|
@@ -860,7 +860,7 @@ const Sa = St(
|
|
|
860
860
|
S(
|
|
861
861
|
"div",
|
|
862
862
|
{
|
|
863
|
-
class: ["fm-status-badge",
|
|
863
|
+
class: ["fm-status-badge", Ke("PROCESSING")]
|
|
864
864
|
},
|
|
865
865
|
"Updated"
|
|
866
866
|
)
|
|
@@ -872,7 +872,7 @@ const Sa = St(
|
|
|
872
872
|
S(
|
|
873
873
|
"div",
|
|
874
874
|
{
|
|
875
|
-
class: ["fm-status-badge",
|
|
875
|
+
class: ["fm-status-badge", Ke(j)]
|
|
876
876
|
},
|
|
877
877
|
Ue(j)
|
|
878
878
|
)
|
|
@@ -987,17 +987,17 @@ const Sa = St(
|
|
|
987
987
|
} : null;
|
|
988
988
|
})) ?? []).filter((P) => P !== null);
|
|
989
989
|
}
|
|
990
|
-
),
|
|
990
|
+
), K = U(() => {
|
|
991
991
|
var $;
|
|
992
992
|
return x.value ? (($ = G.value) == null ? void 0 : $.filter((w) => !M.value[w.id]).map((w) => w.id)) ?? [] : [];
|
|
993
993
|
}), d = U({
|
|
994
994
|
get: () => V.show,
|
|
995
995
|
set: ($) => I("update:show", $)
|
|
996
|
-
}), t =
|
|
996
|
+
}), t = Y(1), j = () => t.value > 1, D = () => t.value > 2, Q = () => !1;
|
|
997
997
|
function y($) {
|
|
998
|
-
return $ === 1 ? x.value : $ === 2 ?
|
|
998
|
+
return $ === 1 ? x.value : $ === 2 ? K.value.length == 0 : !1;
|
|
999
999
|
}
|
|
1000
|
-
const m = U(() => !x.value ||
|
|
1000
|
+
const m = U(() => !x.value || K.value.length > 0);
|
|
1001
1001
|
function F($) {
|
|
1002
1002
|
let w = $ + 1;
|
|
1003
1003
|
for (; w <= 3 && y(w); ) w++;
|
|
@@ -1022,7 +1022,7 @@ const Sa = St(
|
|
|
1022
1022
|
$ && t.value === 1 && (t.value = F(1));
|
|
1023
1023
|
}
|
|
1024
1024
|
), He(
|
|
1025
|
-
() =>
|
|
1025
|
+
() => K.value.length,
|
|
1026
1026
|
($) => {
|
|
1027
1027
|
$ === 0 && t.value === 2 && (t.value = F(2));
|
|
1028
1028
|
}
|
|
@@ -1090,7 +1090,7 @@ const Sa = St(
|
|
|
1090
1090
|
complete: D
|
|
1091
1091
|
}, {
|
|
1092
1092
|
default: q(() => [
|
|
1093
|
-
n("div", ja, W(G.value.length > 0 ? `${v(r)("inventory.closing.approval.step.negativeItems.resolveMessage")} [${v(r)("inventory.closing.approval.step.negativeItems.itemsHeader")} (${
|
|
1093
|
+
n("div", ja, W(G.value.length > 0 ? `${v(r)("inventory.closing.approval.step.negativeItems.resolveMessage")} [${v(r)("inventory.closing.approval.step.negativeItems.itemsHeader")} (${K.value.length})]` : v(r)("inventory.closing.approval.step.negativeItems.noItemsMessage")), 1),
|
|
1094
1094
|
t.value === 2 ? (A(), R("div", Ia, [
|
|
1095
1095
|
G.value.length > 0 ? (A(), R("div", Pa, [
|
|
1096
1096
|
w[2] || (w[2] = n("div", { class: "fm-typo-en-body-md-600 mb-2" }, null, -1)),
|
|
@@ -1167,7 +1167,7 @@ const Sa = St(
|
|
|
1167
1167
|
}, 8, ["modelValue"]);
|
|
1168
1168
|
};
|
|
1169
1169
|
}
|
|
1170
|
-
}), Oa = { class: "w-full flex flex-col gap-32" },
|
|
1170
|
+
}), Oa = { class: "w-full flex flex-col gap-32" }, Ka = { class: "flex justify-between" }, Ya = { class: "flex" }, qa = { class: "grid grid-cols-[repeat(4,1fr)] xs:flex xs:flex-col sm:flex sm:flex-col gap-8" }, Ga = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Qa = { class: "flex gap-1" }, Wa = { class: "fm-typo-en-body-lg-600" }, Za = { class: "flex flex-col gap-16" }, Ja = { class: "flex items-center" }, Xa = {
|
|
1171
1171
|
key: 0,
|
|
1172
1172
|
class: "flex gap-8"
|
|
1173
1173
|
}, en = {
|
|
@@ -1211,12 +1211,12 @@ const Sa = St(
|
|
|
1211
1211
|
return l === "MYR" ? "RM" : l;
|
|
1212
1212
|
});
|
|
1213
1213
|
jt();
|
|
1214
|
-
const k = qe(), h =
|
|
1214
|
+
const k = qe(), h = Yt(e, "show"), r = Y(!1), L = Y(!1), V = Y(!1), I = Y(new Array()), x = Y(new Array()), M = Y([]), G = ot(), K = Qe(), d = at(), t = wt(), j = Ge(), D = Lt({}), Q = U(() => new Set(
|
|
1215
1215
|
t.skus.filter((l) => {
|
|
1216
1216
|
var a;
|
|
1217
1217
|
return D[(a = l.customAttributes) == null ? void 0 : a.tag];
|
|
1218
1218
|
}).map((l) => l._id)
|
|
1219
|
-
)), y = s, m =
|
|
1219
|
+
)), y = s, m = Y({
|
|
1220
1220
|
templateItem: !0,
|
|
1221
1221
|
nonTemplateItem: !0
|
|
1222
1222
|
}), F = U(() => {
|
|
@@ -1315,7 +1315,7 @@ const Sa = St(
|
|
|
1315
1315
|
try {
|
|
1316
1316
|
await G.recalculation.scheduleCalculateStockSnapshotAtDate(o, e.draft._id);
|
|
1317
1317
|
let C = null;
|
|
1318
|
-
for (let N = 0; N < f && (C = await
|
|
1318
|
+
for (let N = 0; N < f && (C = await K.getDraft(e.draft._id).delayed(b), C._rev === i); N++)
|
|
1319
1319
|
;
|
|
1320
1320
|
if (!C || C._rev === i) {
|
|
1321
1321
|
d.open({
|
|
@@ -1761,7 +1761,7 @@ const Sa = St(
|
|
|
1761
1761
|
}
|
|
1762
1762
|
}
|
|
1763
1763
|
];
|
|
1764
|
-
}), Ae = U(() => xe.value.map((l) => l.size ?? 0).reduce((l, a) => l + a)), be =
|
|
1764
|
+
}), Ae = U(() => xe.value.map((l) => l.size ?? 0).reduce((l, a) => l + a)), be = Y(""), Pe = U(() => {
|
|
1765
1765
|
var p, o;
|
|
1766
1766
|
const l = ((o = (p = e.draft) == null ? void 0 : p.negativeStockItems) == null ? void 0 : o.reduce(
|
|
1767
1767
|
(i, f) => (i[f.sku._id] = f, i),
|
|
@@ -1908,7 +1908,7 @@ const Sa = St(
|
|
|
1908
1908
|
label: "Action history",
|
|
1909
1909
|
value: "history"
|
|
1910
1910
|
}
|
|
1911
|
-
], we =
|
|
1911
|
+
], we = Y($e[0]), Fe = U(() => {
|
|
1912
1912
|
var o, i, f;
|
|
1913
1913
|
const l = ((o = e.draft) == null ? void 0 : o.activityLogs) ?? [], a = ((i = e.draft) == null ? void 0 : i.rejectionHistory) ?? [];
|
|
1914
1914
|
for (const b of a)
|
|
@@ -1946,7 +1946,7 @@ const Sa = St(
|
|
|
1946
1946
|
]
|
|
1947
1947
|
})
|
|
1948
1948
|
);
|
|
1949
|
-
}), Me =
|
|
1949
|
+
}), Me = Y(!1), Ne = Y(!1), st = U(() => {
|
|
1950
1950
|
var l;
|
|
1951
1951
|
return ((l = e.draft) == null ? void 0 : l.status) !== _e.enum.DRAFT ? "Status is not draft." : null;
|
|
1952
1952
|
});
|
|
@@ -2049,11 +2049,11 @@ const Sa = St(
|
|
|
2049
2049
|
default: q(() => {
|
|
2050
2050
|
var T, oe;
|
|
2051
2051
|
return [
|
|
2052
|
-
n("div",
|
|
2052
|
+
n("div", Ka, [
|
|
2053
2053
|
a[11] || (a[11] = n("div", { class: "fm-typo-en-body-lg-600" }, "Closing summary", -1)),
|
|
2054
|
-
n("div",
|
|
2054
|
+
n("div", Ya, [
|
|
2055
2055
|
n("div", {
|
|
2056
|
-
class: Ie(["fm-status-badge", v(
|
|
2056
|
+
class: Ie(["fm-status-badge", v(Ke)(((T = l.draft) == null ? void 0 : T.status) ?? "DRAFT")])
|
|
2057
2057
|
}, W(v(Ue)(((oe = l.draft) == null ? void 0 : oe.status) ?? "")), 3)
|
|
2058
2058
|
])
|
|
2059
2059
|
]),
|
|
@@ -2299,8 +2299,8 @@ const Sa = St(
|
|
|
2299
2299
|
setup(c) {
|
|
2300
2300
|
const { t: s } = tt(), { viewDraft: e } = qe(), { viewClosingDraftProps: u, viewClosingDraftShow: k } = Wt(qe()), h = Ge(), r = Sa(), L = Ht(), { breakpoints: V } = qt();
|
|
2301
2301
|
h.watchLocation(r.fetchDrafts);
|
|
2302
|
-
const I = U(() => r.loading), x =
|
|
2303
|
-
function
|
|
2302
|
+
const I = U(() => r.loading), x = Y(""), M = U(() => V.value.xs || V.value.sm), G = U(() => M.value ? 10 : 20);
|
|
2303
|
+
function K(j) {
|
|
2304
2304
|
switch (j) {
|
|
2305
2305
|
case "refresh":
|
|
2306
2306
|
return r.fetchDrafts();
|
|
@@ -2328,7 +2328,7 @@ const Sa = St(
|
|
|
2328
2328
|
_(Ot, {
|
|
2329
2329
|
title: v(s)("inventory.closing.draft.title"),
|
|
2330
2330
|
actions: t.value,
|
|
2331
|
-
"onClick:action":
|
|
2331
|
+
"onClick:action": K
|
|
2332
2332
|
}, {
|
|
2333
2333
|
default: q(() => [
|
|
2334
2334
|
n("div", {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { defineComponent as le, ref as g, computed as V, watch as me, resolveComponent as $, openBlock as c, createElementBlock as y, createBlock as H, withModifiers as fe, createCommentVNode as k, createVNode as b, withCtx as I, createElementVNode as n, toDisplayString as i, unref as r, Fragment as z, createTextVNode as Z, renderList as ne, normalizeClass as pe, h as X, Teleport as ge } from "vue";
|
|
2
2
|
import { _ as he } from "./SingleColumnLayout.vue_vue_type_script_setup_true_lang-CkPuJQWF.js";
|
|
3
3
|
import { useI18n as se, useCoreStore as be } from "@feedmepos/mf-common";
|
|
4
|
-
import { D as P, H as ce, a as _e, u as ke } from "./app-
|
|
4
|
+
import { D as P, H as ce, a as _e, u as ke } from "./app-CrrDFeMj.js";
|
|
5
5
|
import { F as de } from "./FmAdminBadge-BOEV93D3.js";
|
|
6
|
-
import { _ as xe } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-
|
|
6
|
+
import { _ as xe } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-BMhSHZ3Z.js";
|
|
7
7
|
import { useSnackbar as re, useDialog as De } from "@feedmepos/ui-library";
|
|
8
|
-
import { u as ye } from "./stock-
|
|
9
|
-
import { _ as Se } from "./UnitDisplayControl.vue_vue_type_script_setup_true_lang-
|
|
8
|
+
import { u as ye } from "./stock-D2s88pz1.js";
|
|
9
|
+
import { _ as Se } from "./UnitDisplayControl.vue_vue_type_script_setup_true_lang-CfWpv2Mv.js";
|
|
10
10
|
function ie(B) {
|
|
11
11
|
return Math.floor(B.getTime() / 1e3) * 1e3;
|
|
12
12
|
}
|
|
@@ -4,24 +4,24 @@ import { useI18n as W, useCoreStore as de } from "@feedmepos/mf-common";
|
|
|
4
4
|
import { useDialog as pe, useDialogChild as Ze, useSnackbar as ce, FmButtonVariant as oe, components as Y, FmAdvancedSort as et, useProxiedModel as tt, useBreakpoints as nt } from "@feedmepos/ui-library";
|
|
5
5
|
import { defineStore as Ve, storeToRefs as Ne } from "pinia";
|
|
6
6
|
import { F as G } from "./form-mode.enum-BKiNVH6A.js";
|
|
7
|
-
import { a as me } from "./closing-template-
|
|
8
|
-
import { u as fe, c as Ue, a as ve, n as ot } from "./app-
|
|
9
|
-
import { t as re, a as ge, d as ye, s as Le, r as st } from "./xlsx.util-
|
|
7
|
+
import { a as me } from "./closing-template-Ew74NLQj.js";
|
|
8
|
+
import { u as fe, c as Ue, a as ve, n as ot } from "./app-CrrDFeMj.js";
|
|
9
|
+
import { t as re, a as ge, d as ye, s as Le, r as st } from "./xlsx.util-BWLcCmO_.js";
|
|
10
10
|
import { F as lt } from "./FmDroppableField-J0xUsOTV.js";
|
|
11
|
-
import { f as Be, a as le } from "./date2-
|
|
12
|
-
import { D as se, R as z } from "./row-action.enum-
|
|
13
|
-
import { c as at } from "./component-
|
|
14
|
-
import { f as rt } from "./format-time-from-id-
|
|
15
|
-
import { _ as it } from "./TemplatePublishDialog.vue_vue_type_script_setup_true_lang-
|
|
16
|
-
import { u as ct } from "./netsuite-
|
|
17
|
-
import { u as mt } from "./duplicate-template-
|
|
18
|
-
import { _ as ut } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-
|
|
19
|
-
import { R as dt, A as pt } from "./rules-
|
|
20
|
-
import { u as ft } from "./use-ingredient-select-dialog-
|
|
21
|
-
import { d as vt } from "./defineDeepModel-
|
|
11
|
+
import { f as Be, a as le } from "./date2-Bklbk2g-.js";
|
|
12
|
+
import { D as se, R as z } from "./row-action.enum-BcW_L_nE.js";
|
|
13
|
+
import { c as at } from "./component-DpCUABT3.js";
|
|
14
|
+
import { f as rt } from "./format-time-from-id-61ydd8RS.js";
|
|
15
|
+
import { _ as it } from "./TemplatePublishDialog.vue_vue_type_script_setup_true_lang-Bp3joqMK.js";
|
|
16
|
+
import { u as ct } from "./netsuite-2v3F8ILe.js";
|
|
17
|
+
import { u as mt } from "./duplicate-template-CR79OmLy.js";
|
|
18
|
+
import { _ as ut } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-BMhSHZ3Z.js";
|
|
19
|
+
import { R as dt, A as pt } from "./rules-C7L-LFOd.js";
|
|
20
|
+
import { u as ft } from "./use-ingredient-select-dialog-BUCJBHjV.js";
|
|
21
|
+
import { d as vt } from "./defineDeepModel-SD5OUepJ.js";
|
|
22
22
|
import { F as X, _ as ze } from "./TableActionableRow.vue_vue_type_script_setup_true_lang-Ca_eYa8-.js";
|
|
23
|
-
import { u as gt } from "./use-template-enabled-locations-
|
|
24
|
-
import { _ as yt } from "./SystemTrailDialog.vue_vue_type_script_setup_true_lang-
|
|
23
|
+
import { u as gt } from "./use-template-enabled-locations-CmH6I2cy.js";
|
|
24
|
+
import { _ as yt } from "./SystemTrailDialog.vue_vue_type_script_setup_true_lang-BbZQZQTQ.js";
|
|
25
25
|
import { _ as ht } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
26
26
|
const ue = Ve(
|
|
27
27
|
"closingTemplateTable",
|
package/dist/{DeliveryOrderPrintPreview-DBWYDmhP.js → DeliveryOrderPrintPreview-D-XeZX-z.js}
RENAMED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { defineComponent as x, computed as g, ref as h, onMounted as _, openBlock as i, createElementBlock as u, createElementVNode as t, createTextVNode as n, toDisplayString as l, createCommentVNode as d, Fragment as o, renderList as p, normalizeClass as
|
|
2
|
-
import { useRoute as
|
|
3
|
-
import {
|
|
4
|
-
import { L as k } from "./lz-string-
|
|
1
|
+
import { defineComponent as x, computed as g, ref as h, onMounted as _, openBlock as i, createElementBlock as u, createElementVNode as t, createTextVNode as n, toDisplayString as l, createCommentVNode as d, Fragment as o, renderList as p, normalizeClass as w } from "vue";
|
|
2
|
+
import { useRoute as c } from "vue-router";
|
|
3
|
+
import { O as b } from "./app-CrrDFeMj.js";
|
|
4
|
+
import { L as k } from "./lz-string-BbZdMrTL.js";
|
|
5
5
|
import { _ as N } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
6
|
-
const P = { class: "purchase-box" }, A = { valign: "bottom" }, E = { class: "sub-header" },
|
|
6
|
+
const P = { class: "purchase-box" }, A = { valign: "bottom" }, E = { class: "sub-header" }, O = ["src"], C = { style: { "padding-left": "10px" } }, D = { class: "address" }, R = { class: "text-right" }, S = {
|
|
7
7
|
key: 0,
|
|
8
8
|
class: "subtitle"
|
|
9
|
-
}, F = { class: "sub-header" }, T = { class: "caption" }, I = { class: "address" }, q = { class: "text-right" }, L = { class: "sub-header" }, U = { class: "address" }, B = { class: "purchase-body" }, H = { class: "text-left" }, M = { class: "text-left" }, V = { class: "text-left" }, J = { class: "text-left" },
|
|
9
|
+
}, F = { class: "sub-header" }, T = { class: "caption" }, I = { class: "address" }, q = { class: "text-right" }, L = { class: "sub-header" }, U = { class: "address" }, B = { class: "purchase-body" }, H = { class: "text-left" }, M = { class: "text-left" }, V = { class: "text-left" }, J = { class: "text-left" }, j = { class: "text-left" }, z = { class: "text-right" }, G = { key: 0 }, Q = {
|
|
10
10
|
key: 1,
|
|
11
11
|
style: { "padding-top": "30px" }
|
|
12
12
|
}, Z = { valign: "bottom" }, K = { class: "header" }, W = { class: "caption" }, X = {
|
|
@@ -31,14 +31,14 @@ const P = { class: "purchase-box" }, A = { valign: "bottom" }, E = { class: "sub
|
|
|
31
31
|
return "#7A7A7A";
|
|
32
32
|
}
|
|
33
33
|
});
|
|
34
|
-
const y =
|
|
34
|
+
const y = c().query.data;
|
|
35
35
|
if (!y)
|
|
36
36
|
throw new Error("No print data provided. Please try printing again.");
|
|
37
37
|
const m = k.decompressFromEncodedURIComponent(y);
|
|
38
38
|
if (!m)
|
|
39
39
|
throw new Error("Failed to decompress print data. Please try printing again.");
|
|
40
40
|
const s = h(JSON.parse(m));
|
|
41
|
-
return _(
|
|
41
|
+
return _(() => {
|
|
42
42
|
setTimeout(() => window.print(), 500);
|
|
43
43
|
}), (rt, e) => (i(), u("div", P, [
|
|
44
44
|
t("table", null, [
|
|
@@ -49,12 +49,12 @@ const P = { class: "purchase-box" }, A = { valign: "bottom" }, E = { class: "sub
|
|
|
49
49
|
class: "logo",
|
|
50
50
|
src: s.value.logo,
|
|
51
51
|
alt: "logo"
|
|
52
|
-
}, null, 8,
|
|
52
|
+
}, null, 8, O)
|
|
53
53
|
])
|
|
54
54
|
]),
|
|
55
55
|
t("td", null, [
|
|
56
|
-
t("div",
|
|
57
|
-
t("div",
|
|
56
|
+
t("div", C, [
|
|
57
|
+
t("div", D, [
|
|
58
58
|
t("div", null, [
|
|
59
59
|
n(l(s.value.businessName), 1),
|
|
60
60
|
e[0] || (e[0] = t("br", null, null, -1)),
|
|
@@ -161,22 +161,22 @@ const P = { class: "purchase-box" }, A = { valign: "bottom" }, E = { class: "sub
|
|
|
161
161
|
t("tbody", null, [
|
|
162
162
|
(i(!0), u(o, null, p(s.value.items, (r, a) => (i(), u("tr", { key: a }, [
|
|
163
163
|
t("td", J, l(a + 1), 1),
|
|
164
|
-
t("td",
|
|
164
|
+
t("td", j, l(r.description), 1),
|
|
165
165
|
t("td", {
|
|
166
|
-
class:
|
|
166
|
+
class: w(["text-right", {
|
|
167
167
|
"text-green-5": r.received == r.quantity,
|
|
168
168
|
"text-danger": !r.received,
|
|
169
169
|
"text-warning": r.received != r.quantity
|
|
170
170
|
}])
|
|
171
171
|
}, l(r.received + "/" + r.quantity), 3),
|
|
172
|
-
t("td",
|
|
172
|
+
t("td", z, l(r.unit), 1)
|
|
173
173
|
]))), 128))
|
|
174
174
|
])
|
|
175
175
|
])
|
|
176
176
|
]),
|
|
177
177
|
e[24] || (e[24] = t("hr", null, null, -1)),
|
|
178
|
-
s.value.remark ? (i(), u("div",
|
|
179
|
-
s.value.deliveryOrders.length > 0 ? (i(), u("div",
|
|
178
|
+
s.value.remark ? (i(), u("div", G, "Remark: " + l(s.value.remark), 1)) : d("", !0),
|
|
179
|
+
s.value.deliveryOrders.length > 0 ? (i(), u("div", Q, [
|
|
180
180
|
e[21] || (e[21] = t("hr", null, null, -1)),
|
|
181
181
|
e[22] || (e[22] = n(" Delivery History: ")),
|
|
182
182
|
(i(!0), u(o, null, p(s.value.deliveryOrders, (r, a) => (i(), u("div", {
|
|
@@ -208,7 +208,7 @@ const P = { class: "purchase-box" }, A = { valign: "bottom" }, E = { class: "sub
|
|
|
208
208
|
])) : d("", !0)
|
|
209
209
|
]));
|
|
210
210
|
}
|
|
211
|
-
}), at = /* @__PURE__ */ N(et, [["__scopeId", "data-v-
|
|
211
|
+
}), at = /* @__PURE__ */ N(et, [["__scopeId", "data-v-0cd3744b"]]);
|
|
212
212
|
export {
|
|
213
213
|
at as default
|
|
214
214
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { u as B, t as h,
|
|
2
|
-
import { u as z } from "./supplier-
|
|
3
|
-
import { computed as u, defineComponent as A, mergeModels as q, useModel as D, ref as H, resolveComponent as g, openBlock as y, createElementBlock as O, normalizeStyle as U, createElementVNode as M, createVNode as $, withCtx as x, createBlock as I, createCommentVNode as
|
|
4
|
-
import { F as j } from "./FmMultiselectDialog-
|
|
1
|
+
import { u as B, t as h, P as E, T as R, B as V } from "./app-CrrDFeMj.js";
|
|
2
|
+
import { u as z } from "./supplier-DmobM7mD.js";
|
|
3
|
+
import { computed as u, defineComponent as A, mergeModels as q, useModel as D, ref as H, resolveComponent as g, openBlock as y, createElementBlock as O, normalizeStyle as U, createElementVNode as M, createVNode as $, withCtx as x, createBlock as I, createCommentVNode as P, Fragment as W, renderList as Y, unref as N } from "vue";
|
|
4
|
+
import { F as j } from "./FmMultiselectDialog-BQZmTWDb.js";
|
|
5
5
|
function _(o) {
|
|
6
6
|
const c = R.safeParse(o);
|
|
7
7
|
if (c.success) return c.data;
|
|
@@ -52,7 +52,7 @@ function G(o, c, p = !1, f = !1) {
|
|
|
52
52
|
set(s) {
|
|
53
53
|
const e = o() ?? {};
|
|
54
54
|
if (d.value === h.enum.purchase) {
|
|
55
|
-
const k = (f ? r.suppliers : r.businessSuppliers).find((
|
|
55
|
+
const k = (f ? r.suppliers : r.businessSuppliers).find((C) => C._id === s);
|
|
56
56
|
c({
|
|
57
57
|
...e,
|
|
58
58
|
supplier: k ? _(k) : e.supplier
|
|
@@ -76,7 +76,7 @@ function G(o, c, p = !1, f = !1) {
|
|
|
76
76
|
return (p ? n.allLocations.filter(
|
|
77
77
|
(t) => t.doc._id !== n.currentLocation.doc._id
|
|
78
78
|
) : n.allLocations).filter((t) => s || t.acceptRequest).map(S);
|
|
79
|
-
}),
|
|
79
|
+
}), w = u(() => {
|
|
80
80
|
if (d.value === h.enum.purchase) {
|
|
81
81
|
const e = b.value.map((t) => ({
|
|
82
82
|
label: t.name,
|
|
@@ -105,7 +105,7 @@ function G(o, c, p = !1, f = !1) {
|
|
|
105
105
|
});
|
|
106
106
|
return {
|
|
107
107
|
transferLocationModel: v,
|
|
108
|
-
transferLocationOptions:
|
|
108
|
+
transferLocationOptions: w,
|
|
109
109
|
locationOptionsTypePurchase: F,
|
|
110
110
|
locationOptionsTypePurchaseLocationLevel: b,
|
|
111
111
|
locationOptionsTypeTransfer: l,
|
|
@@ -155,24 +155,24 @@ const J = { class: "overflow-y-auto h-full pb-8" }, ee = /* @__PURE__ */ A({
|
|
|
155
155
|
variant: "tertiary",
|
|
156
156
|
"prepend-icon": "close",
|
|
157
157
|
onClick: v[0] || (v[0] = (l) => p.value = "")
|
|
158
|
-
})) :
|
|
158
|
+
})) : P("", !0)
|
|
159
159
|
]),
|
|
160
160
|
_: 1
|
|
161
161
|
}, 8, ["modelValue"])
|
|
162
162
|
], 512),
|
|
163
163
|
M("div", J, [
|
|
164
|
-
(y(!0), O(W, null, Y(r.value, (l,
|
|
165
|
-
key:
|
|
164
|
+
(y(!0), O(W, null, Y(r.value, (l, w) => (y(), I(F, {
|
|
165
|
+
key: w,
|
|
166
166
|
label: l.label,
|
|
167
167
|
sublabel: l.sublabel,
|
|
168
|
-
"model-value": N(
|
|
169
|
-
onClick: () => d.handleItemChange(N(
|
|
168
|
+
"model-value": N(V)(d.modelValue, l.value),
|
|
169
|
+
onClick: () => d.handleItemChange(N(V)(d.modelValue, l.value), l),
|
|
170
170
|
onVnodeMounted: (T) => {
|
|
171
171
|
var s, e;
|
|
172
|
-
return N(
|
|
172
|
+
return N(V)(d.modelValue, l.value) && ((s = T.el) == null || s.scrollIntoView({ behavior: "instant", block: "end" }), (e = T.el) == null || e.scrollIntoView({ behavior: "smooth", block: "center" })), void 0;
|
|
173
173
|
}
|
|
174
174
|
}, null, 8, ["label", "sublabel", "model-value", "onClick", "onVnodeMounted"]))), 128)),
|
|
175
|
-
r.value.length ?
|
|
175
|
+
r.value.length ? P("", !0) : (y(), I(F, {
|
|
176
176
|
key: 0,
|
|
177
177
|
disabled: "",
|
|
178
178
|
label: "No options available"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as S, computed as w, ref as P, resolveComponent as h, openBlock as n, createElementBlock as p, createVNode as x, withCtx as $, createElementVNode as b, Fragment as V, createTextVNode as R, toDisplayString as D, unref as r, createBlock as v, createCommentVNode as k, renderList as N, watch as O, mergeModels as H, useModel as I, renderSlot as W, normalizeClass as A } from "vue";
|
|
2
2
|
import { useCoreStore as q, useI18n as Q } from "@feedmepos/mf-common";
|
|
3
|
-
import { u as G } from "./app-
|
|
4
|
-
import {
|
|
3
|
+
import { u as G } from "./app-CrrDFeMj.js";
|
|
4
|
+
import { d as T } from "./date2-Bklbk2g-.js";
|
|
5
5
|
import { useBreakpoints as J } from "@feedmepos/ui-library";
|
|
6
6
|
import { u as K } from "./SingleColumnLayout.vue_vue_type_script_setup_true_lang-CkPuJQWF.js";
|
|
7
7
|
import { D as z } from "./app-DiX-EfV6.js";
|
|
@@ -3,8 +3,8 @@ var Pe = (F, i, l) => i in F ? He(F, i, { enumerable: !0, configurable: !0, writ
|
|
|
3
3
|
var ve = (F, i, l) => Pe(F, typeof i != "symbol" ? i + "" : i, l);
|
|
4
4
|
import { defineComponent as be, computed as x, ref as $, watch as ge, openBlock as d, createElementBlock as f, normalizeStyle as G, Fragment as V, renderList as O, renderSlot as ke, createCommentVNode as D, useSlots as Oe, onMounted as Ue, onUnmounted as Ee, reactive as ee, resolveComponent as T, createElementVNode as B, createVNode as k, createTextVNode as Ke, toDisplayString as P, unref as L, createSlots as je, withCtx as w, createBlock as I, resolveDynamicComponent as pe, normalizeClass as fe, withModifiers as Ne, Transition as Ge } from "vue";
|
|
5
5
|
import { useDialogChild as ze } from "@feedmepos/ui-library";
|
|
6
|
-
import { B as he } from "./app-
|
|
7
|
-
import { d as Je } from "./index-
|
|
6
|
+
import { B as he } from "./app-CrrDFeMj.js";
|
|
7
|
+
import { d as Je } from "./index-Dx5HvWR_.js";
|
|
8
8
|
/* empty css */
|
|
9
9
|
import { useI18n as Re } from "@feedmepos/mf-common";
|
|
10
10
|
import { P as We, J as ye, D as Qe } from "./app-DiX-EfV6.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineStore as p } from "pinia";
|
|
2
2
|
import { useDialog as y } from "@feedmepos/ui-library";
|
|
3
3
|
import { useI18n as v } from "@feedmepos/mf-common";
|
|
4
|
-
import { a } from "./FmMultiselectDialog-
|
|
4
|
+
import { a } from "./FmMultiselectDialog-BQZmTWDb.js";
|
|
5
5
|
import { h as S } from "vue";
|
|
6
6
|
const w = p("inventoryMultiSelectDialog", () => {
|
|
7
7
|
const l = y(), { t: n } = v();
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent as ie, mergeModels as W, useModel as le, computed as v, ref as B, watch as E, onBeforeUnmount as ae, inject as ue, resolveComponent as b, openBlock as d, createElementBlock as y, createElementVNode as u, createVNode as h, withCtx as F, renderSlot as G, normalizeClass as j, toDisplayString as _, withDirectives as re, vModelText as me, createCommentVNode as I, createTextVNode as ce, createBlock as U, Fragment as de, renderList as pe } from "vue";
|
|
2
|
-
import { l as fe } from "./lodash-
|
|
3
|
-
import { y as D } from "./app-
|
|
4
|
-
import { g as O, c as ve, a as M, t as be, e as ye, m as he, b as Me, u as ge } from "./number-
|
|
5
|
-
import { I as R, a as xe } from "./rules-
|
|
2
|
+
import { l as fe } from "./lodash-CjyamSgJ.js";
|
|
3
|
+
import { y as D } from "./app-CrrDFeMj.js";
|
|
4
|
+
import { g as O, c as ve, a as M, t as be, e as ye, m as he, b as Me, u as ge } from "./number-BYbxsJHr.js";
|
|
5
|
+
import { I as R, a as xe } from "./rules-C7L-LFOd.js";
|
|
6
6
|
import "@feedmepos/ui-library";
|
|
7
7
|
function H() {
|
|
8
8
|
return {
|