My bad! The line numeration in my file is different because I've already made some other modifications. It should be added after the line #3401 in your file:Hmmm... are we talking about the same code?
The' if' in line #3403 doesn't even care about the ProfitCalcMode. Attaching a pic to ensure that we both see the same code.View attachment 16766
Sorry for the confusion!