You can either set the PriceAfterVAT property and let the application calculates the DiscountPercent property accordingly, or set DiscountPercent and let the application calculates the PriceAfterVAT property accordingly. But not both properties at the same script.