Источник:
http://alexvoy.blogspot.com/2014/10/...t-lose-it.html
==============
A system bug in PriceDisc class that leads to losing the found price/discount. Still presented in AX 2012 R3 (Application version 6.3.164.0) The local subroutine findDisc in findDisc method is called inside the buffer loop and must be fixed as follows.
void findDisc()
{
if ((discDate >= localFromDate || ! localFromDate)
&& (discDate