PurchLine price calculation using x++ code

Hi All,

Can anyone tell me how the price is calculated from the trade agreements in PO line?

Thanks in advance…

Any suggestions?

Start looking at,

\Data Dictionary\Tables\PurchLine\Methods\setPriceDisc

\Data Dictionary\Tables\PurchLine\Methods\setPriceAgreement