We are having performance issues related to entering quantities on the sales line. There more lines you add the slower it gets. Not very noticeable for small orders but once you get over 10 to 20 (we have some orders with 200 lines) lines it pauses a little more each time you validate the quantity. It has tripled the time it takes to enter an order for some of our bigger orders. For now I have had to create a special screen to enter the items which then gets inserted into the sales lines.
The problem is that OnValidate of Quantity is calling Codeunit 57 Document Totals, Function SalesRedistributeInvoiceDiscountAmounts. This is turn ends up calling SalesLine.CalcSalesTaxLines. This is not good. CalcSalesTaxLines modifies every sales line so the more you have the slower it gets.
I am hoping this has been fixed in a future version or someone has come up with a fix for this. Any thoughts?
0
Answers
One option you have is to reduce this limit from 100 to say 10 / 20 or whatever value gives you reasonable performance.