This topic is locked

calculated VAT in a event

10/20/2009 5:16:14 PM
PHPRunner General questions
M
mark author

Hi,

A question I have 2 fields "price and VAT" is it possible that an event calculated 19% of the field "price" and automatically filled the field "VAT".

Can some body tell me how I should do.
Thanks

Mark

J
Jane 10/21/2009

Hi,
use Before record added event on the Events tab for this purpose.

Here is a sample:

$values["VAT"] = $values["price"]*0.19;
M
mark author 10/25/2009

Hi Jane,
Thanks for the example,
Can you give me a complete example of the full script in the event.
Only your example is not enough in the event

I'm use ASPrunner Pro 6.0 the table name = dbo.Projecten
Regards,
Hans

J
Jane 10/26/2009

Hi,
here is a sample for ASPRunnerPro:

values("VAT") = values("price")*0.19


Also I recommend you to post questions about ASPRunnerPro on the ASPRunner forum:

http://www.asprunner.com/forums/forum/2-asprunnerpro-general-questions/