Codeunit 6229 Sust. Purchase Copy Document
Source AL, 80 lines
src/Apps/W1/Sustainability/app/src/Purchase/SustPurchaseCopyDocument.Codeunit.allines 7 to 22 of 80, Copyright (c) Microsoft Corporation. MIT
codeunit 6229 "Sust. Purchase Copy Document"{ [EventSubscriber(ObjectType::Codeunit, Codeunit::"Copy Document Mgt.", 'OnCopyPurchLineOnBeforeValidateQuantity', '', false, false)] local procedure OnCopyPurchLineOnBeforeValidateQuantity(var ToPurchLine: Record "Purchase Line"; FromPurchaseLine: Record "Purchase Line") begin CopyFromPuchLine(ToPurchLine, FromPurchaseLine); end; [EventSubscriber(ObjectType::Codeunit, Codeunit::"Copy Document Mgt.", 'OnAfterCopyPurchRcptLine', '', false, false)] local procedure OnAfterCopyPurchRcptLine(var ToPurchaseLine: Record "Purchase Line"; FromPurchRcptLine: Record "Purch. Rcpt. Line") begin CopyFromPuchRcptLine(ToPurchaseLine, FromPurchRcptLine); end; local procedure CopyFromPuchLine(var ToPurchLine: Record "Purchase Line"; FromPurchaseLine: Record "Purchase Line") begin