updated warehouseoffer
This commit is contained in:
@@ -29,6 +29,9 @@ $texts = [
|
||||
'title' => 'Angebot',
|
||||
'offerNumberLabel' => 'Angebotsnr.:',
|
||||
'offerDateLabel' => 'Datum:',
|
||||
'editorLabel' => 'Sachbearbeiter:',
|
||||
'usageLabel' => 'Zweck:',
|
||||
'customerReferenceLabel' => 'Kundenreferenz:',
|
||||
'validUntilLabel' => 'Gültig bis:',
|
||||
'pageLabel' => 'Seite', // For page numbering in content if needed
|
||||
'table' => [
|
||||
@@ -40,16 +43,19 @@ $texts = [
|
||||
'unitPrice' => 'Einzelpreis',
|
||||
'totalPrice' => 'Gesamtpreis'
|
||||
],
|
||||
'paymentTerms' => [
|
||||
'net30' => 'Zahlungsbedingungen: 30 Tage netto',
|
||||
'net60' => 'Zahlungsbedingungen: 60 Tage netto',
|
||||
'immediate' => 'Zahlungsbedingungen: Sofort fällig'
|
||||
],
|
||||
'summary' => [
|
||||
'subTotal' => 'Zwischensumme',
|
||||
'subTotal' => 'Nettobetrag',
|
||||
'vatFormatted' => 'zzgl. {VAT_RATE}% MwSt.', // Placeholder for rate
|
||||
'total' => 'Gesamtbetrag',
|
||||
'currency' => '€' // Currency symbol
|
||||
],
|
||||
'notes' => 'Anmerkungen:',
|
||||
'defaultOfferText' => 'Vielen Dank für Ihre Anfrage. Es gelten unsere Allgemeinen Geschäftsbedingungen.',
|
||||
'taxInfoNet' => '(Alle Preise exkl. MwSt.)', // Info if tax is added at the end
|
||||
'taxInfoGross' => '(Alle Preise inkl. MwSt.)', // Info if prices already include tax (less common in B2B offers)
|
||||
]
|
||||
// Add 'EN' => [...] section if needed
|
||||
];
|
||||
@@ -220,15 +226,28 @@ $formattedValidUntil = $validUntilDate ? date("d.m.Y", $validUntilDate) : date("
|
||||
<div class="header-info">
|
||||
<table>
|
||||
<tr>
|
||||
<td class="label"><?= $text['offerNumberLabel'] ?></td>
|
||||
<td class="label" style="text-align: left"><?= $text['offerNumberLabel'] ?></td>
|
||||
<td><?= htmlspecialchars($offerNumber) ?></td>
|
||||
<td class="label"><?= $text['offerDateLabel'] ?></td>
|
||||
<td><?= $formattedOfferDate ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td><td></td> <td class="label"><?= $text['validUntilLabel'] ?></td>
|
||||
<td class="label" style="text-align: left"><?= $text['editorLabel'] ?></td>
|
||||
<td><?= $offerEditorName ?></td>
|
||||
<td class="label"><?= $text['validUntilLabel'] ?></td>
|
||||
<td><?= $formattedValidUntil ?></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="label" style="text-align: left"><?= $text['usageLabel'] ?></td>
|
||||
<td><?= $offer->purpose ?? 'Keine Angabe' ?></td>
|
||||
</tr>
|
||||
|
||||
|
||||
<tr>
|
||||
<td class="label" style="text-align: left"><?= $text['customerReferenceLabel'] ?></td>
|
||||
<td><?= $offer->reference ?? 'Keine Angabe' ?></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
@@ -260,7 +279,12 @@ $formattedValidUntil = $validUntilDate ? date("d.m.Y", $validUntilDate) : date("
|
||||
<tr>
|
||||
<td class="pos"><?= $posCounter ?></td>
|
||||
<td class="article">
|
||||
<div class="article-title"><?= htmlspecialchars($p['articleText']) ?></div>
|
||||
<div class="article-title">
|
||||
<?php if (!empty($p['articleNumber'])): ?>
|
||||
<strong><?= htmlspecialchars($p['articleNumber']) ?></strong> |
|
||||
<?php endif; ?>
|
||||
|
||||
<?= htmlspecialchars($p['articleText']) ?></div>
|
||||
<?php if (!empty($p['articleDescription'])): ?>
|
||||
<div class="article-description"><?= nl2br(htmlspecialchars($p['articleDescription'])) ?></div>
|
||||
<?php endif; ?>
|
||||
@@ -307,14 +331,6 @@ $formattedValidUntil = $validUntilDate ? date("d.m.Y", $validUntilDate) : date("
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<?php // Tax Information Note
|
||||
if ($includeTax) {
|
||||
echo '<div class="tax-info" style="clear: both;">' . $text['taxInfoNet'] . '</div>';
|
||||
}
|
||||
// Add taxInfoGross if your prices *include* tax, which is less common for B2B offers.
|
||||
?>
|
||||
|
||||
|
||||
<div class="offer-text">
|
||||
<?php if (!empty($offerText)): ?>
|
||||
<p><strong><?= $text['notes'] ?></strong></p>
|
||||
@@ -322,8 +338,9 @@ if ($includeTax) {
|
||||
<br>
|
||||
<?php endif; ?>
|
||||
<p><?= $text['defaultOfferText'] // Add default closing text ?></p>
|
||||
<p>Zahlungsbedingungen: 14 Tage netto.</p>
|
||||
<p><?= $text['paymentTerms'][$offer->paymentTerms] ?? $text['paymentTerms']['immediate'] ?></p>
|
||||
<p>Lieferzeit: nach Vereinbarung.</p>
|
||||
<p><?= nl2br(htmlspecialchars($offer->closingText ?? '')) ?></p>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
|
||||
Reference in New Issue
Block a user