mirror of
https://github.com/OpenXE-org/OpenXE.git
synced 2024-11-14 12:07:15 +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;
|
|
}
|