LedgerJournalCheckPost.checkPaymentForCP_IN Method [AX 2012]
Checks whether journal can be posted for centralized payment.
Syntax
Note
The syntax of this method varies based on the version of Microsoft Dynamics AX that you are using.
Microsoft Dynamics AX 2012 R3
protected boolean checkPaymentForCP_IN(LedgerJournalTrans _ledgerJournalTrans, [LedgerPostingMessageLog _ledgerPostingMessageCollection])
Microsoft Dynamics AX 2012 R2 (SYS)
protected boolean checkPaymentForCP_IN(LedgerJournalTrans _ledgerJournalTrans)
Run On
Server
Parameters
- _ledgerJournalTrans
Type: LedgerJournalTrans Table
Given LedgerJournalTrans buffer.
- _ledgerPostingMessageCollection
Type: LedgerPostingMessageLog Class
Return Value
Type: boolean
Returns true if payment journal can be posted; Otherwise, returns false.
Remarks
Returns false only if following conditions are matched: 1. Company account of payment journal is not logged in company.
2. TDS/TCS group is attached to payment journal.
3. Payment journal is used to settle invoice which does not belong to selected company account.