ALAppExtensions
ALAppExtensions copied to clipboard
[Event Request] table 37 "Sales Line" - OnCheckApplFromItemLedgEntryOnBeforeCheckQuantitySign
Please add following event:
local procedure CheckApplFromItemLedgEntry(var ItemLedgEntry: Record "Item Ledger Entry")
var
QtyNotReturned: Decimal;
QtyReturned: Decimal;
IsHandled: Boolean;
begin
IsHandled := false;
OnBeforeCheckApplFromItemLedgEntry(Rec, xRec, ItemLedgEntry, IsHandled);
if IsHandled then
exit;
if "Appl.-from Item Entry" = 0 then
exit;
if "Shipment No." <> '' then
exit;
OnCheckApplFromItemLedgEntryOnBeforeTestFieldType(Rec);
TestField(Type, Type::Item);
TestField(Quantity);
//====>>
IsHandled := false;
OnCheckApplFromItemLedgEntryOnBeforeCheckQuantitySign(Rec, IsHandled);
if not IsHandled then
//====<<
if IsCreditDocType() then begin
if Quantity < 0 then
FieldError(Quantity, Text029);
end else begin
if Quantity > 0 then
FieldError(Quantity, Text030);
end;
[IntegrationEvent(false, false)]
local procedure OnCheckApplFromItemLedgEntryOnBeforeCheckQuantitySign(var SalesLine: Record "Sales Line"; var IsHandled: Boolean)
begin
end;
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. Please do not reply to this, as we do not monitor closed issues. If you have follow-up questions or requests, please create a new issue where you reference this one.
Build ID: 53084.