Hi,
I'm creating customer payment journal through code X , currently I have error when post the journal (by code) of saying like this :
Account number for transaction type Bank does not exist. Validation was performed on ledger account with record ID 5637328577.;Posting results for journal batch number P-000000421 Posting has been canceled.
I suspect this is because of the offset account whereby I'm using Bank for the Offset account type.
The value / field assignment by code for the offset account it self is like this :
ledgerJournalTrans.OffsetAccountType = CustPaymModeTable::find(ledgerJournalTrans.PaymMode).AccountType ledgerjournaltrans.OffsetCompany = curExt(); ledgerjournalTrans.OffsetLedgerDimension = CustPaymModeTable::find(ledgerJournalTrans.PaymMode).PaymentLedgerDimension;
and the setup of the Method of payment it self is like this :
Anyone know what is wrong ? When Account type is bank, there is no setup for account but to choose the bank account, And in that bank account, I did setup the main account ->
Thanks