Common types and code lists¶
Common types are defined in type.xsd (prefix typ).
Record reference: typ:refType¶
<inv:paymentType>
<typ:ids>Příkazem</typ:ids>
</inv:paymentType>
<typ:country><typ:ids>CZ</typ:ids></typ:country>
idnumeric Pohoda ID (
typ:idType, integer ≥ 1, generated by Pohoda). Takes precedence over the other elements.idstext identifier (
typ:idsType), e.g. currency codeCZK, pre-accounting abbreviation, centre code.extIdexternal system identifier (
typ:extIdType):ids+exSystemName.
Address: typ:address / typ:myAddress¶
Elements: company, division, name, city, street, zip,
ico, dic, VATPayerType, icDph (SK), country, phone,
mobilPhone, fax, email… partnerIdentity in a document may
reference the address book (typ:id / typ:extId) or embed an address
directly; myIdentity is your own company’s identity.
Amounts and VAT rates¶
Item amounts (
typ:typeCurrencyHomeItem):unitPrice,price,priceVAT; in home currency (homeCurrency) or foreign currency (foreignCurrency).Totals (
typ:typeCurrencyHome):priceNone,priceLow,priceLowVAT,priceHigh,priceHighVAT…rateVAT(typ:vatRateType):none,high,low(further values, e.g. a third reduced rate, seetype.xsdof your version).payVAT– the item price includes VAT (true) or not.calculateVAT– VAT calculation method (from the top / bottom).
Payment¶
paymentType (typ:paymentType) is a refType to a payment type, or
an enumeration such as draft (transfer order), cash, postal,
delivery (cash on delivery) – check type.xsd and the Pohoda
settings. account is the bank account; symVar / symConst /
symSpec are the variable, constant and specific symbols.
String lengths¶
typ:string32, string64, string90, string240… – maximum
field lengths. Overflow causes a validation error.
Document numbers¶
The number is assigned from the agenda’s number series; a requested number
is given with typ:numberRequested (see numberType), the number
actually assigned is in rdc:producedDetails. Number series can be
managed with the nms:numericalSeries agenda.
User parameters and labels¶
Documents can carry labels and parameters (user parameters; the
parameter definitions live in the intParam / parameter agenda).