feat: Add support in BE for setting tax inclusivity on currency (#8037)

This commit is contained in:
Stevche Radevski
2024-07-09 15:22:24 +02:00
committed by GitHub
parent 4c89f91caf
commit 00a6e512dc
15 changed files with 287 additions and 37 deletions

View File

@@ -196,7 +196,9 @@ export default class StoreModuleService
)
}
private static validateCreateRequest(stores: StoreTypes.CreateStoreDTO[]) {
private static validateCreateRequest(
stores: StoreTypes.CreateStoreDTO[] | StoreTypes.UpdateStoreDTO[]
) {
for (const store of stores) {
if (store.supported_currencies?.length) {
const duplicates = getDuplicates(