Address Job Queue routing review feedback

This commit is contained in:
demiliani 2026-09-11 16:18:26 +02:00
parent 69e3e1f08e
commit 9ccf8759f5
5 changed files with 83 additions and 23 deletions

View file

@ -1,7 +1,14 @@
codeunit 50113 "Job Queue Category Good"
{
procedure ConfigurePostingJobs(var PostSales: Record "Job Queue Entry"; var PostPurchases: Record "Job Queue Entry")
var
JobQueueCategory: Record "Job Queue Category";
begin
if not JobQueueCategory.Get('POSTING') then begin
JobQueueCategory.Code := 'POSTING';
JobQueueCategory.Insert();
end;
// The shared category lets only one conflicting posting job run at a time.
PostSales.Validate("Job Queue Category Code", 'POSTING');
PostPurchases.Validate("Job Queue Category Code", 'POSTING');