I'm fiddling with a plugin to get this implemented but not sure of the most appropriate direction. I reckon there are 3 ways to do it.
I'm pretty sure they don't need it saved - it's just they want it displayed in the grid.
1. An extra grid column which calculates
- Code: Select all
soLine.DeliveredExGSTAmount * soLine.QuantityThisDelivery;
2. A line custom field which calcs the same formula. This will end up being saved. Doesn't really matter, but not required.
3. Use one of the UserDefinedFloats to do the same formula. Once again this will end up being saved.
Thing is, for points 2 and 3 when displaying closed sales orders the calculation will prompt to save the sales order because I am using the ReadEnd event & iterating the lines to do the calculation.
How would others approach this? Maybe a sample plugin anyone has?