We have a sales order line discount challenge that I belive can not be met by data setup (too many variables). We would like to prevent the SO form from defaulting in a line discount value at the time of adding a line to the SO. This could be either from the header line discount field or any other trade agreement. I think we need to handle this by code. We plan on using a custom parameter at the item level to define if this item is allowing to be sold with a line discount or not. Question is: where in Ax X++ should we intercept the line discount init / defaulting process to add the new criteria. I looked at the table method named SalesLine.canEditDisc() method and map method named SalesPurchLine.setPriceAgreement(), but can't quite seem to make a decision on where to place the IF statement.
Thanks,
Patrick
*This post is locked for comments
I have the same question (0)