From cc231f813bc2c16bd6444812cfebba942e8e9d5c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?No=C3=ABl=20Mugnier?= Date: Tue, 24 Nov 2020 16:45:43 +0100 Subject: [PATCH] DLF-164 Permettre de saisir 0% de TVA pour un produit --- Sheaft.Domain/Product.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Sheaft.Domain/Product.cs b/Sheaft.Domain/Product.cs index e76f267e0..897082457 100644 --- a/Sheaft.Domain/Product.cs +++ b/Sheaft.Domain/Product.cs @@ -139,7 +139,8 @@ public void SetVat(decimal? newVat) { if (Producer.NotSubjectToVat) newVat = 0; - else if(!newVat.HasValue || newVat == 0) + + if(!newVat.HasValue) throw new ValidationException(MessageKind.Product_Vat_Required); if (newVat < 0)