XML für Dokumentenvorlagen werden automatisch erweitert um die

Information ob das Dokument anschließend signiert wird.
This commit is contained in:
Andreas Österreicher
2018-02-21 11:40:49 +01:00
parent 03f679cf5f
commit a2e3686d47
3 changed files with 37 additions and 28 deletions
+10 -22
View File
@@ -319,22 +319,14 @@ if (!isset($_REQUEST["archive"]))
$dokument->setFilename($filename);
if (!$dokument->create($output))
die($dokument->errormsg);
if ($sign === true)
{
if ($dokument->sign($user))
{
$dokument->output();
}
else
{
echo $dokument->errormsg;
}
$dokument->sign($user);
}
else
if ($dokument->create($output))
$dokument->output();
$dokument->close();
}
}
@@ -413,18 +405,14 @@ else
if ($sign === true)
{
if ($dokument->sign($user))
{
$doc = $dokument->output(false);
}
else
{
$error = true;
$errormsg = $dokument->errormsg;
}
$dokument->sign($user);
}
else
if ($dokument->create($output))
$doc = $dokument->output(false);
else
$error = true;
$dokument->close();
if(!$error)