I'm trying to import some data from an external database into a general journal. I've got it working in general minus the fact that my ledgerDimension values are not coming up correctly.
These are line items that will contain a date, an account type of ledger, and either a debit or credit. So they are all main accounts. To get the ledger dimension I simply call this for example:
ledgerTrans.parmLedgerDimension(DimensionStorage::getDefaultAccountForMainAccountNum('1234567'));
where 1234567 is the main account. When I launch the general journal form I am getting stack trace errors now because it's reaching back to a dimensionAttributeValueCombination that no longer exists.
How can I get this to construct the proper ledgerDimension recid on insert.
*This post is locked for comments
I have the same question (0)