Hi experts,
I am a fresher to D365FO development. I am currently trying to understand the voucher process of a product receipt on setting up the category for accrued purchases.
I created and confirmed a PO with qty as 50 and doing a product receipt for 20 quantities and posting it. As a result of this, two vouchers are being generated. First line is against the account "Accrued Purchases - Received Not Invoiced" and the second against the account "Raw Materials Receipts".
I am trying to understand where exactly in code does microsoft evaluates and assigns the right main accounts for the voucher process. I tried debugging in "LedgerVoucherTransObject" and "LedgerVoucherObject" classes. Can anyone please give me some advice on which are the classes that is responsible for evaluating and assigning the main accounts for vouchers? Or any inputs or methods for me to learn the voucher process technically would help.
Also I wanna know is it possible for me to add another line to the voucher through code on posting the product receipt with one of my custom posting types? This is just purely for my learning no requirement behind it.
Thanks in advance.