Magidoc

FinanceRecurringSchedule
Object

Fields

#

_id

ID !
Non-null

workspaceId

ID !
Non-null

glCompanyId

The GL company whose books the generated documents belong to. Null until companies exist.

documentType

Non-null

billingAgreementId

Agreement that owns this internal executor. Null for a user-authored schedule.

billingAgreementVersion

name

Non-null

recurrence

Non-null

nextOccurrence

The next occurrence owed, advanced forward-only. Null once the recurrence has no future left.

remainingCount

Occurrences left to generate; null runs until someone stops it.

createAsApproved

Non-null

Post the generated document instead of leaving it a draft for someone to approve.

active

Non-null

lastGeneratedAt

lastGeneratedDocumentId

lastError

Why the last occurrence could not be generated — a closed period reads here, and is retried.

lastErrorAt

closeReason

Why the schedule stopped on its own, so a finished schedule does not read as an abandoned one.

createdAt

Non-null

createdBy

ID !
Non-null

modifiedAt

Non-null

modifiedBy

ID !
Non-null

Usages

#

References

#

  • Field getFinanceRecurringSchedules from Query
  • Field createFinanceRecurringSchedule from Mutation
  • Field updateFinanceRecurringSchedule from Mutation