を登録しよう(デフォルトAX2012クラスとコードを、何の変更がそれになされていない)で登録しようEXISTS:メソッドでCustVendTransDetails
calcCashDiscounts
は、私はAX2012クラスに問題が午前
次のクエリは私にエラーを与えているThe select list for the INSERT statement contains fewer items than the insert list. The number of SELECT values must match the number of INSERT columns.
:
if (TaxParameters::canApplyCashDiscOnInvoice_ES())
{
insert_recordset tmpValue
(CustVendTransRefRecId, AmountMST)
select CustVendTransRefRecId
from _custVendAccountStatementIntTmpProcessing
exists join custVendTransLoc
where
custVendTransLoc.RecId == _custVendAccountStatementIntTmpProcessing.CustVendTransRefRecId
exists join firstOnly subledgerVoucherGeneralJournalEntry
where
subledgerVoucherGeneralJournalEntry.Voucher == custVendTransLoc.Voucher &&
subledgerVoucherGeneralJournalEntry.AccountingDate == custVendTransLoc.TransDate
exists join generalJournalEntry
where
generalJournalEntry.RecId == subledgerVoucherGeneralJournalEntry.GeneralJournalEntry &&
generalJournalEntry.Ledger == Ledger::current()
join AccountingCurrencyAmount from generalJournalAccountEntry
where
generalJournalAccountEntry.GeneralJournalEntry == generalJournalEntry.RecId &&
(generalJournalAccountEntry.PostingType == LedgerPostingType::CustCashDisc ||
generalJournalAccountEntry.PostingType == LedgerPostingType::VendCashDisc);
update_recordSet _custVendAccountStatementIntTmpProcessing setting
UtilizedCashDisc = tmpValue.AmountMST,
PossibleCashDisc = tmpValue.AmountMST
join tmpValue
where
tmpValue.CustVendTransRefRecId == _custVendAccountStatementIntTmpProcessing.CustVendTransRefRecId;
}
私はこの理由を理解していますが、この問題の解決方法はわかりません。 exist join
を通常のjoin
に置き換えるのは問題になりますか?
exist join
をjoin
に置き換えても問題は解決しますが、データにどのような違いがあるのでしょうか。 1つのフィールドしか選択していないので、
ありがとうございました、これは私の問題を解決しました。 –