Goal: change the Vaultevent in Files/PowerEvents/Events/Lifecycle.ps1 and the ErpService.Create.PDF.ps1 - Job in Files/PowerJobs/Jobs/ErpService.Create.PDF.ps1 that we don't need the Create.PDFfromItem - Job anymore.
I've extracted the synchronizeJob
Both events, AddPdfJob and AddItemPdfJob are using the same Vaultjob now - ErpService.Create.PDF.ps1
The AddItemPdfJob collects all items and attached drawings now with foreach loops
The AddItemPdfJob VaultJob has now an additional parameter "ItemNumber" = $item._Number
I've added a if statement in the Job himself for checking is there is an item number, if yes he updates the VaultItem by attaching the PDF file
Goal: change the
Vaultevent
inFiles/PowerEvents/Events/Lifecycle.ps1
and theErpService.Create.PDF.ps1 - Job
inFiles/PowerJobs/Jobs/ErpService.Create.PDF.ps1
that we don't need theCreate.PDFfromItem - Job
anymore.synchronizeJob
AddPdfJob
andAddItemPdfJob
are using the sameVaultjob
now -ErpService.Create.PDF.ps1
AddItemPdfJob
collects all items and attached drawings now with foreach loopsAddItemPdfJob
VaultJob has now an additional parameter"ItemNumber" = $item._Number