Developer forum

Forum » Development » Determining the vatgroup of discounts

Determining the vatgroup of discounts


Reply

Hi there,
 

We are building a system to connect dynamicweb to a CRM system called AFAS. We are using dw productdiscounts say 10% on product x and y. When we order these products
we get 4 orderlines 2 for the products and 2 for the corresponding productdiscounts.

For exporting the order to the crm system we need to know, which of the 2 discounts belongs to which of the 2 products (x or y).
 

We need to know this to determine the Vatgroup that has been calculated on the discounts. Is there a way to findout, which product belongs to which discount?

We tried the orderline.parentlineid but this is empty or null during the orderproces.

Take care,
 

Lucas


 


Replies

 
Reply

Hi Lucas

In the EcomOrder table, the field [OrderLineParentLineID] should represent the relation between a orderline product and a orderline discount. Use [OrderLineType] to determine if the orderline is a discount or not.

regards
Thomas

 

You must be logged in to post in the forum