I need to create a Vend Invoice Journal from code.
I have tried creating it using the VendInvoiceJournalHeaderEntity and VendInvoiceJournalLineEntity. I need the user to validate the Journal in the form. The Journal seems all right but when you validate the Journal I get this error: "Voucher CCH-000000108ARG Message details Function DimensionValidationRequest::newForLedgerDimensionType has been incorrectly called."
I am using a Vendor type account. If you cut the Account from the form and paste it again and then validate the Journal it validates!
What could it be wrong? Any will be appreciated!