Formula "AmountReset" in group header 1:
WhilePrintingRecords;
NumberVar Amount := 0;
Formula "RunningTotal" in details:
WhilePrintingRecords;
NumberVar Amount;
Amount := Amount + {xxx_voorraad_alle_mutaties.aantal_transactie};
Formula "AmountDisplay" in group footer 1:
WhilePrintingRecords;
NumberVar Amount ;
-----
Formula "alarm"
if
({@RunningTotal}<0 and ({xxx_voorraad_alle_mutaties.orderregelafldat} > CurrentDate ))
then 1 else 0