If you override the call to this method in the tPriceDisc() method to pass in a false value into that new optional parameter, it will only update your sales price if it finds a trade agreement, and won't update the line back to the item master price if no trade agreement was found. This modification alone will not make the system do anything different than it normally would, by virtue of the default value of the optional parameter useItemPrice being the same as the optional parameter in the priceDisc.findPrice call. PriceFound = priceDisc.findPrice(this.priceGroupId(), useItemPrice) priceDisc.findPrice(this.PriceGroupId()) PriceDisc = PriceDisc::newFromSalesPurchLine(this, inventDim) Server void setPriceAgreement(InventDim inventDim, boolean useItemPrice = true) Test the result and only call this.initFromPriceDisc(priceDisc) only if a price was found. Pass that parameter as an optional parameter into the priceDisc.findPrice() method, and store the return value in your local boolean. Add an optional boolean parameter to the map tPriceAgreement method, and a local boolean variable. Here's the best way I've found for dealing with it if you're looking at a modification (changes highlighted yellow).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |