Friday, January 22, 2021

NAV BC - Pick Ticket Print Option when generating from "Create Pick" uses hardcoded report instead of defined picking report

 R7318


Line 34 is hardcoded to Pick List Report. Change this to your custom Report.


Add this global

Name DataType Subtype Length

WhseActPrint Codeunit Warehouse Document-Print

Change this code 

IF NOT IsHandled THEN

      REPORT.RUN(REPORT::"Picking List",FALSE,FALSE,WhseActivHeader);

  END;


To this code

IF NOT IsHandled THEN

      //REPORT.RUN(REPORT::"Picking List",FALSE,FALSE,WhseActivHeader); MOD

      WhseActPrint.PrintPickHeader(WhseActivHeader);     //MOD  

  END;

No comments:

Post a Comment