Hello Expert,
To create cash recipe journal with applied entry with posted sales invoice.
See in below screenshot
I have write code in below,
In code we have four GL account wise create GenJnline entry and post it.
So It posting preview to GL entry like this,
In above entries yellow mark is I have created and blue marks are automatically generated.
and also red marked are not applied entry so it normal entry are created.
In above Screenshot to generate G/L Register.
Here my Question is : How can we generate distinct GL Registers based on document number?
Version: MX Business Central 21.5 (Platform 21.0.53597.55032 + Application 21.5.53619.53813)