Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Question

We need to send the contracts to SAP with an End Date predefined to "never" (in this case 31/12/9999).

...

...

Answer

hiddenupdate
Code Block
true
language
Author
Contributors
limit1
showLastTimetrue
reversetrue
order
groovy
if (cProcessor.isPrePhase()) {
    Calendar cal = Calendar.getInstance()
    cal.set(year:9999, month:11, date:31)
    def DEFAULT = cal.getTime()
    cProcessor.updateField("endDate", DEFAULT)
}