Zum Hauptinhalt springen

items

Module: inventory

Inventory items with pricing, barcodes, and stock settings.

NameTypeNullableDefault ValueNotes
PKID
integerItem 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)
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)
model
items.ID
integerModel item ID; only for non-MODEL
picbinfile
binfiles.ID
integerBinary file ID; is read-only (not for `PUT` or `PATCH`)
visibility
smallint0Visibility (`0`=REGULAR, `1`=ARCHIVED, `2`=DELETED)
name
textProduct name
manufacturer
text''Manufacturer (brand or company name)
itemnum
text''Item number (SKU)
barcode
text''Barcode (e.g. GTIN, EAN or UPC code)
type
smallint0Item type (`0`=SIMPLE, `1`=SERIALS, `2`=CHARGES, `3`=SERIALSANDCHARGES, `4`=SET, `5`=CONTAINER, `6`=NOSTOCK, `7`=MODEL)
forcestock
smallintForce stock check on depletion (`0`=STORAGE, `1`=LOCATION)
applicability
smallint0Applicability (`0`=ALWAYS, `1`=NEVER, `2`=BILLINGONLY, `3`=PROCUREMENTONLY)
unit
character varying(3)''Unit code as defined by (UN/CEFACT Recommendation 20)
sellingprice
double precision0Default selling price per unit
purchaseprice
double precision0Default purchase price per unit
taxrate
double precisionTax rate in percent
weight
double precision0Shipping weight per unit in kilograms
classcode
text''Product classification code (e.g. GPC, CPV or UNSPSC code)
tariffcode
text''Tariff code (e.g. HS, CN or HTS code)
origin
character varying(2)''Origin country code (ISO 3166-1 alpha-2)
description
text''Detailed general description
foreigntaxrates
jsonCountry-specific tax rates in percent; use country code as object key
NameUniqueNulls DistinctPrimaryPartialMethodKeys
fk_items_forkginfork
fk_items_modelbtreemodel
fk_items_ownergroupginownergroup
fk_items_picbinfilebtreepicbinfile
i_items_barcodebtreebarcode
i_items_itemnumbtreeitemnum
i_items_namebtreename
i_items_noforkginfork
i_items_noownerginownergroup
pk_itemsbtreeID
s_items_barcodeginbarcode
s_items_itemnumginitemnum
s_items_manufacturerginmanufacturer
s_items_nameginname
NameType
c_items_typecheck
dc_items_applicabilitycheck
dc_items_barcodecheck
dc_items_classcodecheck
dc_items_descriptioncheck
dc_items_forcestockcheck
dc_items_foreigntaxratescheck
dc_items_itemnumcheck
dc_items_manufacturercheck
dc_items_namecheck
dc_items_origincheck
dc_items_tariffcodecheck
dc_items_taxratecheck
dc_items_typecheck
dc_items_visibilitycheck
dc_items_weightcheck
fk_items_forkforeign_key
fk_items_modelforeign_key
fk_items_ownergroupforeign_key
fk_items_picbinfileforeign_key
pk_itemsprimary_key
NameTypeEventsFunctionDefinition
ti_items_modelbeforeinsertftiu_items_model
tu_items_modelbeforeupdateftiu_items_model
tu_items_typebeforeupdateft_integrity
Loading...