Hi,
I customized opening balance entity (DMFOpeningBalanceEntityClass.GenerateLedgerDimension()) to allow intercompany accounts to imported, this is how I edited it:
changeCompany(entity.Company) { if(entity.AccountType != enum2str(LedgerJournalACType::Ledger)) { target.LedgerDimension = DMFDimensionHelper::generateDimensionDynamicDefaultAccount(entity.LedgerDimension,DMFEntityBase::string2Enum(entity.AccountType,enumNum(LedgerJournalACType)), enumNum(LedgerJournalACType), DMFEntityBase::string2Enum(entity.AccountType,enumNum(LedgerJournalACType))); } else { target.LedgerDimension = DMFDimensionHelper::generateDynamicDimension(entity.LedgerDimension, entity.Company, entity.ExecutionId, entity.DefinitionGroup, dmfEntityName); } }
Now for eg, there are 10 lines in a single voucher number. 5 lines of vendor (active company AAA) and 5 lines of customer (different company BBB).
Original Journal is in 'GJ' journal. And on posting the 5 customer lines should be created in IC journal. But I'm getting an error that voucher number in company 'BBB' in journal 'GJ' (instead of 'IC') are is already been used on date X/Y/Z.
How come the intercompany transactions are using 'GJ' journal in BBB and not just 'IC' journal?
*This post is locked for comments