Skip to content
Code-Schnipsel Gruppen Projekte
Commit bbd50ba9 erstellt von Henning Leutz's avatar Henning Leutz :martial_arts_uniform:
Dateien durchsuchen

fix: namefruits/juicer#431

Übergeordneter b9cf1103
Keine zugehörigen Branchen gefunden
Keine zugehörigen Tags gefunden
Keine zugehörigen Merge Requests gefunden
......@@ -15,12 +15,12 @@
<span>{$Order->getId()}</span>
</div>
{if $Order->isPosted() || $Order->isSuccessful() === false}
{if $Order->getAttribute('downloadLink') || $Order->isSuccessful() === false}
<span class="quiqqer-order-control-order-header-placer">|</span>
{/if}
<div class="quiqqer-order-control-order-header-id">
{if $Order->isPosted()}
{if $Order->isPosted() && $Order->getAttribute('downloadLink')}
<a href="{$Order->getAttribute('downloadLink')}" target="_blank">
<span class="fa fa-file-pdf-o"></span>
<span>{locale group="quiqqer/order" var="control.order.details.invoice"}</span>
......
......@@ -81,8 +81,16 @@ public function getBody()
if ($Order->hasInvoice()) {
$Invoice = $Order->getInvoice();
}
if ($Invoice instanceof QUI\ERP\Accounting\Invoice\InvoiceTemporary) {
$View->setAttribute('downloadLink', false);
}
} catch (QUI\Exception $Exception) {
QUI\System\Log::writeDebugException($Exception);
if ($Invoice instanceof QUI\ERP\Accounting\Invoice\InvoiceTemporary) {
$View->setAttribute('downloadLink', false);
}
}
switch ($this->getAttribute('template')) {
......
......@@ -15,10 +15,12 @@
<span>{$Order->getId()}</span>
</div>
{if $Order->getAttribute('downloadLink') || $Order->isSuccessful() === false}
<span class="quiqqer-order-control-order-header-placer">|</span>
{/if}
<div class="quiqqer-order-control-order-header-id">
{if $Order->isPosted()}
{if $Order->isPosted() && $Order->getAttribute('downloadLink')}
<a href="{$Order->getAttribute('downloadLink')}" target="_blank">
<span class="fa fa-file-pdf-o"></span>
<span>{locale group="quiqqer/order" var="control.order.details.invoice"}</span>
......
0% Lade oder .
You are about to add 0 people to the discussion. Proceed with caution.
Bearbeitung dieser Nachricht zuerst beenden!
Bitte registrieren oder zum Kommentieren