OpenXE/cronjobs/amainvoice.php
2021-05-21 08:49:41 +02:00

16 lines
380 B
PHP

<?php
use Xentral\Modules\AmaInvoice\Scheduler\AmaInvoiceTask;
if(!$app->erp->ModulVorhanden('amainvoice')) {
return;
}
try {
/** @var AmaInvoiceTask $amaInvoiceTask */
$amaInvoiceTask = $app->Container->get('AmaInvoiceTask');
$amaInvoiceTask->execute();
$amaInvoiceTask->cleanup();
} catch (\Exception $exception) {
$amaInvoiceTask->cleanup();
throw $exception;
}