Axapta custinvoiceTrans与一般日记账的关系

Axapta custinvoiceTrans与一般日记账的关系,axapta,dynamics-ax-2012,Axapta,Dynamics Ax 2012,我知道有很多类似的问题,但不幸的是,没有一个能回答我的问题。对于VendInvoiceTrans,您可以转到InventTransPosting,其中LedgerDimension和DefaultDimension位于一个表中,您可以使用LedgerDimension查找该特定凭证的所有GeneralJournalAccountEntry记录 InventTransPosting = InventTransPosting::find(InventTrans::findTransId(vendIn

我知道有很多类似的问题,但不幸的是,没有一个能回答我的问题。对于VendInvoiceTrans,您可以转到InventTransPosting,其中LedgerDimension和DefaultDimension位于一个表中,您可以使用LedgerDimension查找该特定凭证的所有GeneralJournalAccountEntry记录

InventTransPosting = InventTransPosting::find(InventTrans::findTransId(vendInvoiceTrans.InventTransId).DateStatus,
vendInvoiceJour.CostLedgerVoucher,
InventTransOrigin::findByInventTransId(vendInvoiceTrans.inventTransId).RecId,
InventTransPostingType::Financial);

LedgerDimension = InventTransPosting.LedgerDimension;
select generalJournalAccountEntry
where generalJournalAccountEntry.GeneralJournalEntry == SubledgerVoucherGeneralJournalEntry.GeneralJournalEntry
&& generalJournalAccountEntry.LedgerDimension == LedgerDimension
&& (generalJournalAccountEntry.PostingType == WHATEVERPOSTINGTYPE!);
或者,您可以使用accountingDistribution框架和SubDidgerJournalAccountEntry查找特定VendInvoiceTrans.SOURCEDocumentLine的generalJournalAccountEntry

select accountingDistribution
where accountingDistribution.SourceDocumentLine == vendInvoiceTrans.SourceDocumentLine
join subledgerJournalAccountEntryDistribution
where subledgerJournalAccountEntryDistribution.AccountingDistribution == AccountingDistribution.RecId
join GeneralJournalAccountEntry,PostingType
from SubledgerJournalAccountEntry
where SubledgerJournalAccountEntry.RecId == SubledgerJournalAccountEntryDistribution.SubledgerJournalAccountEntry
&& SubledgerJournalAccountEntry.GeneralJournalAccountEntry
&& (SubledgerJournalAccountEntry.PostingType == WHATEVERYOUWANT);
我感兴趣的是为CustInvoiceTrans找到类似的东西。有吗

1) 任何表(如InventTransPosting for VendInvoiceTrans),用于跟踪已过帐的invoiceTransactions及其默认维度或分类帐维度。CustInvoiceTrans.LedgerDimension仅显示主帐户,但我需要一些表,其中分类帐维度字段将包含更多信息

或者


2) 任何跟踪generalJournalAccountEntry和sourceDocumentLine的表(如SubgradgerJournalAccountEntryDistribution)。

InventTransPosting仅保存库存交易记录。库存过账仅对部分供应商和客户交易记录进行了记录。 获取所需内容的最佳方法是查看表单LedgertTransCredit,并通过单击“凭证”按钮查看在调用表单CustTrans表单时它是如何初始化的。
在您的情况下,您需要使用SubgradgerVoucherGeneralJournalEntry,并根据您的客户Trans的凭证和TransDate对其进行过滤。然后,您可以加入此项以获得所有次级账款过账

InventTransPosting仅保存库存交易记录。库存过账仅对部分供应商和客户交易记录进行了记录。 获取所需内容的最佳方法是查看表单LedgertTransCredit,并通过单击“凭证”按钮查看在调用表单CustTrans表单时它是如何初始化的。 在您的情况下,您需要使用SubgradgerVoucherGeneralJournalEntry,并根据您的客户Trans的凭证和TransDate对其进行过滤。然后,您可以加入此项以获得所有次级账款过账