Question
We need to send the contracts to SAP with an End Date predefined to "never" (in this case 31/12/9999).
...
...
Answer
Code Block | |||
---|---|---|---|
| Author | ||
Contributors | |||
limit | 1 | ||
showLastTime | true | ||
reverse | true | order | update
|
if (cProcessor.isPrePhase()) {
Calendar cal = Calendar.getInstance()
cal.set(year:9999, month:11, date:31)
def DEFAULT = cal.getTime()
cProcessor.updateField("endDate", DEFAULT)
} |