This topic is locked
[SOLVED]

 Simple total price

1/21/2011 5:26:02 AM
PHPRunner General questions
S
sadisticmagician author

Hi!

I have a little problem, hope we can help me.

I want a simple sum of price at end row when i selected "print selected"

Thank you very much!

S
sadisticmagician author 1/22/2011

Can you help me? thanks <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=55960&image=1&table=forumreplies' class='bbc_emoticon' alt=':(' />

romaldus 1/22/2011
S
sadisticmagician author 1/22/2011



use can use javascript API or custom event code.
For Javascript API:

http://www.asprunner.com/forums/topic/13678-how-to-calculate-values-on-the-fly/
For Event custom code :

http://www.asprunner.com/forums/topic/14754-once-again-about-total//


Hi Romaldus, thanks for help me <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=55962&image=1&table=forumreplies' class='bbc_emoticon' alt=':)' />

I want use metod custom code, can you help me for insert in my code? thanks
i have look your solution:

$values["ExtendedPrice"] = ($values["UnitPrice"] $values["Quantity"]) - (($values["Discount"]/100)($values["UnitPrice"] * $values["Quantity"]));
I have not 'quantity', i have only, product field and price field.
product field price field

product 1 10,00

product 2 10,00

product 3 50,00
total 70,00

S
sadisticmagician author 1/22/2011

I have resolved my problem with 'Report'. Thanks <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=55966&image=1&table=forumreplies' class='bbc_emoticon' alt=':)' />