@feedmepos/mf-inventory-portal 1.0.5 → 1.0.7-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-BC040Les.js → App-zspCOQeF.js} +50 -49
- package/dist/{ApprovalView-DCvl3a_5.js → ApprovalView-CKJV87es.js} +24 -24
- package/dist/{BindingsDialog-CrVuhZqk.js → BindingsDialog-CTmuzAWi.js} +4 -4
- package/dist/{BindingsPicker-lmFa-poh.js → BindingsPicker-Dabonsov.js} +8 -8
- package/dist/{BindingsTable-CT_lSIYf.js → BindingsTable-L0yzAoQq.js} +4 -4
- package/dist/{ClosingDraftView-DRc0FjAS.js → ClosingDraftView-CddxqfNi.js} +464 -463
- package/dist/{ClosingTemplateView-C_X0J-M4.js → ClosingTemplateView-BsW-nPec.js} +10 -10
- package/dist/{DeliveryOrderPrintPreview-BneNiMcQ.js → DeliveryOrderPrintPreview-DQ4msDpJ.js} +1 -1
- package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-BJWjd3-f.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-TnVI2vdF.js} +32 -32
- package/dist/FmUnitInput.vue_vue_type_script_setup_true_lang-BRvXmLV6.js +338 -0
- package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-BhfVsV9p.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-BHLx7Lbo.js} +1 -1
- package/dist/{IngredientGroupView-NyW26_DP.js → IngredientGroupView-CF2GLMSD.js} +11 -11
- package/dist/{IngredientsView-BN1jydVe.js → IngredientsView-DopQVz7u.js} +15 -14
- package/dist/IntegrationView-EnD2l7af.js +2149 -0
- package/dist/{InventoryBindingForm-Bf52xXaz.js → InventoryBindingForm-VP2_coNH.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-BLCgDC82.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-dQF7h_Jp.js} +27 -27
- package/dist/{InventoryBindingSummary-BM48Xk8j.js → InventoryBindingSummary-BCEXzmFu.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DYSoSSzj.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-RfkBlwxw.js} +1 -1
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-DjtXgvRo.js → PremiumBadge.vue_vue_type_script_setup_true_lang-CGgxjz4P.js} +10 -10
- package/dist/{PublishView-C_c9fd-9.js → PublishView-ExvxeKR_.js} +7 -7
- package/dist/{PurchaseOrderPrintPreview-CmIP1Zpp.js → PurchaseOrderPrintPreview-59AaXtZ_.js} +4 -4
- package/dist/{ReceiveRequestView-DJknUS-e.js → ReceiveRequestView-BxGss8gu.js} +53 -52
- package/dist/{RecipeView-nzgPP4xb.js → RecipeView-BqTsG4xX.js} +32 -32
- package/dist/{StockView-DERznopJ.js → StockView-D-WvydHv.js} +73 -72
- package/dist/{SupplierView-B03zhGGq.js → SupplierView-C6ruAEih.js} +12 -11
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-CQ-Om_rI.js +1894 -0
- package/dist/{TransferTemplateView-HLrkeo9I.js → TransferTemplateView-qSA3Txpn.js} +291 -290
- package/dist/{UnitView-yMNF61nI.js → UnitView-oHDOLM8k.js} +23 -23
- package/dist/{WarehouseView-Cl8O3zEO.js → WarehouseView-C3EqYfCf.js} +26 -26
- package/dist/api/bill.d.ts +2 -2
- package/dist/api/closing.d.ts +7 -1
- package/dist/api/food-market-hub.d.ts +1 -1
- package/dist/api/inventory.d.ts +44 -44
- package/dist/api/netsuite.d.ts +83 -1
- package/dist/api/purchase-order.d.ts +5 -1
- package/dist/api/stock.d.ts +12 -12
- package/dist/{app-ByZGP6to.js → app-DqrcGlGd.js} +20015 -20284
- package/dist/app.d.ts +7 -7
- package/dist/app.js +1 -1
- package/dist/components/inventory-binding/InventoryBinding.vue.d.ts +8 -8
- package/dist/components/shell/inventory/binding-dialog.vue.d.ts +2 -2
- package/dist/components/shell/inventory/binding-ui.vue.d.ts +5 -5
- package/dist/composable/usePromise.d.ts +41 -0
- package/dist/{decimal-C6ZIb15B.js → decimal-rgCB5DGy.js} +1 -1
- package/dist/feature-CifIpcNk.js +17345 -0
- package/dist/{format-unit-display-Bixr5QQV.js → format-unit-display-DUWzu8vU.js} +60 -60
- package/dist/index-CH3OzDYK.js +126 -0
- package/dist/{index-3ud7W_2Y.js → index-YgIaxVhw.js} +1 -1
- package/dist/{stock-DpKjVgzG.js → stock-BPNYXwz1.js} +1 -1
- package/dist/stores/feature.d.ts +5 -19
- package/dist/stores/integration/foodmarkethub.d.ts +1 -1
- package/dist/stores/integration/index.d.ts +1 -0
- package/dist/stores/integration/netsuite.d.ts +18 -7
- package/dist/stores/integration/xilnex.d.ts +12 -0
- package/dist/stores/inventory.d.ts +56 -56
- package/dist/stores/location.d.ts +137 -137
- package/dist/stores/stock.d.ts +12 -12
- package/dist/{supplier-DfKwECUI.js → supplier-CnrH580K.js} +4 -4
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{use-ingredient-select-dialog-Cs5SmNLE.js → use-ingredient-select-dialog-CpnJoeWb.js} +1 -1
- package/dist/{use-inventory-binding-dialog-9RGXAtLh.js → use-inventory-binding-dialog-DHvNwt_F.js} +1 -1
- package/dist/views/adjustment-template/wastage-template/actions.d.ts +228 -228
- package/dist/views/adjustment-template/wastage-template/form/WastageTemplateItemTable.vue.d.ts +2 -2
- package/dist/views/adjustment-template/wastage-template/form/useAdjustmentTemplateItems.d.ts +1 -1
- package/dist/views/adjustment-template/wastage-template/table.d.ts +234 -234
- package/dist/views/closing-draft/components/closing-draft-dialog/ClosingDraftDialog.vue.d.ts +76 -76
- package/dist/views/closing-draft/composables/use-closing-draft-table.d.ts +456 -456
- package/dist/views/closing-template/components/closing-template-form/composables/use-closing-template-items.d.ts +4 -4
- package/dist/views/closing-template/composables/use-closing-template-actions.d.ts +252 -252
- package/dist/views/closing-template/composables/use-closing-template-table.d.ts +252 -252
- package/dist/views/ingredient-group/composables/use-ingredient-group-table.d.ts +12 -12
- package/dist/views/ingredients/components/convert/ConvertForm.vue.d.ts +2 -2
- package/dist/views/ingredients/components/ingredient-form/IngredientForm.vue.d.ts +8 -8
- package/dist/views/ingredients/components/inventory-binding/InventoryBindingForm.vue.d.ts +3 -3
- package/dist/views/ingredients/composables/use-ingredient-table.d.ts +4 -4
- package/dist/views/integration/XilnexView.vue.d.ts +2 -0
- package/dist/views/integration/components/ApplyProduct.vue.d.ts +2 -2
- package/dist/views/integration/components/ApplyProductDialog.vue.d.ts +2 -2
- package/dist/views/integration/components/ApplyProductDialogV4.vue.d.ts +2 -2
- package/dist/views/integration/components/Xilnex/XilnexOpeningImport.vue.d.ts +2 -0
- package/dist/views/integration/components/Xilnex/XilnexProps.d.ts +7 -0
- package/dist/views/integration/components/Xilnex/XilnexSideSheet.vue.d.ts +24 -0
- package/dist/views/integration/components/Xilnex/importFn.d.ts +16 -0
- package/dist/views/integration/components/netsuite/AddLocationDialog.vue.d.ts +1334 -0
- package/dist/views/integration/components/netsuite/LocationConfigurationDialog.vue.d.ts +174 -0
- package/dist/views/integration/components/netsuite/LocationConfigurationDialogProps.d.ts +16 -0
- package/dist/views/integration/components/netsuite/NetSuiteLocationField.vue.d.ts +71 -0
- package/dist/views/receive-request/components/transfer-details/FulfillmentForm.vue.d.ts +5 -1
- package/dist/views/receive-request/components/transfer-details/usePurchaseOrderFn.d.ts +4 -0
- package/dist/views/receive-request/components/transfer-form/TransferForm.vue.d.ts +696 -668
- package/dist/views/receive-request/components/transfer-form/components/ForecastStock.vue.d.ts +22 -22
- package/dist/views/receive-request/components/transfer-form/components/TransferItemTable.vue.d.ts +44 -44
- package/dist/views/receive-request/components/transfer-form/composables/use-transfer-items.d.ts +11 -11
- package/dist/views/receive-request/composables/use-process-purchase-order.d.ts +614 -0
- package/dist/views/receive-request/composables/use-receive-request-form.d.ts +1270 -1222
- package/dist/views/receive-request/composables/use-receive-request-table.d.ts +1197 -1149
- package/dist/views/receive-request/constants/po-action-to-ui-style.d.ts +6 -0
- package/dist/views/recipe/components/recipe-form/RecipeForm.vue.d.ts +2 -2
- package/dist/views/stock/components/StockRecordCard.vue.d.ts +1 -1
- package/dist/views/stock/components/dialog/AdjustedItemForm.vue.d.ts +14 -14
- package/dist/views/transfer-template/components/transfer-template-form/components/TransferTemplateItemTable.vue.d.ts +22 -22
- package/dist/views/transfer-template/components/transfer-template-form/composables/use-template-enabled-locations.d.ts +17 -17
- package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-template-items.d.ts +11 -11
- package/dist/views/transfer-template/composables/use-transfer-template-actions.d.ts +805 -805
- package/dist/views/transfer-template/composables/use-transfer-template-table.d.ts +805 -805
- package/dist/views/transfer-template/composables/useTransferTemplateHelper.d.ts +33 -33
- package/dist/{vue-i18n-DR_smMg1.js → vue-i18n-4m7yAqU2.js} +426 -426
- package/package.json +5 -2
- package/dist/FmUnitInput.vue_vue_type_script_setup_true_lang-CAEBtWpw.js +0 -328
- package/dist/IntegrationView-CVbR75fb.js +0 -1197
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-D709Nkfi.js +0 -1723
- package/dist/index-CoqRZydm.js +0 -84
package/dist/api/inventory.d.ts
CHANGED
|
@@ -5,8 +5,8 @@ export declare const useInventoryApi: () => {
|
|
|
5
5
|
_id: string;
|
|
6
6
|
updatedAt: string;
|
|
7
7
|
} | null | undefined;
|
|
8
|
-
type: "restaurant" | "warehouse";
|
|
9
8
|
name: string;
|
|
9
|
+
type: "restaurant" | "warehouse";
|
|
10
10
|
acceptRequest: boolean;
|
|
11
11
|
dbName: string;
|
|
12
12
|
doc: {
|
|
@@ -14,26 +14,14 @@ export declare const useInventoryApi: () => {
|
|
|
14
14
|
businessId: string;
|
|
15
15
|
profile: {
|
|
16
16
|
code?: string | null | undefined;
|
|
17
|
+
url?: string | null | undefined;
|
|
18
|
+
description?: string | null | undefined;
|
|
17
19
|
_id?: string | null | undefined;
|
|
18
|
-
name?: string | undefined;
|
|
19
|
-
address?: {
|
|
20
|
-
coordinates?: number[] | null | undefined;
|
|
21
|
-
line2?: string | null | undefined;
|
|
22
|
-
state: string;
|
|
23
|
-
country: string;
|
|
24
|
-
line1: string;
|
|
25
|
-
city: string;
|
|
26
|
-
postcode: string;
|
|
27
|
-
} | undefined;
|
|
28
|
-
email?: string | undefined;
|
|
29
|
-
regNo?: string | undefined;
|
|
30
|
-
sstRegNo?: string | null | undefined;
|
|
31
|
-
phoneNo?: string | undefined;
|
|
32
20
|
legalName?: string | null | undefined;
|
|
21
|
+
sstRegNo?: string | null | undefined;
|
|
33
22
|
discovery?: boolean | null | undefined;
|
|
34
23
|
coverPhoto?: string | null | undefined;
|
|
35
24
|
thumbnailPhoto?: string | null | undefined;
|
|
36
|
-
description?: string | null | undefined;
|
|
37
25
|
photos?: string[] | null | undefined;
|
|
38
26
|
operatingHours?: {
|
|
39
27
|
0: {
|
|
@@ -87,7 +75,19 @@ export declare const useInventoryApi: () => {
|
|
|
87
75
|
};
|
|
88
76
|
} | null | undefined;
|
|
89
77
|
tags?: string[] | null | undefined;
|
|
90
|
-
|
|
78
|
+
name: string;
|
|
79
|
+
address: {
|
|
80
|
+
coordinates?: number[] | null | undefined;
|
|
81
|
+
line2?: string | null | undefined;
|
|
82
|
+
state: string;
|
|
83
|
+
country: string;
|
|
84
|
+
line1: string;
|
|
85
|
+
city: string;
|
|
86
|
+
postcode: string;
|
|
87
|
+
};
|
|
88
|
+
email: string;
|
|
89
|
+
phoneNo: string;
|
|
90
|
+
regNo: string;
|
|
91
91
|
};
|
|
92
92
|
};
|
|
93
93
|
}[]>;
|
|
@@ -121,12 +121,12 @@ export declare const useInventoryApi: () => {
|
|
|
121
121
|
precision: number;
|
|
122
122
|
};
|
|
123
123
|
} | null | undefined;
|
|
124
|
+
id: string;
|
|
124
125
|
type: "RECIPE" | "SKU" | "SKU_GROUP";
|
|
125
126
|
amount: {
|
|
126
127
|
amount: number;
|
|
127
128
|
precision: number;
|
|
128
129
|
};
|
|
129
|
-
id: string;
|
|
130
130
|
}[] | null | undefined;
|
|
131
131
|
} | null | undefined;
|
|
132
132
|
valuation?: "FIFO" | "LIFO" | "FEFO" | "WAVG" | null | undefined;
|
|
@@ -152,6 +152,9 @@ export declare const useInventoryApi: () => {
|
|
|
152
152
|
mid: number;
|
|
153
153
|
} | null | undefined;
|
|
154
154
|
customAttributes?: Record<string, any> | null | undefined;
|
|
155
|
+
_id: string;
|
|
156
|
+
name: string;
|
|
157
|
+
code: string;
|
|
155
158
|
unit: {
|
|
156
159
|
_id: string;
|
|
157
160
|
name: string;
|
|
@@ -167,9 +170,6 @@ export declare const useInventoryApi: () => {
|
|
|
167
170
|
};
|
|
168
171
|
}[];
|
|
169
172
|
};
|
|
170
|
-
code: string;
|
|
171
|
-
_id: string;
|
|
172
|
-
name: string;
|
|
173
173
|
}[] | null | undefined;
|
|
174
174
|
recipe?: {
|
|
175
175
|
customAttributes?: Record<string, any> | null | undefined;
|
|
@@ -185,16 +185,18 @@ export declare const useInventoryApi: () => {
|
|
|
185
185
|
precision: number;
|
|
186
186
|
};
|
|
187
187
|
} | null | undefined;
|
|
188
|
+
id: string;
|
|
188
189
|
type: "RECIPE" | "SKU" | "SKU_GROUP";
|
|
189
190
|
amount: {
|
|
190
191
|
amount: number;
|
|
191
192
|
precision: number;
|
|
192
193
|
};
|
|
193
|
-
id: string;
|
|
194
194
|
}[];
|
|
195
195
|
}[] | null | undefined;
|
|
196
196
|
skuGroup?: {
|
|
197
197
|
ref?: string | null | undefined;
|
|
198
|
+
_id: string;
|
|
199
|
+
name: string;
|
|
198
200
|
unit: {
|
|
199
201
|
_id: string;
|
|
200
202
|
name: string;
|
|
@@ -210,8 +212,6 @@ export declare const useInventoryApi: () => {
|
|
|
210
212
|
};
|
|
211
213
|
}[];
|
|
212
214
|
};
|
|
213
|
-
_id: string;
|
|
214
|
-
name: string;
|
|
215
215
|
skus: {
|
|
216
216
|
trackingMeasurement?: string | null | undefined;
|
|
217
217
|
convert?: {
|
|
@@ -226,12 +226,12 @@ export declare const useInventoryApi: () => {
|
|
|
226
226
|
precision: number;
|
|
227
227
|
};
|
|
228
228
|
} | null | undefined;
|
|
229
|
+
id: string;
|
|
229
230
|
type: "RECIPE" | "SKU" | "SKU_GROUP";
|
|
230
231
|
amount: {
|
|
231
232
|
amount: number;
|
|
232
233
|
precision: number;
|
|
233
234
|
};
|
|
234
|
-
id: string;
|
|
235
235
|
}[] | null | undefined;
|
|
236
236
|
} | null | undefined;
|
|
237
237
|
valuation?: "FIFO" | "LIFO" | "FEFO" | "WAVG" | null | undefined;
|
|
@@ -257,9 +257,9 @@ export declare const useInventoryApi: () => {
|
|
|
257
257
|
mid: number;
|
|
258
258
|
} | null | undefined;
|
|
259
259
|
customAttributes?: Record<string, any> | null | undefined;
|
|
260
|
-
code: string;
|
|
261
260
|
_id: string;
|
|
262
261
|
name: string;
|
|
262
|
+
code: string;
|
|
263
263
|
}[];
|
|
264
264
|
}[] | null | undefined;
|
|
265
265
|
updatedAt?: string | null | undefined;
|
|
@@ -295,12 +295,12 @@ export declare const useInventoryApi: () => {
|
|
|
295
295
|
precision: number;
|
|
296
296
|
};
|
|
297
297
|
} | null | undefined;
|
|
298
|
+
id: string;
|
|
298
299
|
type: "RECIPE" | "SKU" | "SKU_GROUP";
|
|
299
300
|
amount: {
|
|
300
301
|
amount: number;
|
|
301
302
|
precision: number;
|
|
302
303
|
};
|
|
303
|
-
id: string;
|
|
304
304
|
}[] | null | undefined;
|
|
305
305
|
} | null | undefined;
|
|
306
306
|
valuation?: "FIFO" | "LIFO" | "FEFO" | "WAVG" | null | undefined;
|
|
@@ -326,6 +326,9 @@ export declare const useInventoryApi: () => {
|
|
|
326
326
|
mid: number;
|
|
327
327
|
} | null | undefined;
|
|
328
328
|
customAttributes?: Record<string, any> | null | undefined;
|
|
329
|
+
_id: string;
|
|
330
|
+
name: string;
|
|
331
|
+
code: string;
|
|
329
332
|
unit: {
|
|
330
333
|
_id: string;
|
|
331
334
|
name: string;
|
|
@@ -341,9 +344,6 @@ export declare const useInventoryApi: () => {
|
|
|
341
344
|
};
|
|
342
345
|
}[];
|
|
343
346
|
};
|
|
344
|
-
code: string;
|
|
345
|
-
_id: string;
|
|
346
|
-
name: string;
|
|
347
347
|
}[] | null | undefined;
|
|
348
348
|
recipe?: {
|
|
349
349
|
customAttributes?: Record<string, any> | null | undefined;
|
|
@@ -359,16 +359,18 @@ export declare const useInventoryApi: () => {
|
|
|
359
359
|
precision: number;
|
|
360
360
|
};
|
|
361
361
|
} | null | undefined;
|
|
362
|
+
id: string;
|
|
362
363
|
type: "RECIPE" | "SKU" | "SKU_GROUP";
|
|
363
364
|
amount: {
|
|
364
365
|
amount: number;
|
|
365
366
|
precision: number;
|
|
366
367
|
};
|
|
367
|
-
id: string;
|
|
368
368
|
}[];
|
|
369
369
|
}[] | null | undefined;
|
|
370
370
|
skuGroup?: {
|
|
371
371
|
ref?: string | null | undefined;
|
|
372
|
+
_id: string;
|
|
373
|
+
name: string;
|
|
372
374
|
unit: {
|
|
373
375
|
_id: string;
|
|
374
376
|
name: string;
|
|
@@ -384,8 +386,6 @@ export declare const useInventoryApi: () => {
|
|
|
384
386
|
};
|
|
385
387
|
}[];
|
|
386
388
|
};
|
|
387
|
-
_id: string;
|
|
388
|
-
name: string;
|
|
389
389
|
skus: {
|
|
390
390
|
trackingMeasurement?: string | null | undefined;
|
|
391
391
|
convert?: {
|
|
@@ -400,12 +400,12 @@ export declare const useInventoryApi: () => {
|
|
|
400
400
|
precision: number;
|
|
401
401
|
};
|
|
402
402
|
} | null | undefined;
|
|
403
|
+
id: string;
|
|
403
404
|
type: "RECIPE" | "SKU" | "SKU_GROUP";
|
|
404
405
|
amount: {
|
|
405
406
|
amount: number;
|
|
406
407
|
precision: number;
|
|
407
408
|
};
|
|
408
|
-
id: string;
|
|
409
409
|
}[] | null | undefined;
|
|
410
410
|
} | null | undefined;
|
|
411
411
|
valuation?: "FIFO" | "LIFO" | "FEFO" | "WAVG" | null | undefined;
|
|
@@ -431,9 +431,9 @@ export declare const useInventoryApi: () => {
|
|
|
431
431
|
mid: number;
|
|
432
432
|
} | null | undefined;
|
|
433
433
|
customAttributes?: Record<string, any> | null | undefined;
|
|
434
|
-
code: string;
|
|
435
434
|
_id: string;
|
|
436
435
|
name: string;
|
|
436
|
+
code: string;
|
|
437
437
|
}[];
|
|
438
438
|
}[] | null | undefined;
|
|
439
439
|
updatedAt?: string | null | undefined;
|
|
@@ -469,12 +469,12 @@ export declare const useInventoryApi: () => {
|
|
|
469
469
|
precision: number;
|
|
470
470
|
};
|
|
471
471
|
} | null | undefined;
|
|
472
|
+
id: string;
|
|
472
473
|
type: "RECIPE" | "SKU" | "SKU_GROUP";
|
|
473
474
|
amount: {
|
|
474
475
|
amount: number;
|
|
475
476
|
precision: number;
|
|
476
477
|
};
|
|
477
|
-
id: string;
|
|
478
478
|
}[] | null | undefined;
|
|
479
479
|
} | null | undefined;
|
|
480
480
|
valuation?: "FIFO" | "LIFO" | "FEFO" | "WAVG" | null | undefined;
|
|
@@ -500,6 +500,9 @@ export declare const useInventoryApi: () => {
|
|
|
500
500
|
mid: number;
|
|
501
501
|
} | null | undefined;
|
|
502
502
|
customAttributes?: Record<string, any> | null | undefined;
|
|
503
|
+
_id: string;
|
|
504
|
+
name: string;
|
|
505
|
+
code: string;
|
|
503
506
|
unit: {
|
|
504
507
|
_id: string;
|
|
505
508
|
name: string;
|
|
@@ -515,9 +518,6 @@ export declare const useInventoryApi: () => {
|
|
|
515
518
|
};
|
|
516
519
|
}[];
|
|
517
520
|
};
|
|
518
|
-
code: string;
|
|
519
|
-
_id: string;
|
|
520
|
-
name: string;
|
|
521
521
|
}[] | null | undefined;
|
|
522
522
|
recipe?: {
|
|
523
523
|
customAttributes?: Record<string, any> | null | undefined;
|
|
@@ -533,16 +533,18 @@ export declare const useInventoryApi: () => {
|
|
|
533
533
|
precision: number;
|
|
534
534
|
};
|
|
535
535
|
} | null | undefined;
|
|
536
|
+
id: string;
|
|
536
537
|
type: "RECIPE" | "SKU" | "SKU_GROUP";
|
|
537
538
|
amount: {
|
|
538
539
|
amount: number;
|
|
539
540
|
precision: number;
|
|
540
541
|
};
|
|
541
|
-
id: string;
|
|
542
542
|
}[];
|
|
543
543
|
}[] | null | undefined;
|
|
544
544
|
skuGroup?: {
|
|
545
545
|
ref?: string | null | undefined;
|
|
546
|
+
_id: string;
|
|
547
|
+
name: string;
|
|
546
548
|
unit: {
|
|
547
549
|
_id: string;
|
|
548
550
|
name: string;
|
|
@@ -558,8 +560,6 @@ export declare const useInventoryApi: () => {
|
|
|
558
560
|
};
|
|
559
561
|
}[];
|
|
560
562
|
};
|
|
561
|
-
_id: string;
|
|
562
|
-
name: string;
|
|
563
563
|
skus: {
|
|
564
564
|
trackingMeasurement?: string | null | undefined;
|
|
565
565
|
convert?: {
|
|
@@ -574,12 +574,12 @@ export declare const useInventoryApi: () => {
|
|
|
574
574
|
precision: number;
|
|
575
575
|
};
|
|
576
576
|
} | null | undefined;
|
|
577
|
+
id: string;
|
|
577
578
|
type: "RECIPE" | "SKU" | "SKU_GROUP";
|
|
578
579
|
amount: {
|
|
579
580
|
amount: number;
|
|
580
581
|
precision: number;
|
|
581
582
|
};
|
|
582
|
-
id: string;
|
|
583
583
|
}[] | null | undefined;
|
|
584
584
|
} | null | undefined;
|
|
585
585
|
valuation?: "FIFO" | "LIFO" | "FEFO" | "WAVG" | null | undefined;
|
|
@@ -605,9 +605,9 @@ export declare const useInventoryApi: () => {
|
|
|
605
605
|
mid: number;
|
|
606
606
|
} | null | undefined;
|
|
607
607
|
customAttributes?: Record<string, any> | null | undefined;
|
|
608
|
-
code: string;
|
|
609
608
|
_id: string;
|
|
610
609
|
name: string;
|
|
610
|
+
code: string;
|
|
611
611
|
}[];
|
|
612
612
|
}[] | null | undefined;
|
|
613
613
|
updatedAt?: string | null | undefined;
|
package/dist/api/netsuite.d.ts
CHANGED
|
@@ -25,12 +25,88 @@ export declare const useNetSuiteApi: () => {
|
|
|
25
25
|
}[];
|
|
26
26
|
enable: boolean;
|
|
27
27
|
locations: {
|
|
28
|
+
id: string;
|
|
29
|
+
name: string;
|
|
28
30
|
type: "restaurant" | "warehouse";
|
|
31
|
+
netSuiteId: string;
|
|
32
|
+
subsidiaryId: string;
|
|
33
|
+
}[];
|
|
34
|
+
childItems: {
|
|
35
|
+
externalId?: string | null | undefined;
|
|
36
|
+
cogsAccount?: {
|
|
37
|
+
id: string;
|
|
38
|
+
refName: string;
|
|
39
|
+
} | null | undefined;
|
|
40
|
+
pktCode?: string | null | undefined;
|
|
41
|
+
pktName?: string | null | undefined;
|
|
42
|
+
netSuiteId: string;
|
|
43
|
+
parentNetSuiteId: string;
|
|
44
|
+
unitTypeId: string;
|
|
45
|
+
unitOfMeasureId: string;
|
|
46
|
+
subsidiaryIds: string[];
|
|
47
|
+
includeChildren: boolean;
|
|
48
|
+
}[];
|
|
49
|
+
units: {
|
|
50
|
+
id: string;
|
|
51
|
+
measurements: {
|
|
52
|
+
id: string;
|
|
53
|
+
netSuiteId: string;
|
|
54
|
+
}[];
|
|
55
|
+
netSuiteId: string;
|
|
56
|
+
baseUnitUnitOfMeasureId: string;
|
|
57
|
+
}[];
|
|
58
|
+
subsidiaries: {
|
|
59
|
+
parentId?: string | undefined;
|
|
60
|
+
id: string;
|
|
61
|
+
name: string;
|
|
62
|
+
country: string;
|
|
63
|
+
currency: string;
|
|
64
|
+
}[];
|
|
65
|
+
vendors: {
|
|
66
|
+
externalId?: string | null | undefined;
|
|
67
|
+
custentity_financeapproval?: boolean | null | undefined;
|
|
29
68
|
id: string;
|
|
30
69
|
name: string;
|
|
31
70
|
netSuiteId: string;
|
|
32
71
|
subsidiaryId: string;
|
|
33
72
|
}[];
|
|
73
|
+
realm: string;
|
|
74
|
+
}>;
|
|
75
|
+
updateLocationConfigs(payload: Record<string, {
|
|
76
|
+
netsuiteId: string;
|
|
77
|
+
name: string;
|
|
78
|
+
}>): Promise<{
|
|
79
|
+
accessToken?: string | null | undefined;
|
|
80
|
+
syncedAt?: string | null | undefined;
|
|
81
|
+
restlet?: {
|
|
82
|
+
type: "createItemReceipt" | "retrieveRecordInfo";
|
|
83
|
+
scriptId: string;
|
|
84
|
+
deploymentId: string;
|
|
85
|
+
}[] | null | undefined;
|
|
86
|
+
_id: string;
|
|
87
|
+
items: {
|
|
88
|
+
externalId?: string | null | undefined;
|
|
89
|
+
cogsAccount?: {
|
|
90
|
+
id: string;
|
|
91
|
+
refName: string;
|
|
92
|
+
} | null | undefined;
|
|
93
|
+
pktCode?: string | null | undefined;
|
|
94
|
+
pktName?: string | null | undefined;
|
|
95
|
+
id: string;
|
|
96
|
+
netSuiteId: string;
|
|
97
|
+
unitTypeId: string;
|
|
98
|
+
unitOfMeasureId: string;
|
|
99
|
+
subsidiaryIds: string[];
|
|
100
|
+
includeChildren: boolean;
|
|
101
|
+
}[];
|
|
102
|
+
enable: boolean;
|
|
103
|
+
locations: {
|
|
104
|
+
id: string;
|
|
105
|
+
name: string;
|
|
106
|
+
type: "restaurant" | "warehouse";
|
|
107
|
+
netSuiteId: string;
|
|
108
|
+
subsidiaryId: string;
|
|
109
|
+
}[];
|
|
34
110
|
childItems: {
|
|
35
111
|
externalId?: string | null | undefined;
|
|
36
112
|
cogsAccount?: {
|
|
@@ -72,6 +148,11 @@ export declare const useNetSuiteApi: () => {
|
|
|
72
148
|
}[];
|
|
73
149
|
realm: string;
|
|
74
150
|
}>;
|
|
151
|
+
getNetSuiteLocationOptions(): Promise<{
|
|
152
|
+
netsuiteId: string;
|
|
153
|
+
name: string;
|
|
154
|
+
subsidiaryName: string;
|
|
155
|
+
}[]>;
|
|
75
156
|
getNetSuiteLocation(): Promise<any>;
|
|
76
157
|
syncPurchaseOrder(locationId: string, poId: string): Promise<{
|
|
77
158
|
accessToken?: string | null | undefined;
|
|
@@ -99,9 +180,9 @@ export declare const useNetSuiteApi: () => {
|
|
|
99
180
|
}[];
|
|
100
181
|
enable: boolean;
|
|
101
182
|
locations: {
|
|
102
|
-
type: "restaurant" | "warehouse";
|
|
103
183
|
id: string;
|
|
104
184
|
name: string;
|
|
185
|
+
type: "restaurant" | "warehouse";
|
|
105
186
|
netSuiteId: string;
|
|
106
187
|
subsidiaryId: string;
|
|
107
188
|
}[];
|
|
@@ -146,6 +227,7 @@ export declare const useNetSuiteApi: () => {
|
|
|
146
227
|
}[];
|
|
147
228
|
realm: string;
|
|
148
229
|
}>;
|
|
230
|
+
getItemAverageCosts(locationId: string): Promise<Record<string, number>>;
|
|
149
231
|
urls: {
|
|
150
232
|
portalBackendUrl: string;
|
|
151
233
|
netSuiteBackendUrl: string;
|
|
@@ -3,7 +3,9 @@ export type WithToInventoryLocation = {
|
|
|
3
3
|
toInventoryLocation: FdoInventoryLocation;
|
|
4
4
|
};
|
|
5
5
|
export declare const usePurchaseOrderApi: () => {
|
|
6
|
-
readRequests(dbName?: string): Promise<WithRev<FdoPurchaseOrderRequest & WithToInventoryLocation>[]>;
|
|
6
|
+
readRequests(dbName?: string, includeReturnRequest?: boolean): Promise<WithRev<FdoPurchaseOrderRequest & WithToInventoryLocation>[]>;
|
|
7
|
+
readRequestById(_id: string, dbName?: string): Promise<FdoPurchaseOrderRequest | null>;
|
|
8
|
+
readRequestByIds(requestIds: string[], dbName?: string): Promise<(FdoPurchaseOrderRequest & WithToInventoryLocation)[]>;
|
|
7
9
|
getPurchaseOrders({ start, end }: {
|
|
8
10
|
start: string;
|
|
9
11
|
end: string;
|
|
@@ -11,8 +13,10 @@ export declare const usePurchaseOrderApi: () => {
|
|
|
11
13
|
getLatestPurchaseOrderRequest(purchaseOrderId: FdoPurchaseOrder['_id']): Promise<FdoPurchaseOrderRequest | undefined>;
|
|
12
14
|
getPurchaseOrderById(id: FdoPurchaseOrder['_id']): Promise<WithRev<FdoPurchaseOrder>>;
|
|
13
15
|
processPurchaseOrder(dto: FdtoPurchaseOrderOperation, db?: string): Promise<WithRev<FdoPurchaseOrder>>;
|
|
16
|
+
processPurchaseOrderV2(dto: FdtoPurchaseOrderOperateV2Request, db?: string): Promise<WithRev<FdoPurchaseOrder>>;
|
|
14
17
|
createPurchaseOrder(purchase: FdtoCreatePurchaseOrder): Promise<WithRev<FdoPurchaseOrder>>;
|
|
15
18
|
updatePurchaseOrder(purchase: FdtoUpdatePurchaseOrder): Promise<WithRev<FdoPurchaseOrder>>;
|
|
16
19
|
importFromXilnex(payload: FdtoXilnexTransferNote): Promise<void>;
|
|
20
|
+
getWorkflowConfig(): Promise<FdoPurchaseOrderWorkflowConfig>;
|
|
17
21
|
};
|
|
18
22
|
export declare const purchaseOrderApi: {};
|
package/dist/api/stock.d.ts
CHANGED
|
@@ -15,18 +15,6 @@ export declare const useStockApi: () => {
|
|
|
15
15
|
}>;
|
|
16
16
|
startRecalculateTask(): Promise<any>;
|
|
17
17
|
calculateStockSnapshotAtDate(effectiveAt: string, closingDraftId: string): Promise<{
|
|
18
|
-
costs?: {
|
|
19
|
-
adjustmentId?: string | null | undefined;
|
|
20
|
-
amount: {
|
|
21
|
-
amount: number;
|
|
22
|
-
precision: number;
|
|
23
|
-
};
|
|
24
|
-
cost: {
|
|
25
|
-
currency: "AED" | "AFN" | "ALL" | "AMD" | "ANG" | "AOA" | "ARS" | "AUD" | "AWG" | "AZN" | "BAM" | "BBD" | "BDT" | "BGN" | "BHD" | "BIF" | "BMD" | "BND" | "BOB" | "BOV" | "BRL" | "BSD" | "BTN" | "BWP" | "BYN" | "BZD" | "CAD" | "CDF" | "CHE" | "CHF" | "CHW" | "CLF" | "CLP" | "CNY" | "COP" | "COU" | "CRC" | "CUC" | "CUP" | "CVE" | "CZK" | "DJF" | "DKK" | "DOP" | "DZD" | "EGP" | "ERN" | "ETB" | "EUR" | "FJD" | "FKP" | "GBP" | "GEL" | "GHS" | "GIP" | "GMD" | "GNF" | "GTQ" | "GYD" | "HKD" | "HNL" | "HRK" | "HTG" | "HUF" | "IDR" | "ILS" | "INR" | "IQD" | "IRR" | "ISK" | "JMD" | "JOD" | "JPY" | "KES" | "KGS" | "KHR" | "KMF" | "KPW" | "KRW" | "KWD" | "KYD" | "KZT" | "LAK" | "LBP" | "LKR" | "LRD" | "LSL" | "LYD" | "MAD" | "MDL" | "MGA" | "MKD" | "MMK" | "MNT" | "MOP" | "MRU" | "MUR" | "MVR" | "MWK" | "MXN" | "MXV" | "MYR" | "MZN" | "NAD" | "NGN" | "NIO" | "NOK" | "NPR" | "NZD" | "OMR" | "PAB" | "PEN" | "PGK" | "PHP" | "PKR" | "PLN" | "PYG" | "QAR" | "RON" | "RSD" | "RUB" | "RWF" | "SAR" | "SBD" | "SCR" | "SDG" | "SEK" | "SGD" | "SHP" | "SLL" | "SOS" | "SRD" | "SSP" | "STN" | "SVC" | "SYP" | "SZL" | "THB" | "TJS" | "TMT" | "TND" | "TOP" | "TRY" | "TTD" | "TWD" | "TZS" | "UAH" | "UGX" | "USD" | "USN" | "UYI" | "UYU" | "UYW" | "UZS" | "VES" | "VND" | "VUV" | "WST" | "XAF" | "XAG" | "XAU" | "XBA" | "XBB" | "XBC" | "XBD" | "XCD" | "XDR" | "XOF" | "XPD" | "XPF" | "XPT" | "XSU" | "XTS" | "XUA" | "XXX" | "YER" | "ZAR" | "ZMW" | "ZWL";
|
|
26
|
-
amount: number;
|
|
27
|
-
precision: number;
|
|
28
|
-
};
|
|
29
|
-
}[] | null | undefined;
|
|
30
18
|
closing?: {
|
|
31
19
|
costBalances?: {
|
|
32
20
|
adjustmentId?: string | null | undefined;
|
|
@@ -47,6 +35,18 @@ export declare const useStockApi: () => {
|
|
|
47
35
|
id: string;
|
|
48
36
|
createdAt: string;
|
|
49
37
|
} | null | undefined;
|
|
38
|
+
costs?: {
|
|
39
|
+
adjustmentId?: string | null | undefined;
|
|
40
|
+
amount: {
|
|
41
|
+
amount: number;
|
|
42
|
+
precision: number;
|
|
43
|
+
};
|
|
44
|
+
cost: {
|
|
45
|
+
currency: "AED" | "AFN" | "ALL" | "AMD" | "ANG" | "AOA" | "ARS" | "AUD" | "AWG" | "AZN" | "BAM" | "BBD" | "BDT" | "BGN" | "BHD" | "BIF" | "BMD" | "BND" | "BOB" | "BOV" | "BRL" | "BSD" | "BTN" | "BWP" | "BYN" | "BZD" | "CAD" | "CDF" | "CHE" | "CHF" | "CHW" | "CLF" | "CLP" | "CNY" | "COP" | "COU" | "CRC" | "CUC" | "CUP" | "CVE" | "CZK" | "DJF" | "DKK" | "DOP" | "DZD" | "EGP" | "ERN" | "ETB" | "EUR" | "FJD" | "FKP" | "GBP" | "GEL" | "GHS" | "GIP" | "GMD" | "GNF" | "GTQ" | "GYD" | "HKD" | "HNL" | "HRK" | "HTG" | "HUF" | "IDR" | "ILS" | "INR" | "IQD" | "IRR" | "ISK" | "JMD" | "JOD" | "JPY" | "KES" | "KGS" | "KHR" | "KMF" | "KPW" | "KRW" | "KWD" | "KYD" | "KZT" | "LAK" | "LBP" | "LKR" | "LRD" | "LSL" | "LYD" | "MAD" | "MDL" | "MGA" | "MKD" | "MMK" | "MNT" | "MOP" | "MRU" | "MUR" | "MVR" | "MWK" | "MXN" | "MXV" | "MYR" | "MZN" | "NAD" | "NGN" | "NIO" | "NOK" | "NPR" | "NZD" | "OMR" | "PAB" | "PEN" | "PGK" | "PHP" | "PKR" | "PLN" | "PYG" | "QAR" | "RON" | "RSD" | "RUB" | "RWF" | "SAR" | "SBD" | "SCR" | "SDG" | "SEK" | "SGD" | "SHP" | "SLL" | "SOS" | "SRD" | "SSP" | "STN" | "SVC" | "SYP" | "SZL" | "THB" | "TJS" | "TMT" | "TND" | "TOP" | "TRY" | "TTD" | "TWD" | "TZS" | "UAH" | "UGX" | "USD" | "USN" | "UYI" | "UYU" | "UYW" | "UZS" | "VES" | "VND" | "VUV" | "WST" | "XAF" | "XAG" | "XAU" | "XBA" | "XBB" | "XBC" | "XBD" | "XCD" | "XDR" | "XOF" | "XPD" | "XPF" | "XPT" | "XSU" | "XTS" | "XUA" | "XXX" | "YER" | "ZAR" | "ZMW" | "ZWL";
|
|
46
|
+
amount: number;
|
|
47
|
+
precision: number;
|
|
48
|
+
};
|
|
49
|
+
}[] | null | undefined;
|
|
50
50
|
weightedAverage?: {
|
|
51
51
|
currency: "AED" | "AFN" | "ALL" | "AMD" | "ANG" | "AOA" | "ARS" | "AUD" | "AWG" | "AZN" | "BAM" | "BBD" | "BDT" | "BGN" | "BHD" | "BIF" | "BMD" | "BND" | "BOB" | "BOV" | "BRL" | "BSD" | "BTN" | "BWP" | "BYN" | "BZD" | "CAD" | "CDF" | "CHE" | "CHF" | "CHW" | "CLF" | "CLP" | "CNY" | "COP" | "COU" | "CRC" | "CUC" | "CUP" | "CVE" | "CZK" | "DJF" | "DKK" | "DOP" | "DZD" | "EGP" | "ERN" | "ETB" | "EUR" | "FJD" | "FKP" | "GBP" | "GEL" | "GHS" | "GIP" | "GMD" | "GNF" | "GTQ" | "GYD" | "HKD" | "HNL" | "HRK" | "HTG" | "HUF" | "IDR" | "ILS" | "INR" | "IQD" | "IRR" | "ISK" | "JMD" | "JOD" | "JPY" | "KES" | "KGS" | "KHR" | "KMF" | "KPW" | "KRW" | "KWD" | "KYD" | "KZT" | "LAK" | "LBP" | "LKR" | "LRD" | "LSL" | "LYD" | "MAD" | "MDL" | "MGA" | "MKD" | "MMK" | "MNT" | "MOP" | "MRU" | "MUR" | "MVR" | "MWK" | "MXN" | "MXV" | "MYR" | "MZN" | "NAD" | "NGN" | "NIO" | "NOK" | "NPR" | "NZD" | "OMR" | "PAB" | "PEN" | "PGK" | "PHP" | "PKR" | "PLN" | "PYG" | "QAR" | "RON" | "RSD" | "RUB" | "RWF" | "SAR" | "SBD" | "SCR" | "SDG" | "SEK" | "SGD" | "SHP" | "SLL" | "SOS" | "SRD" | "SSP" | "STN" | "SVC" | "SYP" | "SZL" | "THB" | "TJS" | "TMT" | "TND" | "TOP" | "TRY" | "TTD" | "TWD" | "TZS" | "UAH" | "UGX" | "USD" | "USN" | "UYI" | "UYU" | "UYW" | "UZS" | "VES" | "VND" | "VUV" | "WST" | "XAF" | "XAG" | "XAU" | "XBA" | "XBB" | "XBC" | "XBD" | "XCD" | "XDR" | "XOF" | "XPD" | "XPF" | "XPT" | "XSU" | "XTS" | "XUA" | "XXX" | "YER" | "ZAR" | "ZMW" | "ZWL";
|
|
52
52
|
amount: number;
|