Zum Hauptinhalt springen

accounts

Module: accounts

Customer and supplier accounts with billing, financial, and contact information.

NameTypeNullableDefault ValueNotes
PKID
integerAccount 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)
contact
contacts.ID
integerContact ID
visibility
smallint0Visibility (`0`=REGULAR, `1`=ARCHIVED, `2`=DELETED)
lastname
text''Last name (surname or company name); is required if `firstname` is empty
firstname
text''First name (given name); is required if `lastname` is empty
type
smallint0Account type (`0`=PROSPECT, `1`=CUSTOMER, `2`=SUPPLIER, `3`=CUSTOMERANDSUPPLIER, `4`=COMPETITOR, `5`=EMPLOYEE)
customernum
text''Customer number; only for PROSPECT, CUSTOMERANDSUPPLIER, CUSTOMER or EMPLOYEE
suppliernum
text''Supplier number; only for SUPPLIER or CUSTOMERANDSUPPLIER
taxid
text''Tax ID (e.g. VATIN or SSN)
currency
character varying(3)Currency code (ISO 4217)
locked
smallint0Deny booking of billing or procurement transactions
excludetax
smallint0Exclude from taxation
description
text''Detailed general description
NameUniqueNulls DistinctPrimaryPartialMethodKeys
fk_accounts_assigneduserginassigneduser
fk_accounts_contactbtreecontact
fk_accounts_forkginfork
fk_accounts_ownergroupginownergroup
i_accounts_lastname_firstnamebtreelastname, firstname
i_accounts_noforkginfork
i_accounts_noownerginownergroup
pk_accountsbtreeID
s_accounts_customernumgincustomernum
s_accounts_firstnameginfirstname
s_accounts_lastnameginlastname
s_accounts_suppliernumginsuppliernum
NameType
c_accounts_namecheck
c_accounts_typecheck
dc_accounts_currencycheck
dc_accounts_customernumcheck
dc_accounts_descriptioncheck
dc_accounts_firstnamecheck
dc_accounts_lastnamecheck
dc_accounts_suppliernumcheck
dc_accounts_taxidcheck
dc_accounts_typecheck
dc_accounts_visibilitycheck
fk_accounts_assigneduserforeign_key
fk_accounts_contactforeign_key
fk_accounts_forkforeign_key
fk_accounts_ownergroupforeign_key
pk_accountsprimary_key
Loading...