on 05-24-2012 1:16 AM
We have recently written a script that changes the expiration date on the master agreement or sub-agreement if it is different to that of the latest approved contract document expiration date. However we omitted to handle the situation where the agreement is set to perpetual
Part of the code is listed here:
MAExpDateIfc = parentBean.getExpirationDate();
MAExpDate = MAExpDateIfc.getDate();
compare = ExpDate.compareTo(MAExpDate);
if (compare > 0)
Any suggestions as to what we would need to add in order to check whether the agreement is set to perpetual or has an expiration date first?
If the agreement is set to perpetual we would not want to try and either get the expiration date or attempt to change it.
Thank you
Christopher
Hi Christopher,
To find out if the MA is perpetual you could use the getPetualTerm() method which returns a Boolean.
Regards,
Vikram
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.