diff --git a/src/admin/src/app/core/i18n/translations/cs.ts b/src/admin/src/app/core/i18n/translations/cs.ts index 6a4b87f..138b802 100644 --- a/src/admin/src/app/core/i18n/translations/cs.ts +++ b/src/admin/src/app/core/i18n/translations/cs.ts @@ -223,6 +223,10 @@ export const CS_TRANSLATIONS: TranslationMap = { 'orders.prev': 'Předchozí', 'orders.next': 'Další', 'orders.detail': 'Detail objednávky', + 'orders.lines': 'Položky', + 'orders.customerShipping': 'Zákazník a doručení', + 'orders.guestCustomer': 'Host', + 'orders.updateStatus': 'Uložit stav', 'orders.shipping': 'Doručení', 'orders.shipment': 'Zásilka', 'orders.tracking': 'Sledovací číslo', diff --git a/src/admin/src/app/core/i18n/translations/de.ts b/src/admin/src/app/core/i18n/translations/de.ts index 88957b7..1be0193 100644 --- a/src/admin/src/app/core/i18n/translations/de.ts +++ b/src/admin/src/app/core/i18n/translations/de.ts @@ -223,6 +223,10 @@ export const DE_TRANSLATIONS: TranslationMap = { 'orders.prev': 'Zurück', 'orders.next': 'Weiter', 'orders.detail': 'Bestelldetails', + 'orders.lines': 'Positionen', + 'orders.customerShipping': 'Kunde & Versand', + 'orders.guestCustomer': 'Gastkunde', + 'orders.updateStatus': 'Status aktualisieren', 'orders.shipping': 'Versand', 'orders.shipment': 'Sendung', 'orders.tracking': 'Sendungsnummer', diff --git a/src/admin/src/app/core/i18n/translations/en.ts b/src/admin/src/app/core/i18n/translations/en.ts index f72a8e1..2bc1670 100644 --- a/src/admin/src/app/core/i18n/translations/en.ts +++ b/src/admin/src/app/core/i18n/translations/en.ts @@ -221,6 +221,10 @@ export const EN_TRANSLATIONS: TranslationMap = { 'orders.prev': 'Previous', 'orders.next': 'Next', 'orders.detail': 'Order details', + 'orders.lines': 'Line items', + 'orders.customerShipping': 'Customer & shipping', + 'orders.guestCustomer': 'Guest customer', + 'orders.updateStatus': 'Update status', 'orders.shipping': 'Shipping', 'orders.shipment': 'Shipment', 'orders.tracking': 'Tracking number', diff --git a/src/admin/src/app/core/i18n/translations/pl.ts b/src/admin/src/app/core/i18n/translations/pl.ts index 0391e7f..019d1e0 100644 --- a/src/admin/src/app/core/i18n/translations/pl.ts +++ b/src/admin/src/app/core/i18n/translations/pl.ts @@ -221,6 +221,10 @@ export const PL_TRANSLATIONS: TranslationMap = { 'orders.prev': 'Poprzednia', 'orders.next': 'Następna', 'orders.detail': 'Szczegóły zamówienia', + 'orders.lines': 'Pozycje', + 'orders.customerShipping': 'Klient i dostawa', + 'orders.guestCustomer': 'Gość', + 'orders.updateStatus': 'Zapisz status', 'orders.shipping': 'Dostawa', 'orders.shipment': 'Przesyłka', 'orders.tracking': 'Numer śledzenia', diff --git a/src/admin/src/app/features/orders/order-detail-modal.component.html b/src/admin/src/app/features/orders/order-detail-modal.component.html index 1b654f8..2e3d19d 100644 --- a/src/admin/src/app/features/orders/order-detail-modal.component.html +++ b/src/admin/src/app/features/orders/order-detail-modal.component.html @@ -1,115 +1,72 @@ @if (open()) {
+ {{ d.createdAt | date: 'yyyy-MM-dd HH:mm' }} + @if (d.paymentProvider) { + · {{ d.paymentProvider }} + } +
+ }{{ d.customerFirstName }} {{ d.customerLastName }}
-{{ d.customerEmail }}
-{{ d.customerPhone }}
-- {{ 'orders.carrier.' + d.shippingCarrier | translate }} - @if (d.shippingServiceType === 'parcelLocker') { - ({{ 'orders.service.parcelLocker' | translate }}) - } -
- @if (d.parcelPointName) { -{{ d.parcelPointName }}
-{{ d.parcelPointAddress }}
- } @else { -{{ d.shippingStreet }}
-{{ d.shippingPostalCode }} {{ d.shippingCity }}
-{{ d.shippingCountry }}
- } -- {{ 'orders.tracking' | translate }}: - {{ s.trackingNumber || '—' }} -
-- {{ 'orders.status' | translate }}: - {{ 'orders.shipmentStatus.' + s.status | translate }} -
- @if (s.errorMessage) { -{{ s.errorMessage }}
- } - @if (s.labelRelativePath) { - - {{ 'orders.downloadLabel' | translate }} - - } @else if (canGenerateLabel(d)) { - - } -{{ 'orders.labelNotAvailable' | translate }}
} -| {{ 'products.name' | translate }} | +{{ 'orders.qty' | translate }} | +{{ 'products.price' | translate }} | + @if (canPick()) { +{{ 'orders.pickFrom' | translate }} | ++ } + |
|---|---|---|---|---|
|
+
+
+
+
+ {{ line.productName }}
+
+ {{ line.sku }}
+ @if (line.variantColor) {
+ · {{ line.variantColor }}
+ }
+
+ |
+ {{ line.quantity }} | ++ {{ line.lineTotal | i18nCurrency }} + | + @if (canPick()) { ++ @if (!line.isCollected) { + + } @else if (line.pickedFromWarehouseName) { + + {{ line.pickedFromWarehouseName }} + ({{ line.pickedFromWarehouseCode }}) + + } + | ++ @if (line.isCollected) { + + {{ 'orders.collected' | translate }} + + } @else { + + } + | + } +
| {{ 'products.name' | translate }} | -SKU | -{{ 'orders.qty' | translate }} | -{{ 'products.price' | translate }} | - @if (canPick()) { -{{ 'orders.pickFrom' | translate }} | -{{ 'orders.status' | translate }} | - } -
|---|---|---|---|---|---|
|
- {{ line.productName }}
- {{ line.variantColor }}
- |
- {{ line.sku }} | -{{ line.quantity }} | -{{ line.lineTotal | i18nCurrency }} | - @if (canPick()) { -
- @if (!line.isCollected) {
+ @if (canPick() && pendingCount(d) > 0) {
+
+
+
+ {{ 'orders.orderWarehouse' | translate }}+
+
+
+
- } @else if (line.pickedFromWarehouseName) {
-
- {{ line.pickedFromWarehouseName }}
- ({{ line.pickedFromWarehouseCode }})
-
- }
- |
- - @if (line.isCollected) { - - {{ 'orders.collected' | translate }} - - } @else { - - } - | - } -
{{ s.errorMessage }}
+ } ++ {{ inv.invoiceNumber }} + · {{ inv.issueDate | date: 'yyyy-MM-dd' }} +
+ } +{{ inv.invoiceNumber }}
-- {{ 'orders.issueDate' | translate }}: - {{ inv.issueDate | date: 'yyyy-MM-dd' }} -
-{{ inv.sellerName }}
-{{ inv.sellerAddress }}
-NIP: {{ inv.sellerTaxId }}
+{{ inv.buyerName }}
-{{ inv.buyerEmail }}
-{{ inv.buyerAddress }}
-| {{ 'products.name' | translate }} | -{{ 'orders.qty' | translate }} | -{{ 'products.price' | translate }} | -
|---|---|---|
| - {{ line.productName }} - ({{ line.variantColor }}) - | -{{ line.quantity }} | -{{ line.lineTotal | i18nCurrency }} | -
| {{ 'products.name' | translate }} | +{{ 'orders.qty' | translate }} | ++ {{ 'products.price' | translate }} + | +
|---|---|---|
|
+ {{ line.productName }}
+ {{ line.variantColor }}
+ |
+ {{ line.quantity }} | ++ {{ line.lineTotal | i18nCurrency }} + | +
+ {{ 'orders.payment' | translate }}: + @if (inv.paymentStatus) { + {{ 'orders.paymentStatus.' + inv.paymentStatus | translate }} + } @else { + — } -
-- {{ 'orders.payment' | translate }}: - @if (inv.paymentStatus) { - {{ 'orders.paymentStatus.' + inv.paymentStatus | translate }} - } @else { - — - } - · {{ 'orders.orderRef' | translate }}: {{ inv.orderNumber }} -
- } + · {{ 'orders.orderRef' | translate }}: {{ inv.orderNumber }} + + } +