itemizer

10 rows


Columns

Column Type Size Nulls Auto Default Children Parents Comments
id int4 10 √ null
code t_code20 24 null
tax.code Implied Constraint R
name text 2147483647 null
rate t_percent 5,2 √ null
amount t_money 15,2 √ null

Flat amount charged per UNIT, used when rate IS NULL. A flat-amount itemizer makes the whole extraction NON-LINEAR in the gross amount (BASE_PRICE(2x) <> 2 * BASE_PRICE(x)), so never precompute a per-department ratio and multiply – always call sp_get_itemizer_amounts / fn_itemizer_breakdown with the real amount.

calc_on_baseprice bool 1 false

false (default): the itemizer is inclusive in the gross amount and is extracted with rate/(100+rate) after service and tax have been removed. true: the itemizer is instead rate% of the residual base (divided by 100, not 100+rate). See sp_get_itemizer_amounts and fn_itemizer_breakdown.

enabled bool 1 √ true
is_service bool 1 false
is_tax bool 1 false

Indexes

Constraint Name Type Sort Column(s)
pk_itemizer Primary key Asc id
unq_itemizer_code Must be unique Asc code

Relationships