Hello, We want to capture some additional info when adding invoices in AP->Journals->Invoices->Invoice journal. The additional info is Vehicle Number and Expense Type. If the invoice is related to vehicles, then data entry operator will select vehicle and expense type, otherwise no need to save this info with invoice. It could be multiple lines.
I have two new tables VehicleTable (with VehID and VehName) and VehicleExpenseTable (VehExpId and ExpName). On Invoice journal form two dropdown lists for vehicle and expense type should appear.
At the end we want to generate reports based on amount spent on Vehicles by Expense type.
We have AX 2012 R3.
I need help in the following
1. What AX tables to add new custom fields i.e. VehID and VehExpId and relations. i.e. LedgerJournalTrans, VendInvoiceInfoTable, VendInvoiceJour or else.
2. Where to display Vehicle and Expense type combo box i.e. line or new group.
3. What to do before and after Posting.
4. What classes and methods to write the code.
5. Any better suggestions to do this customization.
Thanks and Regards,