Feature: Shipping Carrier Additions, Creating a voucher without an order, verifying order details before creating voucher, ELTA Courier voucher print updates

This commit is contained in:
arvanitakis committed 2026-10-01 01:51:13 +03:00
1 parent c455c8adf2
commit 5ff0d60f54
27 files changed
+2189 -376

No files matched your search

@@ -250,6 +250,25 @@ class OrderShipmentsExtension extends ViewPageExtension
$parts[] = 'Manual voucher';
}
// Carrier-reported extras (ELTA so far): its routing note, the
// return voucher issued with special handling, who received the
// parcel and when, and the COD cash paid back to us.
if ($routing = $record->meta['routing'] ?? null) {
$parts[] = $routing;
}
if ($returnVoucher = $record->meta['return_vg'] ?? null) {
$parts[] = 'Return voucher '.$returnVoucher;
}
if ($deliveredTo = $record->meta['delivered_to'] ?? null) {
$parts[] = trim('Received by '.$deliveredTo.' '.($record->meta['delivered_at'] ?? ''));
}
if ($remitted = $record->meta['cod_remitted'] ?? null) {
$parts[] = trim('COD paid back: €'.number_format((float) $remitted, 2).' '.($record->meta['cod_remittance'] ?? ''));
}
return implode(' · ', $parts);
}