Page 1 of 1

Quote/Sales price selection disparity

PostPosted: Mon Jul 03, 2023 4:09 pm
by pricerc
When picking a price using a price scheme in Sales Orders, the price selected is applied to both the "Price" and "Price Ex" fields.

In Quotes, the price is only applied to the "Price" field, not the "Price Ex" field.

dotPeek reveals that the S/O logic has this code, which is missing from Quotes:
Code: Select all
salesOrderLine.DiscountGiven = 0M;


in between setting SellPriceExGST (or SellPriceIncGST) and setting PriceSelected.

1) Is this intentional, and
b) is there a quick 'fix' I can implement to make quotes behave the same as orders? (Maybe using the GotPrice event?)

Re: Quote/Sales price selection disparity  Topic is solved

PostPosted: Fri Jul 07, 2023 2:46 pm
by Mike.Sheen
pricerc wrote:1) Is this intentional,


I'm not sure - it may be the intent was to make the price of the quote stay fixed and put the difference into the discount (which is what it does now). I've logged DEV-10102 for us to take a look and if it wasn't intentional, to make it consistent with sales orders.

pricerc wrote:and b) is there a quick 'fix' I can implement to make quotes behave the same as orders? (Maybe using the GotPrice event?)


You can't use the GotPrice event, as that's raised not just when the selected price is selected, but whenever the system has applied a price - such as changing the quantity, and also when just doing things like changing the debtor or price scheme itself.

Instead you can listen to the PropertyChanged event of the SalesQuoteLines and react only where the PropertyName is "PriceSelected".

The attached plugin does this - try it to see if it does what you need.