WarehouseOffer PDF Cleaner View

This commit is contained in:
Luca Haid
2025-07-15 12:13:45 +00:00
parent ae5df0fc7c
commit 325bf5a582

View File

@@ -191,9 +191,13 @@ $formattedValidUntil = date("d.m.Y", strtotime("+14 days", $offerDate));
</tr>
<?php if ($discountAmount > 0): ?>
<tr>
<td class="label"><?= $text['summary']['discount'] ?> (<?= number_format($discountPercentage, 0) ?>%):</td>
<td class="label"><?= $text['summary']['discount'] ?> (<?= rtrim(rtrim(number_format($discountPercentage, 3), '0'), '.') ?>%):</td>
<td class="value">-<?= formatPrice($discountAmount, '€') ?></td>
</tr>
<tr class="subtotal">
<td class="label">Zwischensumme (nach Rabatt):</td>
<td class="value"><?= formatPrice($subTotal - $discountAmount, '€') ?></td>
</tr>
<?php endif; ?>
<?php if ($includeTax):
$vatLabel = str_replace('{VAT_RATE}', number_format($vatRate * 100, 0), $text['summary']['vatFormatted']);