Hi André Arnaud de Cal...
We are handling orders with a large number of lines (ranging from 10 to 300+ lines). The number of lines varies greatly depending on the customer and the transaction. Each line involves setting fields such as ItemIds, quantity, and unit of measurement (UOM). (for update case, quantity is the mostly update field)
Our analysis of trace logs and code indicates that price and discount calculations are triggered each time a line is created or updated. These calculations are necessary only for the final order line since the final price and discount are based on the entire order, not individual lines. As a result, previous calculations are overridden without being persisted.
To address this, we considered using the `SkipPriceCalculation` feature for bulk insert/update scenarios. However, we also cater to commerce call-center scenarios that require interactive line-by-line price and discount calculations.
Therefore, we are seeking an efficient method to limit price and discount calculations to a single bulk operation rather than performing these calculations for each line insert/update. Specifically, we are looking for an event handler or a pre/post-paste method within the Grid control to manage this process.