Data entity
CustInvoiceJournalLineEntity
Holds the lines of customer invoice journals. Each line has the account, debit or credit amount, currency, dates, payment terms and dimensions. It also has fields for Thailand withholding tax and China vouchers. The key is the journal batch number and line number.
- Entity name
CustInvoiceJournalLineEntity- Public entity name
GeneralLedgerCustInvoiceJournalLine- OData collection
GeneralLedgerCustInvoiceJournalLines- Category
Document- Module
Accounts receivable- Read-only
No- Data management enabled
Yes- Configuration key
LedgerBasic- Keys
JournalBatchNumber, LineNumber- Staging table
CustInvoiceJournalLineStaging
Use it in Power BI and Power Platform
- OData URL
https://<environment>/data/GeneralLedgerCustInvoiceJournalLines- Dataverse virtual table
mserp_custinvoicejournallineentity. Listed in the virtual-table catalogue. An administrator must make the virtual table visible before you can use it.- Data management
- Enabled: you can use it in import and export projects.
Data sources
LedgerJournalTrans· rootApprover_FK(tableHcmWorker) · OuterJoin toLedgerJournalTrans· read-onlyAccountDAVC(tableDimensionCombinationEntity) · OuterJoin toLedgerJournalTrans· read-onlyOffsetAccountDAVC(tableDimensionCombinationEntity) · OuterJoin toLedgerJournalTrans· read-onlyLedgerJournalTable· InnerJoin toLedgerJournalTrans· read-onlyReasonTableRef· OuterJoin toLedgerJournalTransTaxWithholdItemGroupHeading_TH· OuterJoin toLedgerJournalTrans· read-onlyLedgerVoucherType_CN· OuterJoin toLedgerJournalTrans· read-onlyDefaultDimensionsDSE(tableDimensionSetEntity) · OuterJoin toLedgerJournalTrans· read-onlyLedgerJournalTransTaxExtension· OuterJoin toLedgerJournalTransFinTag· OuterJoin toLedgerJournalTrans· read-onlyOffsetFinTag(tableFinTag) · OuterJoin toLedgerJournalTrans· read-only
Fields (56)
| Field and description | Type / EDT / enum | Mandatory | OData / Dataverse | References | Lineage root |
|---|---|---|---|---|---|
JournalBatchNumberUnique journal batch number. It is the key of this table. | String (20)LedgerJournalId | Yes | Yes | LedgerJournalTable.JournalNum | |
VoucherVoucher number that groups the lines of one posting. | String (20)Voucher | No | Yes | BankPaymentOrderJour_RU.VoucherTaxEngineLedgerJournalTransHeader.Voucher | LedgerJournalTrans.Voucher |
ChineseVoucherTypeRecIdPoints to the voucher type, used for China. | Int64LedgerVoucherTypeRefRecId_CN | No | No (private) | LedgerVoucherType_CN.RecId | LedgerJournalTrans.LedgerVoucherType_CN |
ChineseVoucherTypeID of the voucher type. It is the key of the table. | StringLedgerVoucherTypeId_CN | No | Yes | LedgerVoucherType_CN.Id | |
ChineseVoucherChinese voucher number, used for China. | String (20)Voucher_CN | No | Yes | LedgerJournalTrans.Voucher_CN | |
LineNumberLine number within the journal. | RealLineNum | No | Yes | BankPaymentOrderJour_RU.JournalLineNum | LedgerJournalTrans.LineNum |
InvoiceIdInvoice number. | String (50)InvoiceId | No | Yes | LedgerJournalTrans.Invoice | |
CompanyCompany (legal entity) that the account on the line belongs to. | StringSelectableDataArea | No | Yes | LedgerJournalTrans.Company | |
AccountTypeKind of account on the line, such as ledger, customer, vendor, bank or fixed asset. | Enum
| No | Yes | BankPaymentOrderJour_RU.LedgerACType | LedgerJournalTrans.AccountType |
InvoiceDateTransaction date of the line. | DateTransDate | No | Yes | BankPaymentOrderJour_RU.JournalTransDate | LedgerJournalTrans.TransDate |
CustomerAccountAccount of the line, held as a dimension combination record. | Int64DimensionDynamicAccount | No | No (private) | DimensionAttributeValueCombination.RecId | LedgerJournalTrans.LedgerDimension |
CustomerAccountDisplayValueFull combination of dimension values, shown as one text string. | String (500)DimensionDisplayValue | Yes | Yes | None | |
CreditAmountCredit amount in the transaction currency. | RealAmountCurCredit | No | Yes | LedgerJournalTrans.AmountCurCredit | |
DebitAmountDebit amount in the transaction currency. | RealAmountCurDebit | No | Yes | LedgerJournalTrans.AmountCurDebit | |
CurrencyCurrency of the transaction amounts on the line. | String (3)CurrencyCode | Yes | Yes | Currency.CurrencyCode | LedgerJournalTrans.CurrencyCode |
TransactionTextDescription text of the line. | String (512)LedgerJournalTransTxt | No | Yes | LedgerJournalTrans.Txt | |
CashDiscountCodeCash discount code applied to the line. | StringCashDiscCode | No | Yes | CashDisc.CashDiscCode | LedgerJournalTrans.CashDiscCode |
CashDiscountAmountCash discount amount. | RealDiscAmount | No | Yes | LedgerJournalTrans.CashDiscAmount | |
CashDiscountDateDate linked to the cash discount. | DateTransDate | No | Yes | LedgerJournalTrans.DateCashDisc | |
DocumentDateDate of the source document. | DateDocumentDate | No | Yes | LedgerJournalTrans.DocumentDate | |
DocumentNumberNumber of the source document. | String (20)DocumentNum | No | Yes | LedgerJournalTrans.DocumentNum | |
DueDateDue date of the payment. | DateDueDate | No | Yes | LedgerJournalTrans.Due | |
DeliveryDateDelivery date, used for Spain. | DateLedgerJournalDlvDate_ES | No | Yes | LedgerJournalTrans.LedgerJournalDlvDate_ES | |
ListcodeList code used for EU trade reporting, such as EU trade or triangular trade. | EnumListcodeId
| No | Yes | LedgerJournalTrans.Listcode | |
OffsetAccountTypeKind of offset account, such as ledger, customer, vendor or bank. | Enum
| No | Yes | LedgerJournalTrans.OffsetAccountType | |
OffsetCompanyCompany of the offset account. | StringSelectableDataArea | No | Yes | LedgerJournalTrans.OffsetCompany | |
OffsetAccountOffset account of the line, held as a dimension combination record. | Int64DimensionDynamicAccount | No | No (private) | DimensionAttributeValueCombination.RecId | LedgerJournalTrans.OffsetLedgerDimension |
OffsetAccountDisplayValueFull combination of dimension values, shown as one text string. | String (500)DimensionDisplayValue | Yes | Yes | None | |
OffsetTransactionTextText for the offset transaction. | String (512)LedgerJournalTransTxt | No | Yes | LedgerJournalTrans.OffsetTxt | |
TermsOfPaymentPayment terms code. | String (100)PaymTermId | No | Yes | PaymTerm.PaymTermId | LedgerJournalTrans.Payment |
MethodOfPaymentMethod of payment for the line. | StringPaymMode | No | Yes | CustPaymModeTable.PaymModeVendPaymModeTable.PaymMode | LedgerJournalTrans.PaymMode |
TypeOfOperationType of operation, such as sale of goods or rent, used for Mexico. | Enum
| No | Yes | LedgerJournalTrans.OperationType_MX | |
PaymentSpecificationPayment specification linked to the method of payment. | StringPaymSpec | No | Yes | CustPaymModeSpec.SpecificationVendPaymModeSpec.Specification | LedgerJournalTrans.PaymSpec |
PostingProfilePosting profile used for the account on the line. | StringPostingProfile | No | Yes | EmplLedger_RU.PostingProfileRCashLedger.PostingProfileVendLedger.PostingProfileAssetLedger.PostingProfileCustLedger.PostingProfileVendLedger.PostingProfile | LedgerJournalTrans.PostingProfile |
SalesTaxGroupSales tax group for the line. | StringTaxGroupJournal | No | Yes | TaxGroupHeading.TaxGroup | LedgerJournalTrans.TaxGroup |
ItemSalesTaxGroupItem sales tax group for the line. | StringTaxGroupJournal | No | Yes | TaxItemGroupHeading.TaxItemGroup | LedgerJournalTrans.TaxItemGroup |
TaxExemptNumberTax exempt number. | String (20)VATNumJournal | No | Yes | LedgerJournalTrans.VATNumJournal | |
ApprovedYes or no flag showing whether the line has been approved. | EnumApproved
| No | Yes | LedgerJournalTrans.Approved | |
ApproverRecIdWorker who approved the line. | Int64HcmApprover | No | No (private) | HcmWorker.RecId | LedgerJournalTrans.Approver |
ApprovedByNumber that identifies the worker within the organisation. | String (25)HcmPersonnelNumberId | No | Yes | HcmWorker.PersonnelNumber | |
TransactionTypeType of transaction, such as sales order, purchase order, inventory or project. | Enum
| No | Yes | LedgerJournalTrans.TransactionType | |
ReasonCodeReason code, pointing to the reasons table. | StringReasonCode | No | Yes | ReasonTable.Reason | ReasonTableRef.Reason |
ReasonCommentShort comment, up to 60 characters, that explains the reason. | String (60)ReasonComment | No | Yes | ReasonTableRef.ReasonComment | |
ReasonRefRecIDPoints to a reason reference record. | Int64ReasonRefRecID | No | No (private) | ReasonTableRef.RecId | LedgerJournalTrans.ReasonRefRecID |
IsWithholdingCalculationEnabledYes or no flag for calculating withholding tax, used for Thailand. | EnumTaxWithholdCalculate_TH
| No | Yes | LedgerJournalTrans.TaxWithholdCalculate_TH | |
ItemWithholdingTaxGroupCodeIdentifier of the item withholding tax group. It is the key of the table. | StringTaxWithholdItemGroup_TH | No | Yes | TaxWithholdItemGroupHeading_TH.TaxWithholdItemGroup | |
DefaultDimensionDefault financial dimension values for the line, as a dimension set record. | Int64LedgerDimensionValueSet | No | No (private) | DimensionAttributeValueSet.RecId | LedgerJournalTrans.DefaultDimension |
DefaultDimensionDisplayValueDefault dimensions shown as one text string. | String (500)DimensionDisplayValue | No | Yes | None | |
BankTransactionTypeBank transaction type for the line. | StringBankTransactionType | No | Yes | BankTransType.BankTransType | LedgerJournalTrans.BankTransType |
CustVendBankAccountIdIdentification of the customer or vendor bank account. | StringBankAccountID | No | Yes | LedgerJournalTrans.CustVendBankAccountId | |
ExchRateExchange rate applied to the line. | RealExchRate | No | Yes | LedgerJournalTrans.ExchRate | |
ExchRateSecondarySecondary exchange rate used for the journal. | RealExchrateSecondary | No | Yes | LedgerJournalTable.ExchrateSecondary | |
ReportingCurrencyExchRateExchange rate for the reporting currency. | RealReportingCurrencyExchRate | No | Yes | LedgerJournalTrans.ReportingCurrencyExchRate | |
OverrideSalesTaxYes/No setting that lets the user replace the sales tax found by the tax calculation. | EnumTaxIntegrationOverrideSalesTax
| No | Yes | LedgerJournalTransTaxExtension.OverrideSalesTax | |
FinTagDisplayValueLong text showing the tag values together in a readable form. | String (-1)FinTagDisplayValue | Yes | Yes | FinTag.DisplayValue | |
OffsetFinTagDisplayValueLong text showing the tag values together in a readable form. | String (-1)FinTagDisplayValue | Yes | Yes | FinTag.DisplayValue |
Foreign keys (28)
Each field below points to the key of another table. Join on it in Power BI, or follow the link to an entity that exposes that table.
Voucher→BankPaymentOrderJour_RU.Voucher(key of BankPaymentOrderJour_RU)Join on all of:
Voucher=BankPaymentOrderJour_RU.Voucher,InvoiceDate=BankPaymentOrderJour_RU.JournalTransDate,LineNumber=BankPaymentOrderJour_RU.JournalLineNum,AccountType=BankPaymentOrderJour_RU.LedgerACType,JournalNum(table field, not in this entity) =BankPaymentOrderJour_RU.JournalNumMany LedgerJournalTrans records → exactly one BankPaymentOrderJour_RU record
BankPaymentOrderJour_RU details: see BankClientOutPaymentLogEntity
Voucher→TaxEngineLedgerJournalTransHeader.Voucher(key of TaxEngineLedgerJournalTransHeader)Join on all of:
Voucher=TaxEngineLedgerJournalTransHeader.Voucher,JournalNum(table field, not in this entity) =TaxEngineLedgerJournalTransHeader.JournalNumOne or more LedgerJournalTrans records → exactly one TaxEngineLedgerJournalTransHeader record
Not exposed by a public entity.
ChineseVoucherTypeRecId→LedgerVoucherType_CN.RecId(key of LedgerVoucherType_CN)Many LedgerJournalTrans records → zero or one LedgerVoucherType_CN record
LedgerVoucherType_CN details: see LedgerVoucherTypeAccountRestrictionEntity, LedgerVoucherTypeAccountRestrictionV2Entity, LedgerVoucherTypeEntity
LineNumber→BankPaymentOrderJour_RU.JournalLineNum(key of BankPaymentOrderJour_RU)Join on all of:
LineNumber=BankPaymentOrderJour_RU.JournalLineNum,InvoiceDate=BankPaymentOrderJour_RU.JournalTransDate,AccountType=BankPaymentOrderJour_RU.LedgerACType,JournalNum(table field, not in this entity) =BankPaymentOrderJour_RU.JournalNum,Voucher=BankPaymentOrderJour_RU.VoucherMany LedgerJournalTrans records → exactly one BankPaymentOrderJour_RU record
BankPaymentOrderJour_RU details: see BankClientOutPaymentLogEntity
AccountType→BankPaymentOrderJour_RU.LedgerACType(key of BankPaymentOrderJour_RU)Join on all of:
AccountType=BankPaymentOrderJour_RU.LedgerACType,InvoiceDate=BankPaymentOrderJour_RU.JournalTransDate,LineNumber=BankPaymentOrderJour_RU.JournalLineNum,JournalNum(table field, not in this entity) =BankPaymentOrderJour_RU.JournalNum,Voucher=BankPaymentOrderJour_RU.VoucherMany LedgerJournalTrans records → exactly one BankPaymentOrderJour_RU record
BankPaymentOrderJour_RU details: see BankClientOutPaymentLogEntity
InvoiceDate→BankPaymentOrderJour_RU.JournalTransDate(key of BankPaymentOrderJour_RU)Join on all of:
InvoiceDate=BankPaymentOrderJour_RU.JournalTransDate,LineNumber=BankPaymentOrderJour_RU.JournalLineNum,AccountType=BankPaymentOrderJour_RU.LedgerACType,JournalNum(table field, not in this entity) =BankPaymentOrderJour_RU.JournalNum,Voucher=BankPaymentOrderJour_RU.VoucherMany LedgerJournalTrans records → exactly one BankPaymentOrderJour_RU record
BankPaymentOrderJour_RU details: see BankClientOutPaymentLogEntity
CustomerAccount→DimensionAttributeValueCombination.RecId(key of DimensionAttributeValueCombination)Many LedgerJournalTrans records → zero or one DimensionAttributeValueCombination record
DimensionAttributeValueCombination details: see LedgerCurrencyParametersEntity, AdvanceAdjustmentParametersEntity, BankDocumentPostingEntity
Currency→Currency.CurrencyCode(key of Currency)Many LedgerJournalTrans records → exactly one Currency record
Currency details: see CurrencyNonISOEntity, DenominationEntity, CashDueAnnouncementJournalEntity
CashDiscountCode→CashDisc.CashDiscCode(key of CashDisc)Many LedgerJournalTrans records → zero or one CashDisc record
CashDisc details: see CashDiscountEntity, CredManCashDiscRankEntity, CashDiscBiEntity
OffsetAccount→DimensionAttributeValueCombination.RecId(key of DimensionAttributeValueCombination)Many LedgerJournalTrans records → zero or one DimensionAttributeValueCombination record
DimensionAttributeValueCombination details: see LedgerCurrencyParametersEntity, AdvanceAdjustmentParametersEntity, BankDocumentPostingEntity
TermsOfPayment→PaymTerm.PaymTermId(key of PaymTerm)Many LedgerJournalTrans records → zero or one PaymTerm record
PaymTerm details: see PaymentTermEntity, CredManPaymTermRankEntity, TaxWithholdSettlementPeriodEntity
MethodOfPayment→CustPaymModeTable.PaymMode(key of CustPaymModeTable)Relation also requires AccountType = LedgerJournalACType::Cust.
Many LedgerJournalTrans records → zero or one CustPaymModeTable record
CustPaymModeTable details: see CustomerPaymentMethodEntity, BankCustPaymModeBankAccountsEntity, CustPaymModeTableBiEntity
MethodOfPayment→VendPaymModeTable.PaymMode(key of VendPaymModeTable)Relation also requires AccountType = LedgerJournalACType::Vend.
Many LedgerJournalTrans records → zero or one VendPaymModeTable record
VendPaymModeTable details: see VendorPaymentMethodEntity, BankVendPaymModeBankAccountsEntity, VendPaymModeTableCDREntity
PaymentSpecification→CustPaymModeSpec.Specification(key of CustPaymModeSpec)Join on all of:
PaymentSpecification=CustPaymModeSpec.Specification,MethodOfPayment=CustPaymModeSpec.PaymModeRelation also requires AccountType = LedgerJournalACType::Cust.
Many LedgerJournalTrans records → zero or one CustPaymModeSpec record
CustPaymModeSpec details: see CustomerPaymentMethodSpecificationEntity
PaymentSpecification→VendPaymModeSpec.Specification(key of VendPaymModeSpec)Join on all of:
PaymentSpecification=VendPaymModeSpec.Specification,MethodOfPayment=VendPaymModeSpec.PaymModeRelation also requires AccountType = LedgerJournalACType::Vend.
Many LedgerJournalTrans records → zero or one VendPaymModeSpec record
VendPaymModeSpec details: see VendorPaymentMethodSpecificationEntity
PostingProfile→EmplLedger_RU.PostingProfile(key of EmplLedger_RU)Relation also requires AccountType = LedgerJournalACType::Employee_RU.
Many LedgerJournalTrans records → zero or one EmplLedger_RU record
EmplLedger_RU details: see EmplPostingEntity_W
PostingProfile→RCashLedger.PostingProfile(key of RCashLedger)Relation also requires AccountType = LedgerJournalACType::RCash.
Many LedgerJournalTrans records → zero or one RCashLedger record
RCashLedger details: see CashLedgerEntity
PostingProfile→VendLedger.PostingProfile(key of VendLedger)Relation also requires AccountType = LedgerJournalACType::Project, OffsetAccountType = LedgerJournalACType::Vend.
Many LedgerJournalTrans records → zero or one VendLedger record
VendLedger details: see VendorPostingProfileHeaderEntity, VendorPostingProfileLineEntity, InventInventoryProfileCustomerVendorLedgerEntity
PostingProfile→AssetLedger.PostingProfile(key of AssetLedger)Join on all of:
PostingProfile=AssetLedger.PostingProfile,Company=AssetLedger.dataAreaIdRelation also requires AccountType = LedgerJournalACType::FixedAssets.
Many LedgerJournalTrans records → zero or one AssetLedger record
AssetLedger details: see AssetPostingProfileEntity, AssetParametersEntity, AssetPostingProfileDisposalEntity
PostingProfile→CustLedger.PostingProfile(key of CustLedger)Join on all of:
PostingProfile=CustLedger.PostingProfile,Company=CustLedger.dataAreaIdRelation also requires AccountType = LedgerJournalACType::Cust.
Many LedgerJournalTrans records → zero or one CustLedger record
CustLedger details: see CustCustomerPostingProfileHeaderEntity, CustCustomerPostingProfileLineEntity, InventInventoryProfileCustomerVendorLedgerEntity
PostingProfile→VendLedger.PostingProfile(key of VendLedger)Join on all of:
PostingProfile=VendLedger.PostingProfile,Company=VendLedger.dataAreaIdRelation also requires AccountType = LedgerJournalACType::Vend.
Many LedgerJournalTrans records → zero or one VendLedger record
VendLedger details: see VendorPostingProfileHeaderEntity, VendorPostingProfileLineEntity, InventInventoryProfileCustomerVendorLedgerEntity
SalesTaxGroup→TaxGroupHeading.TaxGroup(key of TaxGroupHeading)Join on all of:
SalesTaxGroup=TaxGroupHeading.TaxGroup,Company=TaxGroupHeading.dataAreaIdMany LedgerJournalTrans records → zero or one TaxGroupHeading record
TaxGroupHeading details: see TrvExpMobileTaxGroupEntity, TaxGroupEntity, BusinessDocumentTaxGroupHeadingEntity
ItemSalesTaxGroup→TaxItemGroupHeading.TaxItemGroup(key of TaxItemGroupHeading)Join on all of:
ItemSalesTaxGroup=TaxItemGroupHeading.TaxItemGroup,Company=TaxItemGroupHeading.dataAreaIdMany LedgerJournalTrans records → zero or one TaxItemGroupHeading record
TaxItemGroupHeading details: see TrvExpMobileItemTaxEntity, TaxItemGroupEntity, TaxItemGroupHeadingEntity
ApproverRecId→HcmWorker.RecId(key of HcmWorker)Many LedgerJournalTrans records → zero or one HcmWorker record
HcmWorker details: see TrvExpMobileUserDisplayInfoEntity, BusinessProcessHeaderEntity, HcmInjuryIncidentEntity
ReasonCode→ReasonTable.Reason(key of ReasonTable)Many ReasonTableRef records → zero or one ReasonTable record
ReasonTable details: see LedgerFinancialReasonEntity, CustCustomerReasonEntity, VendVendorReasonsEntity
ReasonRefRecID→ReasonTableRef.RecId(key of ReasonTableRef)Many LedgerJournalTrans records → zero or one ReasonTableRef record
ReasonTableRef details: see PurchPurchaseOrderConfirmationHeaderEntity, PurchPurchaseOrderHeaderEntity, PurchPurchaseOrderHeaderV2Entity
DefaultDimension→DimensionAttributeValueSet.RecId(key of DimensionAttributeValueSet)Many LedgerJournalTrans records → zero or one DimensionAttributeValueSet record
DimensionAttributeValueSet details: see DimensionAttributeValueSetCDREntity, DimensionSetEntity
BankTransactionType→BankTransType.BankTransType(key of BankTransType)Many LedgerJournalTrans records → zero or one BankTransType record
BankTransType details: see BankTransactionTypeEntity, CashDueAnnouncementJournalEntity
Need help with CustInvoiceJournalLineEntity in Power BI, Power Automate or a migration? Talk to Dr Dynamics.