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 description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
DigitNumber of digits in the serial number. | IntegerInteger | No | PSSerialTableEntity | |
FinancialYearFiscal year that the serial setup applies to. | StringString10 | No | PSSerialTableEntity | |
FormatNamePoints to the serial format (PSFormatTableTR) that the series uses. | String (20)PSFormatNameTR | No | PSFormatTableTR.FormatName | PSSerialTableEntity |
InvoiceTypeKind of serial: preprinted invoice, e-invoice, e-archive, preprinted packing slip or e-packing slip. | EnumPSInvoiceTypeTR (enum) | No | PSSerialTableEntity | |
IsDefaultPrefixShows whether this prefix is the default one (yes or no). | EnumNoYesIdNoYes (enum) | No | PSSerialTableEntity | |
NumberSequenceGroupIdPoints to the number sequence group linked to this series. | StringNumberSequenceGroupId | Yes | NumberSequenceGroup.numberSequenceGroupId | PSSerialTableEntity |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
PrefixCharacters at the start of the serial number. | StringPSPrefixTR | Yes | PSSerialTableEntity | |
RecIdA unique number that the system gives to every record. Other tables often use it to point to this record. System field. | Int64RecId | No | None | |
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field. | IntegerRecVersion | No | None | |
SerialTypeType of document the series is for: invoice or packing slip. | EnumPSSerialTypeTR (enum) | No | PSSerialTableEntity | |
TableIdA system number that identifies the table. System field. | IntegerTableId | No | None |
Indexes (3)
PrefixIdxUnique, alternate key.
InvoiceTypeInvoiceType,IsDefaultPrefix,PartitionNot unique.
NumberSequenceGroupIdxNumberSequenceGroupId,PartitionUnique.
Relations (2)
Each relation joins PSSerialTableTR to another table on the fields shown.
PSFormatTableTR→PSFormatTableTRJoin on
FormatName = PSFormatTableTR.FormatNameMany PSSerialTableTR records → zero or one PSFormatTableTR record
NumberSequenceGroup→NumberSequenceGroupJoin on
NumberSequenceGroupId = NumberSequenceGroup.numberSequenceGroupIdOne 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.
PSSerialTableEntity· 8 fields from this table
Need help with PSSerialTableTR in a report, an integration or a migration? Talk to Dr Dynamics.