|
Http Verb |
POST |
|---|---|
|
Url |
/work-orders/execution/r1/interventions/resources-accounted-hours/validations |
|
Permissions required |
Work Order Accounting Edit: fsm.core.workorder.accounting.edit |
|
Personally Identifiable Information (PII) |
No |
|
Sensitive Information |
No |
|
Last Modified Version |
r1 |
|
Released since |
2024 W3 (FSM 18.0) |
|
Deprecated since |
|
|
Removed since |
|
|
Tech Tags |
PAGINATION ORDERING-SERVER-SIDE |
Business Logic
This API saves the accounted hours of a resource related to a specific intervention.
Related APIs
-
Search Interventions: GET /work-orders/execution/r1/interventions
-
Search Resources: GET /workforce/resources/r1/resources
-
Search Existing Accounted Hours: GET /work-orders/execution/r1/interventions/resources-accounted-hours
-
Search Total Accounted Hours: GET /work-orders/execution/r1/interventions/total-accounted-hours
Validation and Business Logic
-
Check Intervention Validation Status:
Check if the related intervention validation status record meets the following condition:-
RescoureAccountedHour.validationStatusId == VALIDATION_IN_PROGRESSorRescoureAccountedHour.validationStatusId == AUTOMATIC_VALIDATIONorRescoureAccountedHour.validationStatusId == MANUALLY_VALIDATED
If such yes, return error EXECUTION_005.
-
-
Check Validation Status Rule:
-
Check if on the Validation Status rule table, for now configurable only on FSM product, if there is a Configuration that does not match with the current Resource Accounted Hours. If yes, return error EXECUTION_007.
-
-
Date field validations:
-
If(RescoureAccountedHour.outcomeStartDate = null or RescoureAccountedHour.outcomeEndDate) and RescoureAccountedHour.customerAbsent = false)→ return EXECUTION_006. -
If
RescoureAccountedHour.takeInCharge = null, setRescoureAccountedHour.takeInCharge= RescoureAccountedHour.outcomeStartDate.
-
Header Parameters
Default.
Request Body Parameters
|
Field |
Validations |
Note |
|---|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
Response documentation
Response payload fields
Response error codes
BASE_0001, BASE_0003, EXECUTION_005, EXECUTION_006.