Commit e393bae
authored
Create Set due date on RITM
Sets the "due_date" for a Request Item (RITM) based on delivery time set on catalog item record.
Follows the below step to calculate and set value:
1) Reading the delivery time (in days) from the associated Catalog Item
2) Parsing the days component from the display value (e.g. "5 Days" - 5).
3) Adding those days to the record's creation date ("sys_created_on").
4) Writing the calculated date to "due_date".1 parent f900211 commit e393bae
File tree
1 file changed
+39
-0
lines changed- Server-Side Components/Business Rules/Set Due Date on Request and RITM based on Delivery Time
1 file changed
+39
-0
lines changedLines changed: 39 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
0 commit comments