Search code examples
axapta

Getting associated trade agreement (PriceDiscAdmTrans) from a record in SalesLine table in dynamics ax


How do I get the associated record in trade agreement journal (PriceDiscAdmTrans) from the record in SalesLine Table?


Solution

  • There is no associated PriceDiscAdmTrans record to a SalesLine.

    There may be an associated PriceDiscTable record to a SalesLine, but the rules to find it is defined by workings of SalesPurchLine::setPriceAgreement and the PriceDisc class.