ALAppExtensions icon indicating copy to clipboard operation
ALAppExtensions copied to clipboard

[Event Request] page 5856 "Get Post.Doc - P.RcptLn Sbfrm" - OnBeforeCalcReceivedPurchNotReturnedOnIsShowRec

Open MiRo65 opened this issue 6 years ago • 3 comments

Could we please have an event OnBeforeCalcReceivedPurchNotReturnedOnIsShowRec in page 5856 in function IsShowRec?

Code Example: begin with PurchRcptLine2 do begin RemainingQty := 0; if RevQtyFilter and (Type = Type::" ") then exit("Attached to Line No." = 0); if Type <> Type::Item then exit(true); // start kvspsa - Code Modification //if ("Job No." <> '') or ("Prod. Order No." <> '') then // exit(not RevQtyFilter); IsHandled := false; OnBeforeCalcReceivedPurchNotReturnedOnIsShowRec(PurchRcptLine2, RevQtyFilter, IsHandled); if IsHandled then exit(not RevQtyFilter); // stop kvspsa CalcReceivedPurchNotReturned(RemainingQty, RevUnitCostLCY, FillExactCostReverse);

Event: [IntegrationEvent(TRUE, false)] local procedure OnBeforeCalcReceivedPurchNotReturnedOnIsShowRec(PurchRcptLine: Record "Purch. Rcpt. Line"; var RevQtyFilter: Boolean; var IsHandled: Boolean); begin end;

Thank you and kind regards

MiRo65 avatar Jan 28 '20 13:01 MiRo65

Sorry, I cannot make this change. You should not remove our code.

AlexanderYakunin avatar Feb 06 '20 13:02 AlexanderYakunin

ok, sorry, I change my code example:

Code Example: begin with PurchRcptLine2 do begin RemainingQty := 0; if RevQtyFilter and (Type = Type::" ") then exit("Attached to Line No." = 0); if Type <> Type::Item then exit(true); if ("Job No." <> '') or ("Prod. Order No." <> '') then exit(not RevQtyFilter); // start kvspsa - Code Modification IsHandled := false; OnBeforeCalcReceivedPurchNotReturnedOnIsShowRec(PurchRcptLine2, RevQtyFilter, IsHandled); if IsHandled then exit(not RevQtyFilter); // stop kvspsa CalcReceivedPurchNotReturned(RemainingQty, RevUnitCostLCY, FillExactCostReverse);

MiRo65 avatar Feb 06 '20 14:02 MiRo65

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. We will update this issue with information about availability.

bc-ghost avatar Mar 16 '20 11:03 bc-ghost