@feedmepos/mf-inventory-portal 1.2.1 → 1.2.2-5.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-DMkUg806.js +297 -0
- package/dist/{ApprovalView-DwRrbVDo.js → ApprovalView-DWJh2K6W.js} +65 -64
- package/dist/{BindingsDialog-DUVKv10-.js → BindingsDialog-EmHCvqJI.js} +2 -2
- package/dist/{BindingsPicker-Daib_iq4.js → BindingsPicker-h_9jm1s0.js} +3 -3
- package/dist/{BindingsTable-Bv9UmcJP.js → BindingsTable-BAVWGUoa.js} +1 -1
- package/dist/ClosingDraftView-Du4kOwIg.js +1899 -0
- package/dist/ClosingHistoryView-DuW2Vtrs.js +355 -0
- package/dist/ClosingTemplateView-CfPY8R5M.js +2001 -0
- package/dist/{DeliveryOrderPrintPreview-DZPcRAja.js → DeliveryOrderPrintPreview-C6Cj8mOp.js} +9 -9
- package/dist/FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-WWIrybw_.js +230 -0
- package/dist/{FmMultiselectDialog-CZmwOkrb.js → FmMultiselectDialog-BzWrQOS4.js} +1 -1
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-C-2V2bGc.js → FmUnitInput.vue_vue_type_script_setup_true_lang-DwqVRUFz.js} +36 -36
- package/dist/ImportView-lKlYeLay.js +1291 -0
- package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-BGnoF1Zz.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-_2WZMZU2.js} +5 -5
- package/dist/{IngredientGroupView-CAVYpEj3.js → IngredientGroupView-CrmwR2Xt.js} +34 -35
- package/dist/IngredientsView-1bAsyz-b.js +2254 -0
- package/dist/{IntegrationView-DdLFyZ4H.js → IntegrationView-D16qeEc_.js} +1773 -1635
- package/dist/{InventoryBindingForm-C7BdEDtM.js → InventoryBindingForm-BRwOXV_P.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-B7DND2dQ.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-NDbtbtqK.js} +28 -28
- package/dist/{InventoryBindingSummary-IZ7F-Lti.js → InventoryBindingSummary-DKM2gX8_.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-sgqVSlUB.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CdaiYTdf.js} +4 -4
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-DeF32bHu.js → PremiumBadge.vue_vue_type_script_setup_true_lang-B0OKeK5O.js} +7 -7
- package/dist/{PublishView-DkgfYneI.js → PublishView-D0NnU22l.js} +73 -63
- package/dist/{PurchaseOrderPrintPreview-CltLC4o4.js → PurchaseOrderPrintPreview-BmuwNbeL.js} +4 -4
- package/dist/{ReceiveRequestView-Dj7ji0DY.js → ReceiveRequestView-j79m7TKk.js} +343 -333
- package/dist/RecipeView-D_fNQQ-C.js +636 -0
- package/dist/StockView-DX_xeFBT.js +2385 -0
- package/dist/SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-Bg49isUy.js +172 -0
- package/dist/{SupplierView-DE_M_9kd.js → SupplierView-DuFTqbOg.js} +1193 -1073
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-c428GXwc.js +3233 -0
- package/dist/{TransferTemplateView-gWGBCF3u.js → TransferTemplateView-Ccsfcetz.js} +104 -103
- package/dist/UnitView-BklpNsFN.js +674 -0
- package/dist/WarehouseView-BrURbU67.js +1066 -0
- package/dist/api/adjustment-template.d.ts +1 -0
- package/dist/api/bill.d.ts +140 -2
- package/dist/api/closing-template.d.ts +1 -0
- package/dist/api/closing.d.ts +1 -0
- package/dist/api/inventory.d.ts +405 -0
- package/dist/api/netsuite.d.ts +5 -1
- package/dist/api/purchase-order-template.d.ts +1 -0
- package/dist/api/purchase-order.d.ts +3 -0
- package/dist/api/shipment.d.ts +11 -0
- package/dist/api/stock.d.ts +2 -44
- package/dist/api/warehouse.d.ts +3 -1
- package/dist/{app-CruHLH1e.js → app-a9r50k3U.js} +68551 -67573
- package/dist/app.d.ts +643 -15
- package/dist/app.js +6 -6
- package/dist/components/FmAdminBadge.vue.d.ts +1 -4
- package/dist/components/FmEnhancedSelect.vue.d.ts +30 -0
- package/dist/components/FmInventoryTableToolbar.vue.d.ts +16 -2
- package/dist/components/FmLockableField.vue.d.ts +3 -0
- package/dist/components/netsuite/ItemSubsidiaryTreeDialog.vue.d.ts +16 -0
- package/dist/components/netsuite/SubsidiaryTreeDialog.vue.d.ts +2 -0
- package/dist/composable/defineApi.d.ts +1 -1
- package/dist/composable/useIframe.d.ts +2 -2
- package/dist/{decimal-izbvCC1j.js → decimal-AusUnA1W.js} +1 -1
- package/dist/{format-unit-display-4SAdfyZB.js → format-unit-display-BqkHL-ph.js} +397 -429
- package/dist/helper/array.d.ts +1 -0
- package/dist/helper/core/country/utils.d.ts +3 -4
- package/dist/helper/country.d.ts +6 -255
- package/dist/helper/number.d.ts +1 -0
- package/dist/import-export.helper-PIyNeHfa.js +238 -0
- package/dist/{index-B6GGthLw.js → index-CjxirPvn.js} +283 -268
- package/dist/{index-CnQloOEo.js → index-Dj9-pdT9.js} +1 -1
- package/dist/layout/SingleColumnLayout.vue.d.ts +6 -3
- package/dist/purchase-order-template-CQikvY1p.js +41 -0
- package/dist/router/name.d.ts +2 -0
- package/dist/stock-CDZ2uWSF.js +83 -0
- package/dist/stock-Dw908dIC.js +74 -0
- package/dist/stores/feature.d.ts +12 -0
- package/dist/stores/integration/netsuite.d.ts +42 -0
- package/dist/stores/inventory.d.ts +28 -199
- package/dist/stores/location.d.ts +331 -1
- package/dist/stores/supplier.d.ts +96 -0
- package/dist/stores/warehouse.d.ts +4 -0
- package/dist/style.css +1 -1
- package/dist/{supplier-CTVE1lHO.js → supplier-BPPBUudN.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{use-ingredient-select-dialog-CM80TfX0.js → use-ingredient-select-dialog-C_fSKN3_.js} +5 -5
- package/dist/{use-inventory-binding-dialog-D_omdhgn.js → use-inventory-binding-dialog-ClAkJ864.js} +8 -8
- package/dist/views/adjustment-template/wastage-template/actions.d.ts +60 -0
- package/dist/views/adjustment-template/wastage-template/table.d.ts +60 -0
- package/dist/views/closing-draft/components/closing-draft-dialog/ClosingDraftDialog.vue.d.ts +56 -0
- package/dist/views/closing-draft/composables/use-closing-draft-actions.d.ts +3 -3
- package/dist/views/closing-draft/composables/use-closing-draft-table.d.ts +468 -0
- package/dist/views/closing-draft/helpers/export-draft.helper.d.ts +9 -2
- package/dist/views/closing-history/ClosingHistoryView.vue.d.ts +2 -0
- package/dist/views/closing-template/composables/use-closing-template-actions.d.ts +4 -1
- package/dist/views/closing-template/helpers/import-export.helper.d.ts +5 -0
- package/dist/views/import/ImportView.vue.d.ts +3 -0
- package/dist/views/import/components/ImportDialog.vue.d.ts +2 -0
- package/dist/views/import/helper/import-export.helper.d.ts +4 -0
- package/dist/views/ingredients/components/ingredient-dialog/IngredientDialogProps.d.ts +1 -1
- package/dist/views/ingredients/components/ingredient-form/IngredientForm.vue.d.ts +181 -12
- package/dist/views/ingredients/components/ingredient-form/IngredientFormProps.d.ts +6 -0
- package/dist/views/ingredients/helper/import-export.helper.d.ts +4 -1
- package/dist/views/integration/components/netsuite/business/BusinessNetSuiteSideSheet.vue.d.ts +2 -0
- package/dist/views/receive-request/components/delivery-order-form/CreateForm.vue.d.ts +16 -0
- package/dist/views/receive-request/components/delivery-order-form/CreateFormProps.d.ts +4 -0
- package/dist/views/receive-request/components/delivery-order-form/EditForm.vue.d.ts +16 -0
- package/dist/views/receive-request/components/delivery-order-form/EditFormProps.d.ts +4 -0
- package/dist/views/receive-request/components/delivery-order-form/SystemTrailDialog.vue.d.ts +21 -0
- package/dist/views/receive-request/components/netsuite/NetSuiteTransactionChangeLog.vue.d.ts +15 -0
- package/dist/views/receive-request/components/transfer-details/TransferDetailsProps.d.ts +1 -0
- package/dist/views/receive-request/components/transfer-form/TransferForm.vue.d.ts +420 -2
- package/dist/views/receive-request/composables/use-process-purchase-order.d.ts +99 -0
- package/dist/views/receive-request/composables/use-receive-request-form.d.ts +644 -13
- package/dist/views/receive-request/composables/use-receive-request-table.d.ts +711 -14
- package/dist/views/recipe/RecipeView.vue.d.ts +1 -0
- package/dist/views/recipe/components/import-recipes/ImportRecipeItem.vue.d.ts +16 -0
- package/dist/views/recipe/components/import-recipes/ImportRecipes.vue.d.ts +2 -0
- package/dist/views/recipe/helper/import-recipe.d.ts +48 -0
- package/dist/views/stock/components/StockRecordCard.vue.d.ts +70 -1
- package/dist/views/stock/components/dialog/RecalculationDialog.vue.d.ts +11 -0
- package/dist/views/stock/components/dialog/RecalculationDialogProps.d.ts +3 -0
- package/dist/views/stock/components/dialog/StockAdjustmentSideSheet.vue.d.ts +20 -0
- package/dist/views/supplier/components/SupplierForm.vue.d.ts +8 -0
- package/dist/views/supplier/components/SupplierSupplyItemField.vue.d.ts +3 -0
- package/dist/views/supplier/composables/use-supplier-table.d.ts +4 -0
- package/dist/views/transfer-template/components/transfer-template-dialog/TransferTemplateDialog.vue.d.ts +8 -0
- package/dist/views/transfer-template/components/transfer-template-form/components/NetSuiteCustomCodeSelection.vue.d.ts +2 -0
- package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-locations.d.ts +16 -0
- package/dist/views/transfer-template/composables/use-transfer-template-actions.d.ts +48 -0
- package/dist/views/transfer-template/composables/use-transfer-template-table.d.ts +48 -0
- package/dist/views/unit/UnitView.vue.d.ts +1 -0
- package/dist/views/unit/components/import-units/ImportUnitItem.vue.d.ts +12 -0
- package/dist/views/unit/components/import-units/ImportUnitItemProps.d.ts +6 -0
- package/dist/views/unit/components/import-units/ImportUnits.vue.d.ts +9 -0
- package/dist/views/unit/components/import-units/ImportUnitsProps.d.ts +5 -0
- package/dist/views/unit/helper/import-export.helper.d.ts +40 -0
- package/dist/views/warehouse/components/WarehouseForm.vue.d.ts +8 -0
- package/package.json +3 -3
- package/dist/App-BqaRC0Sb.js +0 -276
- package/dist/ClosingDraftView-sJ_zRPeo.js +0 -1687
- package/dist/ClosingTemplateView-cNgXHq1r.js +0 -1908
- package/dist/FmAdminBadge-oCnz8SW6.js +0 -34
- package/dist/FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-BKR8C4p_.js +0 -224
- package/dist/IngredientsView-CHHeAJH_.js +0 -1858
- package/dist/RecipeView-BukmKdVG.js +0 -621
- package/dist/StockForecast.vue_vue_type_style_index_0_lang-KLXSWvo5.js +0 -59
- package/dist/StockView-wxRCw_w-.js +0 -2087
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-eqUOnJoM.js +0 -2336
- package/dist/UnitView-BgwDmGZo.js +0 -667
- package/dist/WarehouseView-BdccenhO.js +0 -1034
- package/dist/array-Ca8T3f_G.js +0 -44
- package/dist/helper/core/country/codes.d.ts +0 -255
- package/dist/stock-BJP5BB5b.js +0 -146
package/dist/api/inventory.d.ts
CHANGED
|
@@ -1,10 +1,15 @@
|
|
|
1
1
|
import { type WithRev } from '@/api/type';
|
|
2
|
+
import type { FdtoBulkSkuRequest, FdtoBulkUnitsRequest, FdtoBulkRecipeRequest } from '@feedmepos/zod-inventory';
|
|
2
3
|
export declare const useInventoryApi: () => {
|
|
3
4
|
readInventoryLocations(): Promise<{
|
|
4
5
|
inventory?: {
|
|
5
6
|
_id: string;
|
|
6
7
|
updatedAt: string;
|
|
7
8
|
} | null | undefined;
|
|
9
|
+
preparationTime?: {
|
|
10
|
+
unit: "day" | "year" | "month" | "week" | "hour" | "minute" | "second" | "millisecond";
|
|
11
|
+
value: number;
|
|
12
|
+
} | null | undefined;
|
|
8
13
|
name: string;
|
|
9
14
|
type: "restaurant" | "warehouse";
|
|
10
15
|
acceptRequest: boolean;
|
|
@@ -92,6 +97,101 @@ export declare const useInventoryApi: () => {
|
|
|
92
97
|
};
|
|
93
98
|
}[]>;
|
|
94
99
|
readAllInventoryLocations(): Promise<{
|
|
100
|
+
inventory?: {
|
|
101
|
+
_id: string;
|
|
102
|
+
updatedAt: string;
|
|
103
|
+
} | null | undefined;
|
|
104
|
+
preparationTime?: {
|
|
105
|
+
unit: "day" | "year" | "month" | "week" | "hour" | "minute" | "second" | "millisecond";
|
|
106
|
+
value: number;
|
|
107
|
+
} | null | undefined;
|
|
108
|
+
name: string;
|
|
109
|
+
type: "restaurant" | "warehouse";
|
|
110
|
+
acceptRequest: boolean;
|
|
111
|
+
dbName: string;
|
|
112
|
+
doc: {
|
|
113
|
+
_id: string;
|
|
114
|
+
businessId: string;
|
|
115
|
+
profile: {
|
|
116
|
+
code?: string | null | undefined;
|
|
117
|
+
url?: string | null | undefined;
|
|
118
|
+
description?: string | null | undefined;
|
|
119
|
+
_id?: string | null | undefined;
|
|
120
|
+
legalName?: string | null | undefined;
|
|
121
|
+
sstRegNo?: string | null | undefined;
|
|
122
|
+
discovery?: boolean | null | undefined;
|
|
123
|
+
coverPhoto?: string | null | undefined;
|
|
124
|
+
thumbnailPhoto?: string | null | undefined;
|
|
125
|
+
photos?: string[] | null | undefined;
|
|
126
|
+
operatingHours?: {
|
|
127
|
+
0: {
|
|
128
|
+
hours: {
|
|
129
|
+
end: string;
|
|
130
|
+
start: string;
|
|
131
|
+
}[];
|
|
132
|
+
enable: boolean;
|
|
133
|
+
};
|
|
134
|
+
2: {
|
|
135
|
+
hours: {
|
|
136
|
+
end: string;
|
|
137
|
+
start: string;
|
|
138
|
+
}[];
|
|
139
|
+
enable: boolean;
|
|
140
|
+
};
|
|
141
|
+
1: {
|
|
142
|
+
hours: {
|
|
143
|
+
end: string;
|
|
144
|
+
start: string;
|
|
145
|
+
}[];
|
|
146
|
+
enable: boolean;
|
|
147
|
+
};
|
|
148
|
+
3: {
|
|
149
|
+
hours: {
|
|
150
|
+
end: string;
|
|
151
|
+
start: string;
|
|
152
|
+
}[];
|
|
153
|
+
enable: boolean;
|
|
154
|
+
};
|
|
155
|
+
4: {
|
|
156
|
+
hours: {
|
|
157
|
+
end: string;
|
|
158
|
+
start: string;
|
|
159
|
+
}[];
|
|
160
|
+
enable: boolean;
|
|
161
|
+
};
|
|
162
|
+
5: {
|
|
163
|
+
hours: {
|
|
164
|
+
end: string;
|
|
165
|
+
start: string;
|
|
166
|
+
}[];
|
|
167
|
+
enable: boolean;
|
|
168
|
+
};
|
|
169
|
+
6: {
|
|
170
|
+
hours: {
|
|
171
|
+
end: string;
|
|
172
|
+
start: string;
|
|
173
|
+
}[];
|
|
174
|
+
enable: boolean;
|
|
175
|
+
};
|
|
176
|
+
} | null | undefined;
|
|
177
|
+
tags?: string[] | null | undefined;
|
|
178
|
+
name: string;
|
|
179
|
+
address: {
|
|
180
|
+
coordinates?: number[] | null | undefined;
|
|
181
|
+
line2?: string | null | undefined;
|
|
182
|
+
state: string;
|
|
183
|
+
country: string;
|
|
184
|
+
line1: string;
|
|
185
|
+
city: string;
|
|
186
|
+
postcode: string;
|
|
187
|
+
};
|
|
188
|
+
email: string;
|
|
189
|
+
phoneNo: string;
|
|
190
|
+
regNo: string;
|
|
191
|
+
};
|
|
192
|
+
};
|
|
193
|
+
}[]>;
|
|
194
|
+
readInventoryLocationsWithInventory(locationIds?: string[]): Promise<{
|
|
95
195
|
inventory?: {
|
|
96
196
|
_id: string;
|
|
97
197
|
updatedAt: string;
|
|
@@ -637,6 +737,311 @@ export declare const useInventoryApi: () => {
|
|
|
637
737
|
};
|
|
638
738
|
}[];
|
|
639
739
|
}>;
|
|
740
|
+
importUnits(units: FdtoBulkUnitsRequest): Promise<{
|
|
741
|
+
inventory: {
|
|
742
|
+
unit?: {
|
|
743
|
+
_id: string;
|
|
744
|
+
name: string;
|
|
745
|
+
abbrev: string;
|
|
746
|
+
precision: number;
|
|
747
|
+
measurements: {
|
|
748
|
+
id: string;
|
|
749
|
+
name: string;
|
|
750
|
+
abbrev: string;
|
|
751
|
+
conversion: {
|
|
752
|
+
amount: number;
|
|
753
|
+
precision: number;
|
|
754
|
+
};
|
|
755
|
+
}[];
|
|
756
|
+
}[] | null | undefined;
|
|
757
|
+
recipe?: {
|
|
758
|
+
customAttributes?: Record<string, any> | null | undefined;
|
|
759
|
+
_id: string;
|
|
760
|
+
name: string;
|
|
761
|
+
contains: {
|
|
762
|
+
measurement?: {
|
|
763
|
+
id: string;
|
|
764
|
+
name: string;
|
|
765
|
+
abbrev: string;
|
|
766
|
+
conversion: {
|
|
767
|
+
amount: number;
|
|
768
|
+
precision: number;
|
|
769
|
+
};
|
|
770
|
+
} | null | undefined;
|
|
771
|
+
id: string;
|
|
772
|
+
type: "RECIPE" | "SKU" | "SKU_GROUP";
|
|
773
|
+
amount: {
|
|
774
|
+
amount: number;
|
|
775
|
+
precision: number;
|
|
776
|
+
};
|
|
777
|
+
}[];
|
|
778
|
+
}[] | null | undefined;
|
|
779
|
+
sku?: {
|
|
780
|
+
isInactive?: boolean | null | undefined;
|
|
781
|
+
trackingMeasurement?: string | null | undefined;
|
|
782
|
+
convert?: {
|
|
783
|
+
measurement?: string | null | undefined;
|
|
784
|
+
inventoryBindings?: {
|
|
785
|
+
measurement?: {
|
|
786
|
+
id: string;
|
|
787
|
+
name: string;
|
|
788
|
+
abbrev: string;
|
|
789
|
+
conversion: {
|
|
790
|
+
amount: number;
|
|
791
|
+
precision: number;
|
|
792
|
+
};
|
|
793
|
+
} | null | undefined;
|
|
794
|
+
id: string;
|
|
795
|
+
type: "RECIPE" | "SKU" | "SKU_GROUP";
|
|
796
|
+
amount: {
|
|
797
|
+
amount: number;
|
|
798
|
+
precision: number;
|
|
799
|
+
};
|
|
800
|
+
}[] | null | undefined;
|
|
801
|
+
} | null | undefined;
|
|
802
|
+
valuation?: "FIFO" | "LIFO" | "FEFO" | "WAVG" | null | undefined;
|
|
803
|
+
defaultCost?: {
|
|
804
|
+
measurement?: {
|
|
805
|
+
id: string;
|
|
806
|
+
name: string;
|
|
807
|
+
abbrev: string;
|
|
808
|
+
conversion: {
|
|
809
|
+
amount: number;
|
|
810
|
+
precision: number;
|
|
811
|
+
};
|
|
812
|
+
} | null | undefined;
|
|
813
|
+
costPerUnit: {
|
|
814
|
+
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";
|
|
815
|
+
amount: number;
|
|
816
|
+
precision: number;
|
|
817
|
+
};
|
|
818
|
+
} | null | undefined;
|
|
819
|
+
operationalGroup?: string | null | undefined;
|
|
820
|
+
thresholds?: {
|
|
821
|
+
low: number;
|
|
822
|
+
mid: number;
|
|
823
|
+
} | null | undefined;
|
|
824
|
+
customAttributes?: Record<string, any> | null | undefined;
|
|
825
|
+
_id: string;
|
|
826
|
+
name: string;
|
|
827
|
+
code: string;
|
|
828
|
+
unit: {
|
|
829
|
+
_id: string;
|
|
830
|
+
name: string;
|
|
831
|
+
abbrev: string;
|
|
832
|
+
precision: number;
|
|
833
|
+
measurements: {
|
|
834
|
+
id: string;
|
|
835
|
+
name: string;
|
|
836
|
+
abbrev: string;
|
|
837
|
+
conversion: {
|
|
838
|
+
amount: number;
|
|
839
|
+
precision: number;
|
|
840
|
+
};
|
|
841
|
+
}[];
|
|
842
|
+
};
|
|
843
|
+
}[] | null | undefined;
|
|
844
|
+
skuGroup?: {
|
|
845
|
+
ref?: string | null | undefined;
|
|
846
|
+
defaultSkuRefs?: {
|
|
847
|
+
priority?: number | null | undefined;
|
|
848
|
+
trackingMeasurement?: string | null | undefined;
|
|
849
|
+
default?: boolean | null | undefined;
|
|
850
|
+
_id: string;
|
|
851
|
+
}[] | null | undefined;
|
|
852
|
+
rules?: {
|
|
853
|
+
rule?: any;
|
|
854
|
+
_id: string;
|
|
855
|
+
name: string;
|
|
856
|
+
skuRefs: {
|
|
857
|
+
priority?: number | null | undefined;
|
|
858
|
+
trackingMeasurement?: string | null | undefined;
|
|
859
|
+
default?: boolean | null | undefined;
|
|
860
|
+
_id: string;
|
|
861
|
+
}[];
|
|
862
|
+
}[] | null | undefined;
|
|
863
|
+
_id: string;
|
|
864
|
+
name: string;
|
|
865
|
+
}[] | null | undefined;
|
|
866
|
+
updatedAt?: string | null | undefined;
|
|
867
|
+
_id: string;
|
|
868
|
+
_rev: string;
|
|
869
|
+
};
|
|
870
|
+
errors: {
|
|
871
|
+
error?: any;
|
|
872
|
+
data: {
|
|
873
|
+
_id: string;
|
|
874
|
+
name: string;
|
|
875
|
+
abbrev: string;
|
|
876
|
+
precision: number;
|
|
877
|
+
measurements: {
|
|
878
|
+
id: string;
|
|
879
|
+
name: string;
|
|
880
|
+
abbrev: string;
|
|
881
|
+
conversion: {
|
|
882
|
+
amount: number;
|
|
883
|
+
precision: number;
|
|
884
|
+
};
|
|
885
|
+
}[];
|
|
886
|
+
};
|
|
887
|
+
}[];
|
|
888
|
+
}>;
|
|
889
|
+
importRecipes(recipes: FdtoBulkRecipeRequest): Promise<{
|
|
890
|
+
inventory: {
|
|
891
|
+
unit?: {
|
|
892
|
+
_id: string;
|
|
893
|
+
name: string;
|
|
894
|
+
abbrev: string;
|
|
895
|
+
precision: number;
|
|
896
|
+
measurements: {
|
|
897
|
+
id: string;
|
|
898
|
+
name: string;
|
|
899
|
+
abbrev: string;
|
|
900
|
+
conversion: {
|
|
901
|
+
amount: number;
|
|
902
|
+
precision: number;
|
|
903
|
+
};
|
|
904
|
+
}[];
|
|
905
|
+
}[] | null | undefined;
|
|
906
|
+
recipe?: {
|
|
907
|
+
customAttributes?: Record<string, any> | null | undefined;
|
|
908
|
+
_id: string;
|
|
909
|
+
name: string;
|
|
910
|
+
contains: {
|
|
911
|
+
measurement?: {
|
|
912
|
+
id: string;
|
|
913
|
+
name: string;
|
|
914
|
+
abbrev: string;
|
|
915
|
+
conversion: {
|
|
916
|
+
amount: number;
|
|
917
|
+
precision: number;
|
|
918
|
+
};
|
|
919
|
+
} | null | undefined;
|
|
920
|
+
id: string;
|
|
921
|
+
type: "RECIPE" | "SKU" | "SKU_GROUP";
|
|
922
|
+
amount: {
|
|
923
|
+
amount: number;
|
|
924
|
+
precision: number;
|
|
925
|
+
};
|
|
926
|
+
}[];
|
|
927
|
+
}[] | null | undefined;
|
|
928
|
+
sku?: {
|
|
929
|
+
isInactive?: boolean | null | undefined;
|
|
930
|
+
trackingMeasurement?: string | null | undefined;
|
|
931
|
+
convert?: {
|
|
932
|
+
measurement?: string | null | undefined;
|
|
933
|
+
inventoryBindings?: {
|
|
934
|
+
measurement?: {
|
|
935
|
+
id: string;
|
|
936
|
+
name: string;
|
|
937
|
+
abbrev: string;
|
|
938
|
+
conversion: {
|
|
939
|
+
amount: number;
|
|
940
|
+
precision: number;
|
|
941
|
+
};
|
|
942
|
+
} | null | undefined;
|
|
943
|
+
id: string;
|
|
944
|
+
type: "RECIPE" | "SKU" | "SKU_GROUP";
|
|
945
|
+
amount: {
|
|
946
|
+
amount: number;
|
|
947
|
+
precision: number;
|
|
948
|
+
};
|
|
949
|
+
}[] | null | undefined;
|
|
950
|
+
} | null | undefined;
|
|
951
|
+
valuation?: "FIFO" | "LIFO" | "FEFO" | "WAVG" | null | undefined;
|
|
952
|
+
defaultCost?: {
|
|
953
|
+
measurement?: {
|
|
954
|
+
id: string;
|
|
955
|
+
name: string;
|
|
956
|
+
abbrev: string;
|
|
957
|
+
conversion: {
|
|
958
|
+
amount: number;
|
|
959
|
+
precision: number;
|
|
960
|
+
};
|
|
961
|
+
} | null | undefined;
|
|
962
|
+
costPerUnit: {
|
|
963
|
+
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";
|
|
964
|
+
amount: number;
|
|
965
|
+
precision: number;
|
|
966
|
+
};
|
|
967
|
+
} | null | undefined;
|
|
968
|
+
operationalGroup?: string | null | undefined;
|
|
969
|
+
thresholds?: {
|
|
970
|
+
low: number;
|
|
971
|
+
mid: number;
|
|
972
|
+
} | null | undefined;
|
|
973
|
+
customAttributes?: Record<string, any> | null | undefined;
|
|
974
|
+
_id: string;
|
|
975
|
+
name: string;
|
|
976
|
+
code: string;
|
|
977
|
+
unit: {
|
|
978
|
+
_id: string;
|
|
979
|
+
name: string;
|
|
980
|
+
abbrev: string;
|
|
981
|
+
precision: number;
|
|
982
|
+
measurements: {
|
|
983
|
+
id: string;
|
|
984
|
+
name: string;
|
|
985
|
+
abbrev: string;
|
|
986
|
+
conversion: {
|
|
987
|
+
amount: number;
|
|
988
|
+
precision: number;
|
|
989
|
+
};
|
|
990
|
+
}[];
|
|
991
|
+
};
|
|
992
|
+
}[] | null | undefined;
|
|
993
|
+
skuGroup?: {
|
|
994
|
+
ref?: string | null | undefined;
|
|
995
|
+
defaultSkuRefs?: {
|
|
996
|
+
priority?: number | null | undefined;
|
|
997
|
+
trackingMeasurement?: string | null | undefined;
|
|
998
|
+
default?: boolean | null | undefined;
|
|
999
|
+
_id: string;
|
|
1000
|
+
}[] | null | undefined;
|
|
1001
|
+
rules?: {
|
|
1002
|
+
rule?: any;
|
|
1003
|
+
_id: string;
|
|
1004
|
+
name: string;
|
|
1005
|
+
skuRefs: {
|
|
1006
|
+
priority?: number | null | undefined;
|
|
1007
|
+
trackingMeasurement?: string | null | undefined;
|
|
1008
|
+
default?: boolean | null | undefined;
|
|
1009
|
+
_id: string;
|
|
1010
|
+
}[];
|
|
1011
|
+
}[] | null | undefined;
|
|
1012
|
+
_id: string;
|
|
1013
|
+
name: string;
|
|
1014
|
+
}[] | null | undefined;
|
|
1015
|
+
updatedAt?: string | null | undefined;
|
|
1016
|
+
_id: string;
|
|
1017
|
+
_rev: string;
|
|
1018
|
+
};
|
|
1019
|
+
errors: {
|
|
1020
|
+
error?: any;
|
|
1021
|
+
data: {
|
|
1022
|
+
customAttributes?: Record<string, any> | null | undefined;
|
|
1023
|
+
_id: string;
|
|
1024
|
+
name: string;
|
|
1025
|
+
contains: {
|
|
1026
|
+
measurement?: {
|
|
1027
|
+
id: string;
|
|
1028
|
+
name: string;
|
|
1029
|
+
abbrev: string;
|
|
1030
|
+
conversion: {
|
|
1031
|
+
amount: number;
|
|
1032
|
+
precision: number;
|
|
1033
|
+
};
|
|
1034
|
+
} | null | undefined;
|
|
1035
|
+
id: string;
|
|
1036
|
+
type: "RECIPE" | "SKU" | "SKU_GROUP";
|
|
1037
|
+
amount: {
|
|
1038
|
+
amount: number;
|
|
1039
|
+
precision: number;
|
|
1040
|
+
};
|
|
1041
|
+
}[];
|
|
1042
|
+
};
|
|
1043
|
+
}[];
|
|
1044
|
+
}>;
|
|
640
1045
|
publishInventory(locationId: string): Promise<String[]>;
|
|
641
1046
|
publishAllInventory(): Promise<String[]>;
|
|
642
1047
|
urls: {
|
package/dist/api/netsuite.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { FdtoNetSuiteInventoryTransferRecord } from '@feedmepos/netsuite-core';
|
|
2
2
|
export declare const useNetSuiteApi: () => {
|
|
3
3
|
readSetting(): Promise<{
|
|
4
|
+
subsidiaryId?: string | null | undefined;
|
|
4
5
|
accessToken?: string | null | undefined;
|
|
5
6
|
syncedAt?: string | null | undefined;
|
|
6
7
|
restlet?: {
|
|
@@ -79,6 +80,7 @@ export declare const useNetSuiteApi: () => {
|
|
|
79
80
|
netsuiteId: string;
|
|
80
81
|
name: string;
|
|
81
82
|
}>): Promise<{
|
|
83
|
+
subsidiaryId?: string | null | undefined;
|
|
82
84
|
accessToken?: string | null | undefined;
|
|
83
85
|
syncedAt?: string | null | undefined;
|
|
84
86
|
restlet?: {
|
|
@@ -157,6 +159,7 @@ export declare const useNetSuiteApi: () => {
|
|
|
157
159
|
getNetSuiteLocation(): Promise<any>;
|
|
158
160
|
manualSyncInventoryTransfer(locationId: string): Promise<any>;
|
|
159
161
|
syncPurchaseOrder(locationId: string, poId: string): Promise<{
|
|
162
|
+
subsidiaryId?: string | null | undefined;
|
|
160
163
|
accessToken?: string | null | undefined;
|
|
161
164
|
syncedAt?: string | null | undefined;
|
|
162
165
|
restlet?: {
|
|
@@ -421,10 +424,11 @@ export declare const useNetSuiteApi: () => {
|
|
|
421
424
|
_id: string;
|
|
422
425
|
}>;
|
|
423
426
|
getInventoryTransferHistory(locationId: string, startDate?: Date, endDate?: Date): Promise<FdtoNetSuiteInventoryTransferRecord[]>;
|
|
424
|
-
|
|
427
|
+
getSyncLogs(query: string): Promise<{
|
|
425
428
|
url: string;
|
|
426
429
|
}>;
|
|
427
430
|
getMoreInfo(locationId: string, poId: string): Promise<FdtoNetSuiteOrderDetails>;
|
|
431
|
+
getChangeLogs(netsuiteId: string): Promise<NSOrderChangeLogDto[]>;
|
|
428
432
|
getUnSyncTransferInOrders(locationId: string): Promise<string[]>;
|
|
429
433
|
manualSyncMultipleTransferInOrders(netsuiteIds: string[]): Promise<void>;
|
|
430
434
|
getUnSyncPurchaseOrders(locationId: string): Promise<string[]>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { RevisionIdMeta } from '@feedmepos/inventory-core';
|
|
2
2
|
export declare const usePurchaseOrderTemplateApi: () => {
|
|
3
3
|
getTemplate(id: string): Promise<FdoPurchaseOrderTemplate & RevisionIdMeta>;
|
|
4
|
+
getTemplateBySupplierId(supplierId: string): Promise<(FdoPurchaseOrderTemplate & RevisionIdMeta)[]>;
|
|
4
5
|
readTemplates(): Promise<(FdoPurchaseOrderTemplate & RevisionIdMeta)[]>;
|
|
5
6
|
createTemplate(template: Omit<FdoPurchaseOrderTemplate, '_id'>): Promise<FdoPurchaseOrderTemplate>;
|
|
6
7
|
updateTemplate(template: FdoPurchaseOrderTemplate): Promise<FdoPurchaseOrderTemplate>;
|
|
@@ -21,5 +21,8 @@ export declare const usePurchaseOrderApi: () => {
|
|
|
21
21
|
importFromXilnex(payload: FdtoXilnexTransferNote): Promise<void>;
|
|
22
22
|
processPurchaseOrderV2(dto: FdtoPurchaseOrderOperateV2Request, db?: string): Promise<WithRev<FdoPurchaseOrder>>;
|
|
23
23
|
getWorkflowConfig(): Promise<FdoOrderWorkflowConfig>;
|
|
24
|
+
updateDeliveryOrder(payload: FdtoDeliveryOrderUpdateRequest): Promise<void>;
|
|
25
|
+
createDeliveryOrder(payload: FdtoDeliveryOrderCreateRequest): Promise<void>;
|
|
26
|
+
getDeliveryOrderTrails(purchaseOrderId: string, deliveryOrderId: string): Promise<any>;
|
|
24
27
|
};
|
|
25
28
|
export declare const purchaseOrderApi: {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export type WithToInventoryLocation = {
|
|
2
|
+
toInventoryLocation: FdoInventoryLocation;
|
|
3
|
+
};
|
|
4
|
+
export declare const useShipmentApi: () => {
|
|
5
|
+
getShipments({ start, end }: {
|
|
6
|
+
start: string;
|
|
7
|
+
end: string;
|
|
8
|
+
}): Promise<FdoInventoryShipment[]>;
|
|
9
|
+
getShipmentsByIds(shipmentIds: string[]): Promise<FdoInventoryShipment[]>;
|
|
10
|
+
};
|
|
11
|
+
export declare const shipmentApi: {};
|
package/dist/api/stock.d.ts
CHANGED
|
@@ -16,50 +16,8 @@ export declare const useStockApi: () => {
|
|
|
16
16
|
}>;
|
|
17
17
|
startRecalculateTask(): Promise<any>;
|
|
18
18
|
refreshCurrentBalances(): Promise<any>;
|
|
19
|
-
calculateStockSnapshotAtDate(effectiveAt: string, closingDraftId: string): Promise<{
|
|
20
|
-
closing?: {
|
|
21
|
-
costBalances?: {
|
|
22
|
-
adjustmentId?: string | null | undefined;
|
|
23
|
-
amount: {
|
|
24
|
-
amount: number;
|
|
25
|
-
precision: number;
|
|
26
|
-
};
|
|
27
|
-
cost: {
|
|
28
|
-
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";
|
|
29
|
-
amount: number;
|
|
30
|
-
precision: number;
|
|
31
|
-
};
|
|
32
|
-
}[] | null | undefined;
|
|
33
|
-
balance: {
|
|
34
|
-
amount: number;
|
|
35
|
-
precision: number;
|
|
36
|
-
};
|
|
37
|
-
id: string;
|
|
38
|
-
createdAt: string;
|
|
39
|
-
} | null | undefined;
|
|
40
|
-
costs?: {
|
|
41
|
-
adjustmentId?: string | null | undefined;
|
|
42
|
-
amount: {
|
|
43
|
-
amount: number;
|
|
44
|
-
precision: number;
|
|
45
|
-
};
|
|
46
|
-
cost: {
|
|
47
|
-
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";
|
|
48
|
-
amount: number;
|
|
49
|
-
precision: number;
|
|
50
|
-
};
|
|
51
|
-
}[] | null | undefined;
|
|
52
|
-
weightedAverage?: {
|
|
53
|
-
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";
|
|
54
|
-
amount: number;
|
|
55
|
-
precision: number;
|
|
56
|
-
} | null | undefined;
|
|
57
|
-
balance: {
|
|
58
|
-
amount: number;
|
|
59
|
-
precision: number;
|
|
60
|
-
};
|
|
61
|
-
id: string;
|
|
62
|
-
}[]>;
|
|
63
19
|
scheduleCalculateStockSnapshotAtDate(effectiveAt: string, closingDraftId: string): Promise<boolean>;
|
|
20
|
+
recalculationRequests(): Promise<FdoInventoryRecalculationRequest[]>;
|
|
21
|
+
scheduleRecalculation(openingId: string, untilDate: string): Promise<any>;
|
|
64
22
|
};
|
|
65
23
|
};
|
package/dist/api/warehouse.d.ts
CHANGED
|
@@ -2,6 +2,8 @@ import type { WithRev, CreateType } from '@/api/type';
|
|
|
2
2
|
export declare const useWarehouseApi: () => {
|
|
3
3
|
readWarehouses(): Promise<WithRev<FdoWarehouse>[]>;
|
|
4
4
|
createWarehouse(warehouse: CreateType<FdoWarehouse>): Promise<WithRev<FdoWarehouse>>;
|
|
5
|
-
updateWarehouse(id: string, profile: FdoWarehouseProfile
|
|
5
|
+
updateWarehouse(id: string, profile: FdoWarehouseProfile & {
|
|
6
|
+
preparationTime?: FdoInventoryDuration | null;
|
|
7
|
+
}): Promise<WithRev<FdoWarehouse>>;
|
|
6
8
|
deleteWarehouse(id: string): Promise<WithRev<boolean>>;
|
|
7
9
|
};
|