Zum Hauptinhalt springen

getResponsibleUserFromFirstCostcenter

const getResponsibleUserFromFirstCostcenter: (docFile) => string

Retrieve the release user by first costcenter.

  1. It looks for the first costcenter of the invoiceitems.
  2. If no costcenter is found, an error is thrown.
  3. It looks for the responsible user of the costcenter.
  4. If no responsible user is found, an error is thrown.
  5. It returns the responsible user.

Parameters

docFile

ptpInvoice

Returns

string