Zum Hauptinhalt springen

contracts

Module: contracts

Recurring contracts with billing cycles and auto-billing settings.

Status codes

StatusActivityIDColor
DraftDRAFT0green
Awaiting approvalDRAFT1orange
ApprovedOPEN2green
DismissedCANCELLED3red
ActiveOPEN4green
InactiveOPEN5orange
ExpiredCLOSED6black
CancelledCANCELLED7red
ClosedCLOSED8black
NameTypeNullableDefault ValueNotes
PKID
integerContract ID
fork
forks.ID
integerFork ID (`null` for base module)
ownergroup
groups.ID
integerOwner group ID (`null`=PUBLIC)
creator
integerCreator user ID (defaults to authenticated user on creation)
assigneduser
users.ID
integerAssigned user ID
creationdate
bigintdate_part('epoch', now())Creation date and time as a Unix timestamp (defaults to current date and time on creation)
lastmodified
bigintdate_part('epoch', now())Last modification date and time as a Unix timestamp (auto-reset on modification)
account
accounts.ID
integerAccount ID
visibility
smallint0Visibility (`0`=REGULAR, `1`=ARCHIVED, `2`=DELETED)
name
textName
contractnum
text''Contract number
date
bigintEXTRACT(epoch FROM now())Designated date and time as a Unix timestamp (defaults to current date and time on creation)
datefrom
bigintStart date as a Unix timestamp; must be less than or equal to `dateto`
dateto
bigintEnd date as a Unix timestamp; must be greater than or equal to `datefrom`
datecancel
bigintCancellation date as a Unix timestamp
status
smallint0Status (`0`=DRAFT, `1`=AWAITINGAPPROVAL, `2`=APPROVED, `3`=DISMISSED, `4`=ACTIVE, `5`=INACTIVE, `6`=EXPIRED, `7`=CANCELLED, `8`=CLOSED)
currency
character varying(3)Currency code (ISO 4217)
exchangerate
double precision1Exchange rate as a multiple of one monetary unit of the fixed system currency
billingcycle
smallintBilling cycle in months
lastbilling
bigintLast billing date and time as a Unix timestamp
description
text''Detailed general description
contractitems
jsonJSON-encoded items (array)
billingitems
jsonJSON-encoded items (array)
procurementitems
jsonJSON-encoded items (array)
autobilling
jsonJSON-encoded auto-billing data (object); only if `billingcycle` is not `null`
NameUniqueNulls DistinctPrimaryPartialMethodKeys
fk_contracts_accountbtreeaccount
fk_contracts_assigneduserginassigneduser
fk_contracts_forkginfork
fk_contracts_ownergroupginownergroup
i_contracts_autobillingginstatus
i_contracts_datebtreedate
i_contracts_noforkginfork
i_contracts_noownerginownergroup
pk_contractsbtreeID
s_contracts_contractnumgincontractnum
s_contracts_nameginname
NameType
c_contracts_datecheck
dc_contracts_autobillingcheck
dc_contracts_billingcyclecheck
dc_contracts_billingitemscheck
dc_contracts_contractitemscheck
dc_contracts_contractnumcheck
dc_contracts_currencycheck
dc_contracts_descriptioncheck
dc_contracts_exchangeratecheck
dc_contracts_namecheck
dc_contracts_procurementitemscheck
dc_contracts_statuscheck
dc_contracts_visibilitycheck
fk_contracts_accountforeign_key
fk_contracts_assigneduserforeign_key
fk_contracts_forkforeign_key
fk_contracts_ownergroupforeign_key
pk_contractsprimary_key
Loading...