Table

SalesInvoicePaymentStubTmp

Show invoice

Temporary working table that holds customer invoice details together with data for a payment slip (payment stub). It has company and invoice address fields, amounts, bank and reference numbers, and OCR lines. Many fields are used for Switzerland, Finland or Denmark. It links to the customer invoice journal, the customer and ISO currency codes.

Table name
SalesInvoicePaymentStubTmp
Module
Accounts receivable
Table group
Miscellaneous
Table type
Regular
Data per company
Yes
Configuration key
None
Primary index
None
Replacement key
None
Key fields
None
Model
Foundation

Fields (56)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
AccountNo1_CHFirst bank account number, used for Switzerland.String (48)
BankAccount
NoNone
AccountNo2_CHSecond bank account number, used for Switzerland.String (48)
BankAccount
NoNone
AccountNum1_FIFirst account number text, used for Finland.String (60)
Str60
NoNone
AccountNum2_FISecond account number text, used for Finland.String (60)
Str60
NoNone
AccountNum3_FIThird account number text, used for Finland.String (60)
Str60
NoNone
AccountNum4_FIFourth account number text, used for Finland.String (60)
Str60
NoNone
AccountNum5_FIFifth account number text, used for Finland.String (60)
Str60
NoNone
AccountNum6_FISixth account number text, used for Finland.String (60)
Str60
NoNone
AmountCheckIdText value that appears to be a check identifier for the amount; the exact use is not stated in the metadata.low confidenceString (60)
Str60
NoNone
BankAccountTable_AccountNum_CHBank account number taken from the bank account record, used for Switzerland.String (48)
BankAccount
NoNone
BankAccountTable_Clearing_CHBank clearing text for the bank account, used for Switzerland.String (60)
Str60
NoNone
BankGroupIdName_CHDescription of the bank group, used for Switzerland.String (60)
Description
NoNone
BankZipCode_CHPostal code of the bank, used for Switzerland.String (60)
Str60
NoNone
BillInformation_CHFree text with billing information, used for Switzerland.String (255)
FreeText
NoNone
CompanyAddressAddress of the company that issues the invoice.String (250)
Addressing
NoNone
CompanyGiroBank giro number of the company.String (48)
GiroNum
NoNone
CompanyNameName of the company that issues the invoice.String (60)
Name
NoNone
CompanyPhoneTelephone number of the company.String (20)
Phone
NoNone
CreatedByThe user who created the record. System field.String (20)
CreatedBy
NoNone
CreatedTransactionIdA system number for the database transaction that created the record. System field.Int64
CreatedTransactionId
NoNone
currencyCodeISO_CHThree-letter ISO currency code, used for Switzerland. It points to an ISO currency code record.String (3)
CurrencyCodeISO
NoISOCurrencyCode.ISCCurrencyCodeAlphaNone
CustAddress_CHFree text for the customer address, used for Switzerland.String (255)
FreeText
NoNone
CustInvoiceJourDueDateDate by which the invoice is due.Date
DueDate
NoNone
CustName_CHCustomer name, used for Switzerland.String (60)
Name
NoNone
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
Description_CHDescription text, used for Switzerland.low confidenceString (60)
Str60
NoNone
FICreditorID_DKCreditor ID for the FI payment method, used for Denmark.String (8)
FICreditorID_DK
NoNone
GiroTypeType of payment slip attached to the customer invoice, such as FIK, BBS, blue slip, red slip, orange slip, S101, S102 or Finnish.Enum
PaymentStubInvoiceId
PaymentStub (enum)
NoNone
IBAN_CHInternational bank account number (IBAN), used for Switzerland.String (48)
BankIBAN
NoNone
InvoiceAccountCustomer account that the invoice is for. It points to a customer record.String (20)
CustInvoiceAccount
NoCustTable.AccountNumNone
InvoiceAddressAddress of the invoice customer.String (250)
LogisticsAddressing
NoNone
InvoiceAddressCity_CHCity of the invoice address, used for Switzerland.String (250)
LogisticsAddressing
NoNone
InvoiceAddressLine1_CHFirst address line of the invoice customer, used for Switzerland.String (250)
LogisticsAddressing
NoNone
InvoiceAddressLine2_CHSecond address line of the invoice customer, used for Switzerland.String (250)
LogisticsAddressing
NoNone
InvoiceAddressZipCode_CHPostal code of the invoice address, used for Switzerland.String (250)
LogisticsAddressing
NoNone
InvoiceAmountTotal invoice amount.Real
AmountCur
NoNone
InvoiceAmountDecimalsDecimal part of the invoice amount as text, for printing on the payment slip.String (60)
Str60
NoNone
InvoiceAmountNoDecimalsWhole-number part of the invoice amount as text, for printing on the payment slip.String (60)
Str60
NoNone
InvoiceCountryRegionId_CHCountry or region of the invoice address, used for Switzerland.String
LogisticsAddressCountryRegionId
NoNone
InvoiceIdInvoice number.String (20)
CustInvoiceId
NoNone
InvoiceNameName of the invoice customer.String (160)
CustName
NoNone
InvoiceReferenceNumberFIPayment reference number for the invoice, used for Finland.String (20)
ReferenceNumber_FI
NoNone
JournalRecIdSystem record ID of the customer invoice journal this row refers to.Int64
RefRecId
NoCustInvoiceJour.RecIdNone
LanguageId_CHLanguage code, used for Switzerland.String (7)
LanguageId
NoNone
LayoutCode_CHLayout code text for the payment slip, used for Switzerland.low confidenceString (60)
Str60
NoNone
OcrFieldText of the OCR field for the payment slip.String (60)
Str60
NoNone
OcrLine_CHText of the OCR line for the payment slip, used for Switzerland.String (60)
Str60
NoNone
OcrLine_FIText of the OCR line for the payment slip, used for Finland.String (60)
Str60
NoNone
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
PaymentId2_PaymentId3_CHCombined second and third payment ID text, used for Switzerland.low confidenceString (60)
Str60
NoNone
PaymentRef1_CHFirst payment reference text, used for Switzerland.String (60)
Str60
NoNone
PaymentRef2_CHSecond payment reference text, used for Switzerland.String (60)
Str60
NoNone
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
RemainAmountToBePaidAmount still to be paid, in the transaction currency.Real
AmountCur
NoNone
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone

Indexes (1)

Relations (3)

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

  • CustInvoiceJour → CustInvoiceJour

    Join on JournalRecId = CustInvoiceJour.RecId

    Many SalesInvoicePaymentStubTmp records → zero or one CustInvoiceJour record

  • CustTable → CustTable

    Join on InvoiceAccount = CustTable.AccountNum

    Many SalesInvoicePaymentStubTmp records → zero or one CustTable record

  • ISOCurrencyCode → ISOCurrencyCode

    Join on currencyCodeISO_CH = ISOCurrencyCode.ISCCurrencyCodeAlpha

    Many SalesInvoicePaymentStubTmp records → zero or one ISOCurrencyCode record

Get this data out

No public entity reads from SalesInvoicePaymentStubTmp. Its data is only reachable through the application, a custom entity or a database export.

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

Email sales@drdynamics.co.uk