This topic is locked

Once again about Total

7/5/2010 3:53:22 AM
PHPRunner General questions
B
bangke author

How i calculate ExtendedPrice with this formula:

*UnitPrice = UnitPrice Quantity - Discount*, where discount field is percentage
I have tried to add this code to
Before record Added and before record updated* bi it was not works :

$values["ExtendedPrice"] = $values["UnitPrice"] * $values["Quantity"] - ($values["Discount"];


For example :

UnitPrice : 1000

Quantity : 10

Discount :10%
ExtendedPrice should be : 9000