SalesLine Table --- setPriceDisc and setPriceAgreement function

does anyone know how these two functions work ? they are in the SalesLine Table. I select the right price from the Trade Agreement table, but when set to the sales price when creating a new sales line then it defaults back to the other price because of these two functions. if i comment this line: “this.setPriceAgreement(inventDim)” out then the price i selected is 0, but if not comment it then it keeps setting to a different price. Any idea how to resolve this issue ? Thanks in Advance.

this is how i set my sales price to in modifiedField function that calls the function contains this line of code:

“this.SalesPrice = PriceDiscTable::findPriceDiscTable(this.ItemId,quoteQty.value()).Amount;” // this gets the right price

void setPriceDisc(InventDim inventDim)

{
this.setPriceAgreement(inventDim); // this line defaults to a different price instead of my correct price
this.LineAmount = this.calcLineAmountForced();
}

void setPriceDisc(InventDim inventDim)

{
this.setPriceAgreement(inventDim);
this.LineAmount = this.calcLineAmountForced();
}

never mind y’all, i got it figured out and solved problem. Thanks