I’m importing journal lines from file.
When I import them, I need to create corresponding journal(s) headers too. Lines that belong to the same journal are having the same some SomeJourID in the file. I.e it can contain lines that belong to several diff jours. Those jours have to be created upon import and lines put into them accordingly
a) As I understand I can create a journal in my custom generateJourNum method and mention it in getReturnMethod for the JournalNum field.
But if I do so and If the import fails, will it roll back the created journal header? I.e is there transaction that envelops the “staging to target” part of the DIXF process?
b) One of the fields in the file (“journal line Type”) should drive how I populate several fields on the target journal line. For example for the customer payment Account would be cust account. Text should be populated with a certain text etc
If it’s a vendor payment journal, then I need to populate the lines differently. How can I integrate such logic into my Entity class?