Page 1 of 1

Sales Order Line field change event

PostPosted: Fri Feb 21, 2020 3:20 pm
by Professional
Hi,

Similar to this post viewtopic.php?f=26&t=934&p=3454&hilit=custom+field+change#p3452 I have a requirement, but in Sales Order line entry, to identify an entry made manually in the DiscountPercentage and not where it is changed because of a price change and then to set the UserDefinedFloat1 field to 1.

Is the change event the best for this and what would the code be?

Thanks,
Jeff

Re: Sales Order Line field change event  Topic is solved

PostPosted: Fri Feb 21, 2020 3:41 pm
by Mike.Sheen
Professional wrote:Is the change event the best for this and what would the code be?


Yes, that'll work.

Attached is a sample plugin which does this.

Re: Sales Order Line field change event

PostPosted: Fri Feb 21, 2020 3:53 pm
by Professional
Thanks Mike.

Perfect, much appreciated