Question

Automatically calculate Total in OrderProduct ?

Hello,

 

I added some attributes in my OrderProduct object, and I need to change the current calculation of "Total".

At the moment, when setting a new value for "quantity" or "price", it updates automatically my "Total". I need, for some records (depending on a boolean), to calculate the Total with another formula, for instance: Total = Quantity * A, which applies when "quantity" or "A" is modified.

However, for these records, "total" should not be recalculated when modifying "price".

I cannot figure out when these calculation are set.

 

Thanks !

Like 0

Like

2 comments

Well, I can be more precise about what I am looking for.

Is there any function (js) that is triggered everytime a value in an object is modified ? Overriding it would solve my problem.

Bpm'online doesn't have such a trigger. However, you can write it on your own according to the manual in the article by the link below. 

https://academy.bpmonline.com/documents/technic-sdk/7-12/clientmessageb…

Show all comments