Show company name + VAT ID on the account order-detail page; pick up Netto-row invoicing update
Order detail (/konto/bestellungen/[orderNumber]) already carried companyName/vatId/vatExempt on CustomerOrderDetail but never rendered them — a B2B customer looking at their own order couldn't see the company/VAT info that's already on their invoice. Now shown in the billing-address block, with a note when the order was VAT-exempt. Also bumps @einfach-produktiv/invoicing to pick up the Netto-row fix (now shown on every invoice, not just non-exempt ones). Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
@@ -87,6 +87,9 @@ export default async function KontoBestellungDetailPage({ params }: { params: Pr
|
||||
common case (no override) keeps the original "Lieferadresse"
|
||||
label, since that's exactly what this address still is. */}
|
||||
<p className="text-label text-text-muted">{order.hasDifferentShippingAddress ? "Rechnungsadresse" : "Lieferadresse"}</p>
|
||||
{order.companyName && (
|
||||
<p className="text-body-sm text-text-primary">{order.companyName}</p>
|
||||
)}
|
||||
<p className="text-body-sm text-text-primary">
|
||||
{order.customerFirstName} {order.customerLastName}
|
||||
</p>
|
||||
@@ -94,6 +97,12 @@ export default async function KontoBestellungDetailPage({ params }: { params: Pr
|
||||
<p className="text-body-sm text-text-primary">
|
||||
{order.zip} {order.city}, {order.country}
|
||||
</p>
|
||||
{order.vatId && (
|
||||
<p className="text-body-sm text-text-muted">
|
||||
USt-IdNr. {order.vatId}
|
||||
{order.vatExempt && " · steuerfreie innergemeinschaftliche Lieferung"}
|
||||
</p>
|
||||
)}
|
||||
</div>
|
||||
|
||||
{order.hasDifferentShippingAddress && (
|
||||
|
||||
Reference in New Issue
Block a user