OnGetBatchGroup
Example and syntax
function OnGetBatchgroup(aWrapper:TSalesLineWrapper; aNewBatchGroup:Integer):Integer;
begin
if aWrapper.HasCornerCuts then // Check if there are corner cuts
Result := aNewBatchgroup + 10 // Return calculated batch group plus 10
else
Result := aNewBatchgroup; // Otherwise return the default batch group
end;
Last updated