...
IF "Qty. to Invoice" = 0 THEN
EXIT(TRUE);
EXIT(FALSE);
END;
BEGIN
END.
}
}
...
...
IF "Qty. to Invoice" = 0 THEN
EXIT(TRUE);
EXIT(FALSE);
END;
//Add the following lines.
PROCEDURE CheckWhseActivityExists@1011();
VAR
WhseActivityLine@1019 : Record 5767;
BEGIN
IF SalesHeader."Shipping Advice" = SalesHeader."Shipping Advice"::Complete THEN BEGIN
WhseActivityLine.RESET;
WhseActivityLine.SETCURRENTKEY("Source Type","Source Subtype","Source No.","Source Line No.","Source Subline No.");
WhseActivityLine.SETRANGE("Source Type",DATABASE::"Sales Line");
WhseActivityLine.SETRANGE("Source Subtype","Document Type");
WhseActivityLine.SETRANGE("Source No.","Document No.");
IF "Document Type" = "Document Type"::Order THEN
WhseActivityLine.SETRANGE("Source Document",WhseActivityLine."Source Document"::"Sales Order");
IF "Document Type" = "Document Type"::"Return Order" THEN
WhseActivityLine.SETRANGE("Source Document",WhseActivityLine."Source Document"::"Sales Return Order");
IF NOT WhseActivityLine.ISEMPTY THEN
ERROR(Text052,SalesHeader.FIELDCAPTION("Shipping Advice"),SalesHeader."Shipping Advice",SalesHeader.FIELDCAPTION("Shipping Advice"));
END;
END;
//End of the lines.
BEGIN
END.
}
}
...