feat(address): side-by-side GoMag|ROA layout, full text, uppercase
- Two-column Bootstrap row layout (col-md-6): GoMag left, ROA right - Removed redundant "ADRESE" section title and "GOMAG"/"ROA" subheaders - Shortened labels: "Livrare:" / "Facturare:" (context clear from layout) - Allow text wrapping (white-space: normal) — no more truncation - text-transform: uppercase on addr-line-text to match ROA style - Cache bust: style.css?v=43, shared.js?v=41 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -988,26 +988,30 @@ function _renderHeaderInfo(order) {
|
||||
|
||||
// Livrare
|
||||
if (addr.livrare_gomag || addr.livrare_roa) {
|
||||
html += addrLine('Livrare GoMag:', addr.livrare_gomag, null);
|
||||
const livrRisk = hasEfacturaRisk(addr.livrare_roa);
|
||||
const livrMatch = addrMatch(addr.livrare_gomag, addr.livrare_roa);
|
||||
let matchType = null;
|
||||
if (addr.livrare_roa) {
|
||||
matchType = livrRisk ? 'risk' : (livrMatch ? 'match' : 'mismatch');
|
||||
}
|
||||
html += addrLine('Livrare ROA:', addr.livrare_roa, matchType);
|
||||
html += '<div class="row addr-row">';
|
||||
html += '<div class="col-md-6">' + addrLine('Livrare:', addr.livrare_gomag, null) + '</div>';
|
||||
html += '<div class="col-md-6">' + addrLine('Livrare:', addr.livrare_roa, matchType) + '</div>';
|
||||
html += '</div>';
|
||||
}
|
||||
|
||||
// Facturare
|
||||
if (addr.facturare_gomag || addr.facturare_roa) {
|
||||
html += addrLine('Facturare GoMag:', addr.facturare_gomag, null);
|
||||
const factRisk = hasEfacturaRisk(addr.facturare_roa);
|
||||
const factMatch = addrMatch(addr.facturare_gomag, addr.facturare_roa);
|
||||
let matchType = null;
|
||||
if (addr.facturare_roa) {
|
||||
matchType = factRisk ? 'risk' : (factMatch ? 'match' : 'mismatch');
|
||||
}
|
||||
html += addrLine('Facturare ROA:', addr.facturare_roa, matchType);
|
||||
html += '<div class="row addr-row">';
|
||||
html += '<div class="col-md-6">' + addrLine('Facturare:', addr.facturare_gomag, null) + '</div>';
|
||||
html += '<div class="col-md-6">' + addrLine('Facturare:', addr.facturare_roa, matchType) + '</div>';
|
||||
html += '</div>';
|
||||
}
|
||||
|
||||
addressLines.innerHTML = html;
|
||||
|
||||
Reference in New Issue
Block a user