1. Februar 2019 09:27
IF Item_lRec.GET("No.") THEN BEGIN
Startdate_lDat := CALCDATE('-12M',WORKDATE);
Item_lRec.SETRANGE("Date Filter",Startdate_lDat,WORKDATE);
Item_lRec.CALCFIELDS("Sales (LCY)");
EXIT(Item_lRec."Sales (LCY)");
END ELSE
EXIT(0);
IF Item_lRec.GET("No.") THEN BEGIN
Startdate_lDat := CALCDATE('-12M',WORKDATE);
Item_lRec.SETRANGE("Date Filter",Startdate_lDat,WORKDATE);
[color=#FF0000] Item_lRec.CALCFIELDS("Sales (LCY)") / 12;[/color]
EXIT(Item_lRec."Sales (LCY)");
END ELSE
EXIT(0);
Item_lRec.CALCFIELDS("Sales (LCY)") [Cursor springt hier] / 12;
1. Februar 2019 09:35
IF Item_lRec.GET("No.") THEN BEGIN
Item_lRec.SETRANGE("Date Filter",CALCDATE('-12M',WORKDATE),WORKDATE);
Item_lRec.CALCFIELDS("Sales (LCY)");
EXIT(Item_lRec."Sales (LCY)"/ 12);
END ELSE
EXIT(0);
1. Februar 2019 13:56
1. Februar 2019 14:52