X++ code to create and post Inventory Adjustment Journal By Posting Packing Slip From Sales Order
Following is the sample job to show how we can create and post Adjustment journal by x++ To Create and Post Journal From Sales Packing Slip ,Create a COC for class SalesFormLetter_PackingSlip and use Run method . [ExtensionOf(classStr(SalesFormLetter_PackingSlip))] final class Inventoryadjustmentjournal_Extension { public void run() { next run(); CustPackingSlipJour custPackingSlipJour; custPackingSlipJour = this.parmJournalRecord(); InventjournalHelper::invAdjJour(CustPackingSlipJour); } } Creating Helper Class for creation of Header and Line creation and passing helper class method in COC. public class InventjournalHelper { public static void invAdjJour(CustPackingSlipJour custPackingSlipJour) ...