Why do you need this change?
I would like an additional var parameter called SkipNewExpirationDateCheck added to the OnCheckExpirationDateOnAfterCalcSumLot event, and if this is set to true by the subscriber, to then skip the TestField on the "New Expiration Date" field
Note: As this is an integration event, adding extra parameters is not a breaking change, and existing subscribers will be unaffected
Describe the request
Existing code
OnCheckExpirationDateOnAfterCalcSumLot(SumLot, SignFactor, TempTrackingSpecification);
if (SumOfEntries > 0) and
((SumOfEntries <> SumLot) or (TempTrackingSpecification."New Lot No." <> TempTrackingSpecification."Lot No.")
or (TempTrackingSpecification."New Package No." <> TempTrackingSpecification."Package No."))
then
TempTrackingSpecification.TestField("New Expiration Date", ExistingExpirationDate);
Amended/Proposed Code
SkipNewExpirationDateCheck := false;
OnCheckExpirationDateOnAfterCalcSumLot(SumLot, SignFactor, TempTrackingSpecification, SkipNewExpirationDateCheck);
if (not SkipNewExpirationDateCheck) and (SumOfEntries > 0) and
((SumOfEntries <> SumLot) or (TempTrackingSpecification."New Lot No." <> TempTrackingSpecification."Lot No.")
or (TempTrackingSpecification."New Package No." <> TempTrackingSpecification."Package No."))
then
TempTrackingSpecification.TestField("New Expiration Date", ExistingExpirationDate);
Current event signature
[IntegrationEvent(false, false)]
local procedure OnCheckExpirationDateOnAfterCalcSumLot(var SumLot: Decimal; SignFactor: Integer; var TempTrackingSpecification: Record "Tracking Specification" temporary)
begin
end;
Updated event signature
[IntegrationEvent(false, false)]
local procedure OnCheckExpirationDateOnAfterCalcSumLot(var SumLot: Decimal; SignFactor: Integer; var TempTrackingSpecification: Record "Tracking Specification" temporary; var SkipNewExpirationDateCheck: Boolean)
begin
end;
Internal work item: AB#642607
Why do you need this change?
I would like an additional var parameter called SkipNewExpirationDateCheck added to the OnCheckExpirationDateOnAfterCalcSumLot event, and if this is set to true by the subscriber, to then skip the TestField on the "New Expiration Date" field
Note: As this is an integration event, adding extra parameters is not a breaking change, and existing subscribers will be unaffected
Describe the request
Existing code
Amended/Proposed Code
Current event signature
Updated event signature
Internal work item: AB#642607