Skip to main content

prices

NameTypeStorageNullableForeign KeysDefault Value & Notes
PKIDbigintplainPrice ID
creatorintegerplainusers.IDCreator user ID (defaults to authenticated user on creation)
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)
itemintegerplainitems.IDItem ID (**dependency**)
pricelistintegerplainpricelists.IDPrice list ID (**dependency**)
pricedouble precisionplainPrice per unit (`null`=`item.sellingprice` for billing or `null`=`item.purchaseprice` for procurement)
rebatedouble precisionplainDefault: 0Absolute rebate per unit (applied before `discount`)
discountdouble precisionplainRelative discount in percent (applied after `rebate`; `null`=`pricelist.discount`)
minamountdouble precisionplainDefault: 0Minimum amount (quantity)
costpricedouble precisionplainCost price per unit (`null`=`item.purchaseprice` for billing)
NameUniqueNulls DistinctPrimaryPartialMethodKeys
fk_prices_itembtreeitem
fk_prices_pricelistginpricelist
pk_pricesbtreeID
NameType
dc_prices_discountcheck
dc_prices_minamountcheck
fk_prices_creatorforeign_key
fk_prices_itemforeign_key
fk_prices_pricelistforeign_key
pk_pricesprimary_key
Loading...