OpenXE/cronjobs/amainvoice.php

16 lines
380 B
PHP
Raw Normal View History

2021-05-21 08:49:41 +02:00
<?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;
}