@feedmepos/mf-inventory-portal 1.2.51 → 1.2.53-dev.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{App-BJ_vKOR1.js → App-C8X881gs.js} +75 -70
- package/dist/{ApprovalView-B_prTTtl.js → ApprovalView-CnwwVO46.js} +34 -34
- package/dist/{BindingsDialog-BPuKgJIk.js → BindingsDialog-MM6wv-je.js} +2 -2
- package/dist/{BindingsPicker-Dv_cmEil.js → BindingsPicker-C_VV8t8e.js} +2 -2
- package/dist/{BindingsTable-BNSfYRfq.js → BindingsTable-CabKT98b.js} +4 -4
- package/dist/{ClosingDraftView-C78tcaJ3.js → ClosingDraftView-D3dwGHdG.js} +19 -18
- package/dist/{ClosingHistoryView-DY8liEk3.js → ClosingHistoryView-CBMIWL-O.js} +27 -27
- package/dist/{ClosingTemplateView-pJXEcrjO.js → ClosingTemplateView-FHCJY1Y1.js} +525 -511
- package/dist/{DeliveryOrderPrintPreview-Bu_l-kxu.js → DeliveryOrderPrintPreview-BB4HVWaM.js} +1 -1
- package/dist/FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-Dq2vcIMB.js +188 -0
- package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-DHe5G3kX.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-BSrjl8Vc.js} +12 -12
- package/dist/FmMultiselectDialog-D8E2bGwL.js +618 -0
- package/dist/{FmMultiselectDialog-C3iCMK5I.js → FmMultiselectDialog-HP5xQpLC.js} +1 -1
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-CefvebOx.js → FmUnitInput.vue_vue_type_script_setup_true_lang--yzPFTUH.js} +3 -3
- package/dist/{ImportView-JrenRgiI.js → ImportView-DQPKyc1T.js} +7 -7
- package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-CSdxodp6.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-DZAOa26T.js} +1 -1
- package/dist/{IngredientGroupView-aDFq_ZDh.js → IngredientGroupView-CiR31jQz.js} +108 -107
- package/dist/{IngredientsView-DSh3UqDg.js → IngredientsView-Csa1Lifk.js} +126 -125
- package/dist/{IntegrationView-KhZ78uxM.js → IntegrationView-DqGXjNPx.js} +80 -80
- package/dist/{InventoryBindingForm-DZu0CZYh.js → InventoryBindingForm-kZ6JIgK4.js} +1 -1
- package/dist/InventoryBindingForm.vue_vue_type_script_setup_true_lang-D-qjPLHS.js +403 -0
- package/dist/{InventoryBindingSummary-DZxLhZ_-.js → InventoryBindingSummary-Cn3y7cXX.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DAwpZY3n.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-5cpvf_ze.js} +1 -1
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-CPDxwz-V.js → PremiumBadge.vue_vue_type_script_setup_true_lang-DW_3XEAx.js} +2 -2
- package/dist/{PublishView-CLnQ7NBN.js → PublishView-tvxBQLp2.js} +3 -3
- package/dist/{PurchaseOrderPrintPreview-DiBztBma.js → PurchaseOrderPrintPreview-CqSijErx.js} +1 -1
- package/dist/ReceiveRequestView-Oq87gJ1d.js +2913 -0
- package/dist/{RecipeView-BPIMvoTw.js → RecipeView-c7SNUwhq.js} +83 -82
- package/dist/{StockView-CI8MUJay.js → StockView-B3ocNf5D.js} +113 -112
- package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-DEBHEMkh.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-Br3p4H5X.js} +1 -1
- package/dist/{SupplierView-COihDMNY.js → SupplierView-7UHgW64q.js} +28 -27
- package/dist/SurchargeView-CkBBz_W1.js +460 -0
- package/dist/{SystemTrailDialog.vue_vue_type_script_setup_true_lang-D-c0Ayis.js → SystemTrailDialog.vue_vue_type_script_setup_true_lang-BxqwBD1A.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-DZxJDrcN.js +201 -0
- package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-BVuuw11z.js → TransferDetails.vue_vue_type_script_setup_true_lang-BP7PC5FE.js} +15 -15
- package/dist/{TransferTemplateView-B2NNfrEq.js → TransferTemplateView-gnib1NSD.js} +82 -81
- package/dist/{UnitView-ZsbM07hw.js → UnitView-gccTcBDm.js} +20 -19
- package/dist/{WarehouseView-Cd5RFu5v.js → WarehouseView-9Tzk2HFV.js} +21 -20
- package/dist/WastageTemplateView-bxDDb0it.js +2383 -0
- package/dist/api/adjustment-template.d.ts +1 -0
- package/dist/api/closing-template.d.ts +1 -0
- package/dist/api/netsuite.d.ts +8 -0
- package/dist/api/surcharge.d.ts +31 -0
- package/dist/app-DiX-EfV6.js +8167 -0
- package/dist/{app-CySQTQxj.js → app-S9HQBEDL.js} +4514 -4410
- package/dist/app.d.ts +53 -0
- package/dist/app.js +1 -1
- package/dist/closing-template-DSppbNBU.js +125 -0
- 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/components/TemplatePublishDialog.d.ts +2 -0
- package/dist/{date2-BWoUn1K_.js → date2-a0EDY-8z.js} +1 -1
- package/dist/{dayjs.min-cMW8olEu.js → dayjs.min-D3uqC-FM.js} +26 -26
- package/dist/{decimal-8BRzZQU6.js → decimal-iC0dKSbY.js} +2 -2
- package/dist/{defineDeepModel-AsUZ-DyW.js → defineDeepModel-sBbNFqqR.js} +1 -1
- package/dist/{duplicate-template-CyHfZR3S.js → duplicate-template-Dwe_h80w.js} +1 -1
- package/dist/{feature-Dm0FnWf9.js → feature-12j10xt_.js} +8956 -6221
- package/dist/{format-time-from-id-C9lmv5BP.js → format-time-from-id-Dyyvx-ha.js} +1 -1
- package/dist/{format-unit-display-BV8pJisO.js → format-unit-display-DstE3kKS.js} +11 -11
- package/dist/{import-export.helper-Djxw_H5S.js → import-export.helper-CR8rEBJV.js} +5 -5
- package/dist/{index-D6u3kywf.js → index-BbpxRM23.js} +1 -1
- package/dist/{index-8hCa5_Gb.js → index-Ca8nKTEy.js} +1 -1
- package/dist/{index-DidYtgNc.js → index-CvRrsISb.js} +3 -3
- package/dist/{lodash-CW_Ea6mA.js → lodash-BiCqhRt2.js} +1 -1
- package/dist/netsuite-B84CfGmT.js +5454 -0
- package/dist/{purchase-order-template-BTzjcgrO.js → purchase-order-template-ogVLqXnM.js} +1 -1
- package/dist/router/name.d.ts +1 -0
- package/dist/{rules-DkVWS5mF.js → rules-C0W8tBAK.js} +9 -9
- package/dist/{stock-CHw8pI8V.js → stock-BfY956rP.js} +3 -3
- package/dist/{stock-D8hLHgeN.js → stock-Dy08ISna.js} +1 -1
- 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-Dv83IfQr.js → supplier-BGfg_Uzv.js} +2 -2
- package/dist/surcharge-DZkc9Zxa.js +71 -0
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{use-ingredient-select-dialog-CJjd4g-6.js → use-ingredient-select-dialog-fOf-xHgn.js} +2 -2
- package/dist/{use-inventory-binding-dialog-D4g79p5S.js → use-inventory-binding-dialog-CF6dmCop.js} +2 -2
- package/dist/{use-template-enabled-locations-2-Cg2iqQdq.js → use-template-enabled-locations-2-C9YTP8tP.js} +2 -2
- package/dist/views/adjustment-template/wastage-template/actions.d.ts +4 -1
- package/dist/views/receive-request/components/transfer-form/TransferFormWithController.vue.d.ts +714 -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-kUcLfpvT.js → vue-i18n-CVvQI1xZ.js} +571 -571
- package/dist/{xlsx-BjeMbhDF.js → xlsx-C46Afq2T.js} +1 -1
- package/dist/{xlsx.util-9eMlJfd9.js → xlsx.util-iJmlHY2V.js} +1 -1
- package/package.json +2 -2
- package/dist/FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-Dgibb-Fh.js +0 -231
- package/dist/FmMultiselectDialog-CDONDKxE.js +0 -598
- package/dist/InventoryBindingForm.vue_vue_type_script_setup_true_lang-YuCn0irA.js +0 -375
- package/dist/ReceiveRequestView-_TOSnDGJ.js +0 -2913
- package/dist/TableActionableRow.vue_vue_type_script_setup_true_lang-cfFHDIwQ.js +0 -162
- package/dist/TemplatePublishDialog.vue_vue_type_script_setup_true_lang-D8vbPlie.js +0 -155
- package/dist/WastageTemplateView-DpikyyZW.js +0 -2327
- package/dist/app-uBuHtW8m.js +0 -8127
- package/dist/closing-template-DXGjC5AG.js +0 -117
- package/dist/cypress/component/receive-request/KDI-15-total-price-currency.cy.d.ts +0 -2
- package/dist/netsuite-BEto-z0v.js +0 -5131
- 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-S9HQBEDL.js";
|
|
2
|
+
import "./dayjs.min-D3uqC-FM.js";
|
|
3
|
+
import { d, b } from "./date2-a0EDY-8z.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-Dy08ISna.js";
|
|
2
|
+
import { a as s, L as p } from "./app-S9HQBEDL.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-C0W8tBAK.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-S9HQBEDL.js";
|
|
2
|
+
import { u as S } from "./feature-12j10xt_.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-S9HQBEDL.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
|
+
};
|