GET maintenance/work-orders: Add work order general ledger

The GET maintenance/work-orders endpoint has some new features! Added an optional generalLedger object to each work order in the response. The object has these fields:

  • code - the general ledger (GL) code
  • setAtTime - the time the code was last written
  • setByUserId - ID of the dashboard user who last wrote the code, omitted when no user wrote it
  • setSource - how the code was written: manual, template, taskDefinition, partDefinition, job, migration or unknown
    The object is omitted when the work order has no GL code, and for organizations that do not have cost coding enabled.