Table

PSSerialTableTR

E-invoice serial table

Sets up serial number series for e-invoice and related documents. Each row combines a prefix, serial type and document type with a serial format and optionally a number sequence group. No key is defined in the metadata.

Table name
PSSerialTableTR
Module
Cross-module and platform
Table group
Group
Table type
Regular
Data per company
Yes
Configuration key
None
Primary index
None
Replacement key
None
Key fields
None
Model
Foundation

Fields (13)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
DigitNumber of digits in the serial number.Integer
Integer
NoPSSerialTableEntity
FinancialYearFiscal year that the serial setup applies to.String
String10
NoPSSerialTableEntity
FormatNamePoints to the serial format (PSFormatTableTR) that the series uses.String (20)
PSFormatNameTR
NoPSFormatTableTR.FormatNamePSSerialTableEntity
InvoiceTypeKind of serial: preprinted invoice, e-invoice, e-archive, preprinted packing slip or e-packing slip.Enum
PSInvoiceTypeTR (enum)
NoPSSerialTableEntity
IsDefaultPrefixShows whether this prefix is the default one (yes or no).Enum
NoYesId
NoYes (enum)
NoPSSerialTableEntity
NumberSequenceGroupIdPoints to the number sequence group linked to this series.String
NumberSequenceGroupId
YesNumberSequenceGroup.numberSequenceGroupIdPSSerialTableEntity
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
PrefixCharacters at the start of the serial number.String
PSPrefixTR
YesPSSerialTableEntity
RecIdA unique number that the system gives to every record. Other tables often use it to point to this record. System field.Int64
RecId
NoNone
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field.Integer
RecVersion
NoNone
SerialTypeType of document the series is for: invoice or packing slip.Enum
PSSerialTypeTR (enum)
NoPSSerialTableEntity
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone

Indexes (3)

Relations (2)

Each relation joins PSSerialTableTR to another table on the fields shown.

  • PSFormatTableTR → PSFormatTableTR

    Join on FormatName = PSFormatTableTR.FormatName

    Many PSSerialTableTR records → zero or one PSFormatTableTR record

  • NumberSequenceGroup → NumberSequenceGroup

    Join on NumberSequenceGroupId = NumberSequenceGroup.numberSequenceGroupId

    One or more PSSerialTableTR records → exactly one NumberSequenceGroup record

Get this data out

Tables are not exposed directly. These public entities read from PSSerialTableTR; use one of them in Power BI, Power Platform or a data management project.

Need help with PSSerialTableTR in a report, an integration or a migration? Talk to Dr Dynamics.

Email sales@drdynamics.co.uk