@feedmepos/mf-inventory-portal 1.2.53 → 1.2.55-dev.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{App-BsfuPPE8.js → App-Dr4bSbWV.js} +75 -70
- package/dist/{ApprovalView-DpYZ90XA.js → ApprovalView-BrUi6das.js} +34 -34
- package/dist/{BindingsDialog-BV-jLs8M.js → BindingsDialog-DtsEDaFx.js} +2 -2
- package/dist/{BindingsPicker-B1hTzIMf.js → BindingsPicker-BDSimsxV.js} +2 -2
- package/dist/{BindingsTable-LQX4W3ew.js → BindingsTable-ArpmNkQm.js} +4 -4
- package/dist/{ClosingDraftView-BmeO2Js_.js → ClosingDraftView-D7qz1YGt.js} +19 -18
- package/dist/{ClosingHistoryView--gDKiBmN.js → ClosingHistoryView-ND9smQRb.js} +27 -27
- package/dist/{ClosingTemplateView-CeH6R1_D.js → ClosingTemplateView--1tzOPIu.js} +18 -17
- package/dist/{DeliveryOrderPrintPreview-uf9jap78.js → DeliveryOrderPrintPreview-Ctv1Qp_a.js} +1 -1
- package/dist/FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-lA-iPoWZ.js +188 -0
- package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-mZtCQnzs.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-UJewH4Il.js} +12 -12
- package/dist/FmMultiselectDialog-Br5_D-b5.js +618 -0
- package/dist/{FmMultiselectDialog-B9qB5-LO.js → FmMultiselectDialog-BrJlUxMZ.js} +1 -1
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-27q4Oj88.js → FmUnitInput.vue_vue_type_script_setup_true_lang-BvIdnKjl.js} +3 -3
- package/dist/{ImportView-D4k9msYw.js → ImportView-fEnHrPWZ.js} +7 -7
- package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-BYoVIP2q.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-DVELkyVY.js} +1 -1
- package/dist/{IngredientGroupView-C20V_hvY.js → IngredientGroupView-B1owkM3C.js} +108 -107
- package/dist/{IngredientsView-DzsB-qrK.js → IngredientsView-BTKXnnw5.js} +126 -125
- package/dist/{IntegrationView-DFSUowj3.js → IntegrationView-C2jarXxh.js} +80 -80
- package/dist/{InventoryBindingForm-Dlnx6-L7.js → InventoryBindingForm-Gq8XfKbC.js} +1 -1
- package/dist/InventoryBindingForm.vue_vue_type_script_setup_true_lang-BVkTXQvA.js +403 -0
- package/dist/{InventoryBindingSummary-CgpN2hF0.js → InventoryBindingSummary-CqQu65hi.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-tv-itLDe.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DIukT297.js} +1 -1
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-3BHMqt41.js → PremiumBadge.vue_vue_type_script_setup_true_lang-D2aU4Ij2.js} +2 -2
- package/dist/{PublishView-BtMTxpSh.js → PublishView-CBYg-KST.js} +3 -3
- package/dist/{PurchaseOrderPrintPreview-DGCQUgF5.js → PurchaseOrderPrintPreview-C_jrGksW.js} +1 -1
- package/dist/ReceiveRequestView-iawt5dnN.js +2915 -0
- package/dist/{RecipeView-CPnCVxz2.js → RecipeView-Dv5BTxLT.js} +83 -82
- package/dist/{StockView-DYHl_yAy.js → StockView-oSkKCORB.js} +113 -112
- package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-Desv7VmF.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-BJ3gnpTq.js} +1 -1
- package/dist/{SupplierView-BtKlc0mc.js → SupplierView-tipIYgX7.js} +28 -27
- package/dist/SurchargeView-CW1lsyEC.js +460 -0
- package/dist/{SystemTrailDialog.vue_vue_type_script_setup_true_lang-C2fsq7Kj.js → SystemTrailDialog.vue_vue_type_script_setup_true_lang-B3FZqxjr.js} +2 -2
- package/dist/TableActionableRow.vue_vue_type_script_setup_true_lang-Ca_eYa8-.js +84 -0
- package/dist/{TemplatePublishDialog.vue_vue_type_script_setup_true_lang-C6utSuyH.js → TemplatePublishDialog.vue_vue_type_script_setup_true_lang-D86rTw7c.js} +17 -17
- package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-BMhCFnlM.js → TransferDetails.vue_vue_type_script_setup_true_lang-cGzs-dHw.js} +15 -15
- package/dist/{TransferTemplateView-D0_xhGDZ.js → TransferTemplateView-dSJSgnil.js} +82 -81
- package/dist/{UnitView-BAX2GeM3.js → UnitView-VHi5WMrF.js} +20 -19
- package/dist/{WarehouseView-CccEHOZw.js → WarehouseView-DLZaux-w.js} +21 -20
- package/dist/{WastageTemplateView-CMNtM1FX.js → WastageTemplateView-KyvwCkdu.js} +67 -66
- package/dist/api/netsuite.d.ts +8 -0
- package/dist/api/stock-estimate.d.ts +1 -0
- package/dist/api/surcharge.d.ts +31 -0
- package/dist/{app-D_U5i9il.js → app-Cq2T5z21.js} +4511 -4405
- package/dist/app-DiX-EfV6.js +8167 -0
- package/dist/app.d.ts +52 -0
- package/dist/app.js +1 -1
- package/dist/{closing-template-Bl0MMVQ3.js → closing-template-TwdeC6qT.js} +1 -1
- package/dist/component-DpCUABT3.js +82 -0
- package/dist/components/FmInventoryTableToolbar.vue.d.ts +8 -0
- package/dist/components/FmMultiselectDialogProps.d.ts +5 -0
- package/dist/{date2-bUTaCyeL.js → date2-Dunl1OWI.js} +1 -1
- package/dist/{dayjs.min-CsC_tYI1.js → dayjs.min-D_81k3gd.js} +26 -26
- package/dist/{decimal-DLO8y7yi.js → decimal-B9DLzi9Y.js} +2 -2
- package/dist/{defineDeepModel-Qi54tGyL.js → defineDeepModel-B15nBS96.js} +1 -1
- package/dist/{duplicate-template-CMQSNAkP.js → duplicate-template-BSxFsv2u.js} +1 -1
- package/dist/{feature-C3Qi_YOQ.js → feature-KwyjpPTq.js} +8956 -6221
- package/dist/{format-time-from-id-CiF32HPN.js → format-time-from-id-BfL9V23H.js} +1 -1
- package/dist/{format-unit-display-CWaFU32C.js → format-unit-display-BfSLhflE.js} +11 -11
- package/dist/{import-export.helper-CmZ04MNQ.js → import-export.helper-TUsgMxew.js} +5 -5
- package/dist/{index-DWbh3c13.js → index-C2H5HeFF.js} +1 -1
- package/dist/{index-BV6lZh0u.js → index-CXtJlhZZ.js} +3 -3
- package/dist/{index-v0HfyjdJ.js → index-DTnKa-sF.js} +1 -1
- package/dist/{lodash-l5GzTb80.js → lodash-DRR2nS2T.js} +1 -1
- package/dist/{netsuite-DlEPiEX1.js → netsuite-CAFiEoX5.js} +2034 -1687
- package/dist/{purchase-order-template-C-MSW7Bo.js → purchase-order-template-CSJXceBK.js} +1 -1
- package/dist/router/name.d.ts +1 -0
- package/dist/{rules-BF70lxi7.js → rules-BdFLL1aa.js} +9 -9
- package/dist/{stock-CU4n1u6e.js → stock-B80FaSS2.js} +1 -1
- package/dist/{stock-FcnkYSxh.js → stock-CgsgvX9b.js} +3 -3
- package/dist/stores/feature.d.ts +4 -0
- package/dist/stores/integration/netsuite.d.ts +5 -0
- package/dist/stores/surcharge.d.ts +18 -0
- package/dist/style.css +1 -1
- package/dist/{supplier-BV8FzK18.js → supplier-BsycjnD1.js} +2 -2
- package/dist/surcharge-BH6kETCu.js +71 -0
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{use-ingredient-select-dialog-FCv8J6-r.js → use-ingredient-select-dialog-B2cFOc3t.js} +2 -2
- package/dist/{use-inventory-binding-dialog-UNAoymW3.js → use-inventory-binding-dialog-CKUtJDHW.js} +2 -2
- package/dist/{use-template-enabled-locations-2-6TzeRZSX.js → use-template-enabled-locations-2-tPL4lEZ_.js} +2 -2
- package/dist/views/receive-request/components/transfer-form/TransferFormWithController.vue.d.ts +1 -0
- package/dist/views/receive-request/components/transfer-form/components/ForecastStock.vue.d.ts +2 -0
- package/dist/views/receive-request/components/transfer-form/composables/use-transfer-items.d.ts +8 -1
- package/dist/views/stock/components/StockRecordCard.vue.d.ts +1 -1
- package/dist/views/surcharge/SurchargeView.vue.d.ts +2 -0
- package/dist/{vue-i18n-W40GsXxp.js → vue-i18n-BhCaMx-9.js} +213 -213
- package/dist/{xlsx-BD3jzYqf.js → xlsx-DJaY2xSF.js} +398 -398
- package/dist/{xlsx.util-DA4HjNKa.js → xlsx.util-CZq_uKdw.js} +1 -1
- package/package.json +3 -4
- package/dist/FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-BPPKetxg.js +0 -231
- package/dist/FmMultiselectDialog-C9pVEMlL.js +0 -598
- package/dist/InventoryBindingForm.vue_vue_type_script_setup_true_lang-DiKt7AYo.js +0 -375
- package/dist/ReceiveRequestView-AY3n7b7j.js +0 -2923
- package/dist/TableActionableRow.vue_vue_type_script_setup_true_lang-cfFHDIwQ.js +0 -162
- package/dist/app-uBuHtW8m.js +0 -8127
- package/dist/cypress/component/receive-request/KDI-15-total-price-currency.cy.d.ts +0 -2
- package/dist/views/ingredients/helper/calculate-default-cost.d.ts +0 -9
- package/dist/views/receive-request/components/transfer-form/TransferForm2.vue.d.ts +0 -22
package/dist/router/name.d.ts
CHANGED
|
@@ -14,6 +14,7 @@ export declare enum RouteName {
|
|
|
14
14
|
RECEIVE_REQUEST_PRINT_PREVIEW = "RECEIVE_REQUEST_PRINT_PREVIEW",
|
|
15
15
|
RECEIVE_REQUEST_DELIVERY_PRINT_PREVIEW = "RECEIVE_REQUEST_DELIVERY_PRINT_PREVIEW",
|
|
16
16
|
APPROVAL = "APPROVAL",
|
|
17
|
+
SURCHARGE = "SURCHARGE",
|
|
17
18
|
SUPPLIER = "SUPPLIER",
|
|
18
19
|
PUBLISH = "PUBLISH",
|
|
19
20
|
IMPORT = "IMPORT",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { s } from "./app-
|
|
2
|
-
import "./dayjs.min-
|
|
3
|
-
import { d, b } from "./date2-
|
|
1
|
+
import { w as s } from "./app-Cq2T5z21.js";
|
|
2
|
+
import "./dayjs.min-D_81k3gd.js";
|
|
3
|
+
import { d, b } from "./date2-Dunl1OWI.js";
|
|
4
4
|
function P(t, n) {
|
|
5
5
|
return s.convertPrecision({
|
|
6
6
|
value: t,
|
|
@@ -28,7 +28,7 @@ function T(t, n) {
|
|
|
28
28
|
const r = l(t, n);
|
|
29
29
|
return c(r);
|
|
30
30
|
}
|
|
31
|
-
function
|
|
31
|
+
function w(t, n) {
|
|
32
32
|
return t.precision >= n ? t : s.convertPrecision({ value: t, precision: n });
|
|
33
33
|
}
|
|
34
34
|
function f(t) {
|
|
@@ -39,12 +39,12 @@ function f(t) {
|
|
|
39
39
|
function u(t, n = !0) {
|
|
40
40
|
return n ? Number(t.amount / Math.pow(10, t.precision)).toFixed(t.precision) : Number(t.amount / Math.pow(10, t.precision)).toString();
|
|
41
41
|
}
|
|
42
|
-
function
|
|
42
|
+
function x(t, n) {
|
|
43
43
|
n = n ?? h(t);
|
|
44
44
|
const r = n, i = t.toFixed(r), e = i.includes(".") ? i.replace(/0+$/, "") : i;
|
|
45
45
|
return e.endsWith(".") ? e.slice(0, e.length - 1) : e;
|
|
46
46
|
}
|
|
47
|
-
function
|
|
47
|
+
function O(t, n = !1, r = 2) {
|
|
48
48
|
const i = Number(t.amount / Math.pow(10, t.precision)), e = i.toFixed(
|
|
49
49
|
Number.isInteger(i) ? 2 : Math.min(4, Math.max(2, r))
|
|
50
50
|
);
|
|
@@ -183,7 +183,7 @@ export {
|
|
|
183
183
|
f as b,
|
|
184
184
|
U as c,
|
|
185
185
|
c as d,
|
|
186
|
-
|
|
186
|
+
O as e,
|
|
187
187
|
F as f,
|
|
188
188
|
M as g,
|
|
189
189
|
C as h,
|
|
@@ -192,10 +192,10 @@ export {
|
|
|
192
192
|
D as k,
|
|
193
193
|
N as l,
|
|
194
194
|
P as m,
|
|
195
|
-
|
|
195
|
+
x as n,
|
|
196
196
|
$ as o,
|
|
197
197
|
T as p,
|
|
198
198
|
S as q,
|
|
199
199
|
q as t,
|
|
200
|
-
|
|
200
|
+
w as u
|
|
201
201
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { u as i } from "./stock-
|
|
2
|
-
import { a as s, L as p } from "./app-
|
|
1
|
+
import { u as i } from "./stock-B80FaSS2.js";
|
|
2
|
+
import { a as s, L as p } from "./app-Cq2T5z21.js";
|
|
3
3
|
import { ref as d, computed as k } from "vue";
|
|
4
|
-
import { d as B } from "./rules-
|
|
4
|
+
import { d as B } from "./rules-BdFLL1aa.js";
|
|
5
5
|
function m() {
|
|
6
6
|
return {
|
|
7
7
|
stockBalance: {
|
package/dist/stores/feature.d.ts
CHANGED
|
@@ -28,6 +28,8 @@ export interface FeatureState {
|
|
|
28
28
|
inventory_backdate_receive: boolean;
|
|
29
29
|
inventory_purchase_order_custom_cost: boolean;
|
|
30
30
|
inventory_bulk_import: boolean;
|
|
31
|
+
inventory_portal_surcharge: boolean;
|
|
32
|
+
inventory_purchase_order_cost_edit: boolean;
|
|
31
33
|
inventory_purchase_order_workflow_allow_to_mark_completed: boolean;
|
|
32
34
|
}
|
|
33
35
|
export declare const useFeatureStore: () => {
|
|
@@ -61,6 +63,8 @@ export declare const useFeatureStore: () => {
|
|
|
61
63
|
readonly enableBackdateReceive: boolean;
|
|
62
64
|
readonly enablePurchaseOrderReceiveWithCustomCost: boolean;
|
|
63
65
|
readonly enableBulkImport: boolean;
|
|
66
|
+
readonly enableSurcharge: boolean;
|
|
67
|
+
readonly enablePurchaseOrderCostEdit: boolean;
|
|
64
68
|
readonly poWorkflowAllowToMarkCompleted: boolean;
|
|
65
69
|
init(): Promise<void>;
|
|
66
70
|
awaitFeatureLoaded(callback: () => boolean): Promise<boolean>;
|
|
@@ -60,6 +60,7 @@ export declare function useNetSuiteStore(): {
|
|
|
60
60
|
name?: string | null | undefined;
|
|
61
61
|
externalId?: string | null | undefined;
|
|
62
62
|
itemType?: string | null | undefined;
|
|
63
|
+
itemSubType?: string | null | undefined;
|
|
63
64
|
cogsAccount?: {
|
|
64
65
|
id: string;
|
|
65
66
|
refName: string;
|
|
@@ -91,6 +92,7 @@ export declare function useNetSuiteStore(): {
|
|
|
91
92
|
name?: string | null | undefined;
|
|
92
93
|
externalId?: string | null | undefined;
|
|
93
94
|
itemType?: string | null | undefined;
|
|
95
|
+
itemSubType?: string | null | undefined;
|
|
94
96
|
cogsAccount?: {
|
|
95
97
|
id: string;
|
|
96
98
|
refName: string;
|
|
@@ -154,6 +156,7 @@ export declare function useNetSuiteStore(): {
|
|
|
154
156
|
deletedAt?: string | null | undefined;
|
|
155
157
|
name?: string | null | undefined;
|
|
156
158
|
externalId?: string | null | undefined;
|
|
159
|
+
itemSubType?: string | null | undefined;
|
|
157
160
|
parentNetSuiteId?: string | null | undefined;
|
|
158
161
|
cogsAccount?: {
|
|
159
162
|
id: string;
|
|
@@ -241,6 +244,7 @@ export declare function useNetSuiteStore(): {
|
|
|
241
244
|
name?: string | null | undefined;
|
|
242
245
|
externalId?: string | null | undefined;
|
|
243
246
|
itemType?: string | null | undefined;
|
|
247
|
+
itemSubType?: string | null | undefined;
|
|
244
248
|
cogsAccount?: {
|
|
245
249
|
id: string;
|
|
246
250
|
refName: string;
|
|
@@ -257,6 +261,7 @@ export declare function useNetSuiteStore(): {
|
|
|
257
261
|
name?: string | null | undefined;
|
|
258
262
|
externalId?: string | null | undefined;
|
|
259
263
|
itemType?: string | null | undefined;
|
|
264
|
+
itemSubType?: string | null | undefined;
|
|
260
265
|
cogsAccount?: {
|
|
261
266
|
id: string;
|
|
262
267
|
refName: string;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { CreateType } from '@/api/type';
|
|
2
|
+
export interface SurchargeState {
|
|
3
|
+
surcharges: FdoInventorySurcharge[];
|
|
4
|
+
}
|
|
5
|
+
export declare function useSurchargeStore(): {
|
|
6
|
+
readonly surcharges: {
|
|
7
|
+
value?: any;
|
|
8
|
+
rule?: any;
|
|
9
|
+
_id: string;
|
|
10
|
+
name: string;
|
|
11
|
+
businessId: string;
|
|
12
|
+
applyTo: "purchaseOrder";
|
|
13
|
+
}[];
|
|
14
|
+
browse(): Promise<void>;
|
|
15
|
+
create(surcharge: CreateType<FdoInventorySurcharge>): Promise<void>;
|
|
16
|
+
update(id: string, surcharge: FdoInventorySurcharge): Promise<void>;
|
|
17
|
+
delete(id: string): Promise<void>;
|
|
18
|
+
};
|
package/dist/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.fm-admin-badge[data-v-643bdbae]{pointer-events:none;opacity:.9;display:flex;align-items:center;justify-content:center;border-radius:360px;--tw-bg-opacity: 1;background-color:rgb(239 68 68 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.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)}.fade-enter-active,.fade-leave-active{transition:opacity .5s ease}.fade-enter-from,.fade-leave-to{opacity:0}.fade-enter-active[data-v-
|
|
1
|
+
.fm-admin-badge[data-v-643bdbae]{pointer-events:none;opacity:.9;display:flex;align-items:center;justify-content:center;border-radius:360px;--tw-bg-opacity: 1;background-color:rgb(239 68 68 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.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)}.fade-enter-active,.fade-leave-active{transition:opacity .5s ease}.fade-enter-from,.fade-leave-to{opacity:0}.fade-enter-active[data-v-3d54ea9a],.fade-leave-active[data-v-3d54ea9a]{transition:opacity .25s ease}.fade-enter[data-v-3d54ea9a],.fade-leave-to[data-v-3d54ea9a]{opacity:0}.fm-droppable-field[data-v-2937afd0]{display:flex;flex-direction:column;gap:4px}.fm-droppable-field__container[data-v-2937afd0]{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-2937afd0]{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-2937afd0]{border-color:var(--fm-color-primary)}.fm-droppable-field__container--invalid[data-v-2937afd0]{border-color:var(--fm-color-system-red-300)}.fm-droppable-field__container[data-v-2937afd0]:hover:not(.fm-droppable-field__container--disabled){border-color:var(--fm-color-neutral-gray-400)}.fm-droppable-field__input[data-v-2937afd0]{cursor:pointer;opacity:0;position:absolute;top:0;left:0;height:100%;width:100%}.fm-droppable-field__input[data-v-2937afd0]:disabled{display:none;cursor:not-allowed}.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-99858b6b]{width:100%;border-spacing:unset;line-height:inherit}table td[data-v-99858b6b],table th[data-v-99858b6b]{padding:3px 5px;vertical-align:top}hr[data-v-99858b6b]{border-collapse:unset;background:#888;height:2px;border:0px}.text-left[data-v-99858b6b]{text-align:left}.text-right[data-v-99858b6b]{text-align:right}.purchase-box[data-v-99858b6b]{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-99858b6b]{padding-bottom:0;font-size:30px;color:#333}.header[data-v-99858b6b]{font-weight:600;color:#333}.sub-header[data-v-99858b6b]{font-size:18px;color:#333}.caption[data-v-99858b6b]{font-size:14px;color:#666}.address[data-v-99858b6b]{font-size:16px;line-height:1.2;color:#666}.purchase-body[data-v-99858b6b]{margin-top:30px}.item-header[data-v-99858b6b]{border:0px;background:#ccc;color:#444}table[data-v-805a706a]{width:100%;border-spacing:unset;line-height:inherit}table td[data-v-805a706a],table th[data-v-805a706a]{padding:3px 5px;vertical-align:top}hr[data-v-805a706a]{border-collapse:unset;background:#888;height:2px;border:0px}.text-left[data-v-805a706a]{text-align:left}.text-right[data-v-805a706a]{text-align:right}.purchase-box[data-v-805a706a]{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-805a706a]{padding-bottom:0;font-size:32px;color:#333}.subtitle[data-v-805a706a]{padding-bottom:0;font-size:25px;color:#333}.header[data-v-805a706a]{font-weight:600;color:#333}.sub-header[data-v-805a706a]{font-size:18px;color:#333}.caption[data-v-805a706a]{font-size:14px;color:#666}.address[data-v-805a706a]{font-size:14px;line-height:1.2;color:#666}.purchase-body[data-v-805a706a]{margin-top:30px}.item-header[data-v-805a706a]{border:0px;background:#ccc;color:#444}.logo[data-v-805a706a]{max-width:100%;height:100px;-o-object-fit:contain;object-fit:contain}img[data-v-805a706a]{width:100px;height:100px;-o-object-fit:contain;object-fit:contain}.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;min-height:24px}.fm-status-badge-draft{background-color:var(--fm-color-neutral-gray-100);color:var(--fm-color-neutral-gray-500)}.fm-status-badge-receiving,.fm-status-badge-partial_received{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-close,.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)}.fm-status-badge-error{border-width:2px;--tw-border-opacity: 1;border-color:rgb(239 68 68 / var(--tw-border-opacity))}@media print{.print-mode .overflow-auto{overflow:visible!important}}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { o as b, u, n as v, p as w, q as $ } from "./app-
|
|
2
|
-
import { u as S } from "./feature-
|
|
1
|
+
import { o as b, u, n as v, p as w, q as $ } from "./app-Cq2T5z21.js";
|
|
2
|
+
import { u as S } from "./feature-KwyjpPTq.js";
|
|
3
3
|
import { useCoreStore as c } from "@feedmepos/mf-common";
|
|
4
4
|
import { defineStore as f } from "pinia";
|
|
5
5
|
import { ref as l, computed as d } from "vue";
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { ref as d } from "vue";
|
|
2
|
+
import { o as w, j as g } from "./app-Cq2T5z21.js";
|
|
3
|
+
import { useCoreStore as h } from "@feedmepos/mf-common";
|
|
4
|
+
import { useSnackbar as y } from "@feedmepos/ui-library";
|
|
5
|
+
const p = w((s, r) => {
|
|
6
|
+
const u = h(), c = y();
|
|
7
|
+
return r.onError(async (e) => {
|
|
8
|
+
if (e instanceof g)
|
|
9
|
+
throw c == null || c.open({
|
|
10
|
+
title: e.title,
|
|
11
|
+
message: e.message,
|
|
12
|
+
type: "error"
|
|
13
|
+
}), e;
|
|
14
|
+
}), {
|
|
15
|
+
async browse() {
|
|
16
|
+
var t;
|
|
17
|
+
const e = ((t = u.currentBusiness.value) == null ? void 0 : t._id) ?? "", n = `${s.inventoryBackendUrl}/${e}/surcharge`;
|
|
18
|
+
return await r.get(n);
|
|
19
|
+
},
|
|
20
|
+
async create(e) {
|
|
21
|
+
var a;
|
|
22
|
+
const n = ((a = u.currentBusiness.value) == null ? void 0 : a._id) ?? "", t = `${s.inventoryBackendUrl}/${n}/surcharge`;
|
|
23
|
+
return await r.post(t, e);
|
|
24
|
+
},
|
|
25
|
+
async read(e) {
|
|
26
|
+
var a;
|
|
27
|
+
const n = ((a = u.currentBusiness.value) == null ? void 0 : a._id) ?? "", t = `${s.inventoryBackendUrl}/${n}/surcharge/${e}`;
|
|
28
|
+
return await r.get(t);
|
|
29
|
+
},
|
|
30
|
+
async update(e, n) {
|
|
31
|
+
var o;
|
|
32
|
+
const t = ((o = u.currentBusiness.value) == null ? void 0 : o._id) ?? "", a = `${s.inventoryBackendUrl}/${t}/surcharge/${e}`;
|
|
33
|
+
return await r.put(a, n);
|
|
34
|
+
},
|
|
35
|
+
async delete(e) {
|
|
36
|
+
var a;
|
|
37
|
+
const n = ((a = u.currentBusiness.value) == null ? void 0 : a._id) ?? "", t = `${s.inventoryBackendUrl}/${n}/surcharge/${e}`;
|
|
38
|
+
return await r.delete(t);
|
|
39
|
+
},
|
|
40
|
+
urls: s
|
|
41
|
+
};
|
|
42
|
+
});
|
|
43
|
+
function l() {
|
|
44
|
+
return {
|
|
45
|
+
surcharges: []
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
const i = d(l());
|
|
49
|
+
function m() {
|
|
50
|
+
const s = p();
|
|
51
|
+
return {
|
|
52
|
+
get surcharges() {
|
|
53
|
+
return i.value.surcharges;
|
|
54
|
+
},
|
|
55
|
+
async browse() {
|
|
56
|
+
i.value.surcharges = await s.browse();
|
|
57
|
+
},
|
|
58
|
+
async create(r) {
|
|
59
|
+
await s.create(r), await this.browse();
|
|
60
|
+
},
|
|
61
|
+
async update(r, u) {
|
|
62
|
+
await s.update(r, u), await this.browse();
|
|
63
|
+
},
|
|
64
|
+
async delete(r) {
|
|
65
|
+
await s.delete(r), await this.browse();
|
|
66
|
+
}
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
export {
|
|
70
|
+
m as u
|
|
71
|
+
};
|