Subtracting cart quantity from Product quantity

11 Jun '18, 10:45 PM
No Forum Badges

Please, in my domain model I have two persistent entities "Cart" and  "Product", I want to subtract the number of quantity( "Cart") from quantity ("Product") so that when I sell a product it will automatically subtract and update the product table.

I tried the math unit and also read the tutorials on, but it's not working.

I really need help with this.


Thank you.

x 0
Answer Answer at this question and get points!
Forum Hero - Level 9

Hi Tanko,

if you want to change the quantity in stock you can use the Math component. To understand your problem with this component you should better explain us the obtained behavior and errors.

First of all I suggest you to check your model in order to find problems. In this case you can run the Find Model Problems operation and solve any available error.

Moreover you could analyze the runtime application’s log files. For more details

x 0
Answer at this question and get points!