mirror of
https://github.com/OpenXE-org/OpenXE.git
synced 2024-12-27 07:00:29 +01:00
16 lines
380 B
PHP
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;
|
||
|
}
|