Skip to main content

transactions

NameTypeStorageNullableForeign KeysDefault Value & Notes
PKIDintegerplainTransaction ID
forkintegerplainforks.IDFork ID (`null` for base module)
ownergroupintegerplaingroups.IDOwner group ID (`null`=PUBLIC)
creatorintegerplainusers.IDCreator user ID (defaults to authenticated user on creation)
assigneduserintegerplainusers.IDAssigned user ID
creationdatebigintplainDefault: date_part('epoch', now())Creation date and time as a Unix timestamp (defaults to current date and time on creation)
lastmodifiedbigintplainDefault: date_part('epoch', now())Last modification date and time as a Unix timestamp (auto-reset on modification)
accountintegerplainaccounts.IDAccount ID; must be `null` for PRODUCTION
itemintegerplainitems.IDItem ID; must be `null` for BILLING and PROCUREMENT
contractintegerplaincontracts.IDContract ID
transactionnumtextmainTransaction number
typesmallintplainDefault: 0Transaction type (`0`=BILLING_QUOTE, `1`=BILLING_ORDER, `2`=BILLING_DELIVERY, `3`=BILLING_INVOICE, `4`=BILLING_CREDIT, `5`=PROCUREMENT_REQUEST, `6`=PROCUREMENT_ORDER, `7`=PROCUREMENT_DELIVERY, `8`=PROCUREMENT_INVOICE, `9`=PROCUREMENT_CREDIT, `10`=PRODUCTION_FABRICATION, `11`=PRODUCTION_DISASSEMBLY)
datebigintplainDefault: date_part('epoch', now())Designated date and time as a Unix timestamp (defaults to current date and time on creation)
duedatebigintplainDue date as a Unix timestamp
statussmallintplainDefault: 0Status (`0`=DRAFT, `1`=BOOKED, `2`=HOLD, `3`=CANCELLED, `4`=CLOSED, `5`=PARTLYORDERED, `6`=PARTLYORDERED_CANCELLED, `7`=PARTLYORDERED_CLOSED, `8`=ORDERED, `9`=PARTLYDELIVERED, `10`=PARTLYDELIVERED_CANCELLED, `11`=PARTLYDELIVERED_CLOSED, `12`=DELIVERED, `13`=PARTLYINVOICED, `14`=PARTLYINVOICED_CANCELLED, `15`=PARTLYINVOICED_CLOSED, `16`=INVOICED, `17`=PARTLYPAID, `18`=PARTLYPAID_CANCELLED, `19`=PARTLYPAID_CLOSED, `20`=PAID, `21`=OVERPAID, `22`=PROCESSED, `23`=PROCESSED_CANCELLED)
calculationsmallintplainDefault: 0Calculation method (`0`=NET, `1`=GROSS, `2`=EXACT, `3`=LEGACY, `4`=EXTERNAL)
productionfactorintegerplainProduction factor; is required for PRODUCTION, otherwise must be `null`
currencycharacter varying(3)extendedCurrency code (ISO 4217)
exchangeratedouble precisionplainDefault: 1Exchange rate as a multiple of one monetary unit of the fixed system currency
taxidtextextendedDefault: ''Buyer Tax ID (e.g. VATIN or SSN)
shippingrecipienttextextendedDefault: ''Shipping recipient
shippingaddresstextextendedDefault: ''Shipping address (street and building/suite number)
shippingpostalcodetextextendedDefault: ''Shipping postal or ZIP code
shippingcitytextextendedDefault: ''Shipping city or locality
shippingregiontextextendedDefault: ''Shipping region or state
shippingcountrycharacter varying(2)extendedDefault: ''Shipping country code (ISO 3166-1 alpha-2)
billingrecipienttextextendedDefault: ''Billing recipient
billingaddresstextextendedDefault: ''Billing address (street and building/suite number)
billingpostalcodetextextendedDefault: ''Billing postal or ZIP code
billingcitytextextendedDefault: ''Billing city or locality
billingregiontextextendedDefault: ''Billing region or state
billingcountrycharacter varying(2)extendedDefault: ''Billing country code (ISO 3166-1 alpha-2)
sellertaxidtextextendedDefault: ''Seller Tax ID (e.g. VATIN or SSN)
sellernametextextendedDefault: ''Seller Name
selleraddresstextextendedDefault: ''Seller address (street and building/suite number)
sellerpostalcodetextextendedDefault: ''Seller postal or ZIP code
sellercitytextextendedDefault: ''Seller city or locality
sellerregiontextextendedDefault: ''Seller region or state
sellercountrycharacter varying(2)extendedDefault: ''Seller country code (ISO 3166-1 alpha-2)
discountdouble precisionplainDefault: 0Total absolute discount
netamountdouble precisionplainDefault: 0Total net amount
taxdouble precisionplainDefault: 0Total tax amount
margindouble precisionplainDefault: 0Total absolute margin
weightdouble precisionplainDefault: 0Total shipping weight in kilogram
itemsjsonextendedJSON-encoded items (array)
NameUniqueNulls DistinctPrimaryPartialMethodKeys
fk_transactions_accountbtreeaccount
fk_transactions_assigneduserginassigneduser
fk_transactions_contractbtreecontract
fk_transactions_forkginfork
fk_transactions_itembtreeitem
fk_transactions_ownergroupginownergroup
i_transactions_billing_datebtreedate
i_transactions_collection_datebtreedate
i_transactions_noforkginfork
i_transactions_noownerginownergroup
i_transactions_procurement_datebtreedate
i_transactions_production_datebtreedate
i_transactions_transactionnumbtreetransactionnum
pk_transactionsbtreeID
s_transactions_transactionnumgintransactionnum
u_transactions_transactionnum_typebtreetransactionnum, type
NameType
c_transactions_typecheck
dc_transactions_billingaddresscheck
dc_transactions_billingcitycheck
dc_transactions_billingcountrycheck
dc_transactions_billingpostalcodecheck
dc_transactions_billingrecipientcheck
dc_transactions_billingregioncheck
dc_transactions_calculationcheck
dc_transactions_currencycheck
dc_transactions_exchangeratecheck
dc_transactions_itemscheck
dc_transactions_selleraddresscheck
dc_transactions_sellercitycheck
dc_transactions_sellercountrycheck
dc_transactions_sellernamecheck
dc_transactions_sellerpostalcodecheck
dc_transactions_sellerregioncheck
dc_transactions_sellertaxidcheck
dc_transactions_shippingaddresscheck
dc_transactions_shippingcitycheck
dc_transactions_shippingcountrycheck
dc_transactions_shippingpostalcodecheck
dc_transactions_shippingrecipientcheck
dc_transactions_shippingregioncheck
dc_transactions_statuscheck
dc_transactions_taxidcheck
dc_transactions_transactionnumcheck
dc_transactions_typecheck
dc_transactions_weightcheck
fk_transactions_accountforeign_key
fk_transactions_assigneduserforeign_key
fk_transactions_contractforeign_key
fk_transactions_creatorforeign_key
fk_transactions_forkforeign_key
fk_transactions_itemforeign_key
fk_transactions_ownergroupforeign_key
pk_transactionsprimary_key
NameTypeEventsFunctionDefinition
td_transactions_dunningafterdeleteftud_transactions_dunning
ti_transactions_itembeforeinsertftiu_transactions_item
ti_transactions_statusbeforeinsertftiu_transactions_status
tu_transactions_dunningafterupdateftud_transactions_dunning
tu_transactions_itembeforeupdateftiu_transactions_item
tu_transactions_statusbeforeupdateftiu_transactions_status
tu_transactions_typebeforeupdateft_integrity
Loading...