Really, this should be it, for the passing income.
[capital-apms-progress.git] / process / one-off / fixcontr.p
blobb2cafd916f1183996bcf8634c95825b2e77e46e7
1 /* Ensure all annual estimate contracts have fixed period amounts*/
3 DEF VAR fract AS DEC NO-UNDO.
4 DEF VAR i AS INT NO-UNDO.
6 FOR EACH Contract WHERE Contract.FixedAmount = 0:
8 FIND ServiceType OF Contract NO-LOCK NO-ERROR.
9 IF NOT AVAILABLE ServiceType THEN NEXT.
11 RUN process/calcfreq( Contract.FrequencyCode, OUTPUT fract ).
12 Contract.FixedAmount = Contract.AnnualEstimate * fract.
14 i = i + 1.
16 END.
18 MESSAGE i "Contracts Fixed"
19 VIEW-AS ALERT-BOX INFORMATION TITLE "Done".