Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Question

I observed the following PGI behavior connected to manual overrides: when the ManualPriceExpired goes 0>1 during the calculation, the manualResultPrice is not changed until the next calculation... I've checked the source code and I wonder if those two conditions should be in a reverse order?

...

AbstractPriceGridCalculationTask.java - public void processPGIResult
update
Code Block
if(pgi.getManualPriceExpired()) 
   pgi.setManualResultPrice(null);

if(expireManualResult && pgi.getManualResultPrice() != null) 
   pgi.setManualPriceExpired(true);
Page Properties
hiddentrue
Author
Contributors
limit1
showLastTimetrue
reversetrue
order

Answer

There was a requirement to do this in two steps so that users have a chance to notice it. If the manual price was just erased, it may confuse users ("why is my manual price gone?").