Create Inventory Adjustment Journal d365fo x++
Create Inventory Adjustment Journal d365fo x++ Code: public void processOperation(JSInvADJJournalCreationContract _contract) { InventJournalTable inventJournalTable; InventJournalTrans inventJournalTrans; GroupType GroupType = _contract.paramGroupType(); InventLocationId Warehouse = _contract.paramInventLocationId(); // Create journal table inventJournalTable = JSInvADJJournalCreationService::createJournalTable(); if(inventJournalTable) { // Initialize journal trans inventJournalTrans = JSInvADJJournalCreationService::createLines(GroupType, Warehouse, inventJournalTable); info(strFmt("INV Adjustment JOURNAL CREATED %1", INVENTJOURNALTABLE.JournalId)); // Post Inventory journal JSInvADJJournalCreationService::postInventTableJournal(inventJournalTable); } } private static InventJournalTable createJournalTable() { INVENTJOURNALTABLE INVENTJOURNALTABLE; InventJournalNameId inventJourna...