ALAppExtensions icon indicating copy to clipboard operation
ALAppExtensions copied to clipboard

[Event Request] Table 7321 - function CreatePickDock

Open Bleika opened this issue 7 years ago • 0 comments

This function uses Report 7318 to create a Picking. The Report is reference as a varible in Code so there's no way to provide for an alternative Report. Please add an Event with Handled patter to allow for a personalized Pick creation and modify the function as follows:

[External] CreatePickDoc(VAR WhseShptLine : Record "Warehouse Shipment Line";WhseShptHeader2 : Record "Warehouse Shipment Header") WhseShptHeader2.TESTFIELD(Status,WhseShptHeader.Status::Released); WhseShptLine.SETFILTER(Quantity,'>0'); WhseShptLine.SETRANGE("Completely Picked",FALSE); IF WhseShptLine.FIND('-') THEN BEGIN //-NEW CODE OnBeforeCreatePickDoc(WhseShptLine,WhseShptHeader2,HideValidationDialog,IsHandled); If not IsHandled then begin //+NEW CODE CreatePickFromWhseShpt.SetWhseShipmentLine(WhseShptLine,WhseShptHeader2); CreatePickFromWhseShpt.SetHideValidationDialog(HideValidationDialog); CreatePickFromWhseShpt.USEREQUESTPAGE(NOT HideValidationDialog); CreatePickFromWhseShpt.RUNMODAL; CreatePickFromWhseShpt.GetResultMessage; CLEAR(CreatePickFromWhseShpt); OnAfterCreatePickDoc(WhseShptHeader2); //-NEW CODE end; //+NEW CODE END ELSE IF NOT HideValidationDialog THEN MESSAGE(Text011);

LOCAL [IntegrationEvent] OnBeforeCreatePickDoc(WhseShipLine : Record "Warehouse Shipment Line";WhseShipHdr : Record "Warehouse Shipment Header";HideValidationDialog : Boolean;VAR IsHandled : Boolean)

Bleika avatar Feb 01 '19 12:02 Bleika