This is only database change. Now lineTotal is calculated correctly in SalesOrderDetails (isnull(([UnitPrice]*((1.0)-isnull([UnitPriceDiscount],(0.0))))*[OrderQuantity],(0.0)))