getResponsibleUserFromFirstCostcenter
constgetResponsibleUserFromFirstCostcenter: (docFile) =>string
Retrieve the release user by first costcenter.
- It looks for the first costcenter of the invoiceitems.
- If no costcenter is found, an error is thrown.
- It looks for the responsible user of the costcenter.
- If no responsible user is found, an error is thrown.
- It returns the responsible user.
Parameters
docFile
Returns
string