Skip to content

Commit

Permalink
DLF-164 Permettre de saisir 0% de TVA pour un produit
Browse files Browse the repository at this point in the history
  • Loading branch information
noelmugnier committed Nov 24, 2020
1 parent f3a79c2 commit cc231f8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Sheaft.Domain/Product.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit cc231f8

Please sign in to comment.