test other tax
All checks were successful
Build and Publish / Metadata (push) Successful in 11s
Build and Publish / BuildAndDeployAmd64 (push) Successful in 1m20s
Build and Publish / BuildAndDeployArm64 (push) Successful in 4m15s

This commit is contained in:
matst80
2025-10-14 20:00:32 +02:00
parent e908a4130b
commit 5e2025e30f

View File

@@ -90,7 +90,7 @@ func GetItemAddMessage(sku string, qty int, country string, storeId *string) (*m
Category3: category3, Category3: category3,
Category4: category4, Category4: category4,
Category5: category5, Category5: category5,
Tax: 2500, Tax: getTax(articleType),
SellerId: sellerId, SellerId: sellerId,
SellerName: sellerName, SellerName: sellerName,
ArticleType: articleType, ArticleType: articleType,
@@ -100,3 +100,12 @@ func GetItemAddMessage(sku string, qty int, country string, storeId *string) (*m
StoreId: storeId, StoreId: storeId,
}, nil }, nil
} }
func getTax(articleType string) int32 {
switch articleType {
case "ZDIE":
return 600
default:
return 2500
}
}