fix(anaf-dedup): fix ANAF parsing, facturare addr, compact modal layout
- Fix ANAF API: extract CUI from date_generale (not top-level), fix notFound casing (capital F) - Fix missing facturare address when same ID as livrare (copy instead of skip) - Replace ANAF cache pre-population stub with real logic (3-month CUIs) - Restructure order detail modal: inline 2-col GOMAG|ROA layout with compact address lines replacing collapsed sections - Fix addrMatch() to use field-level comparison with Romanian abbreviation stripping (STR, NR, BL, SC, AP, ET, ETAJ, APART) - Add dashboard "Diferente" filter pill for ANAF-adjusted orders - Update e2e test for new modal structure Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -451,6 +451,7 @@ input[type="checkbox"] {
|
||||
.fc-neutral { color: var(--text-muted); }
|
||||
.fc-blue { color: var(--info); }
|
||||
.fc-dark { color: var(--text-secondary); }
|
||||
.fc-orange { color: var(--accent); }
|
||||
|
||||
/* ── Log viewer (dark theme — keep as-is) ────────── */
|
||||
.log-viewer {
|
||||
@@ -1155,6 +1156,66 @@ tr.mapping-deleted td {
|
||||
.anaf-badge-ok { background: var(--success-light); color: var(--success-text); }
|
||||
.anaf-badge-warn { background: var(--warning-light); color: var(--warning-text); }
|
||||
.anaf-badge-gray { background: var(--cancelled-light); color: var(--text-muted); }
|
||||
|
||||
/* ── Compact order detail layout ──────────────── */
|
||||
.detail-col-label {
|
||||
font-family: var(--font-display);
|
||||
font-size: 12px;
|
||||
font-weight: 500;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.04em;
|
||||
color: var(--text-muted);
|
||||
margin-bottom: 4px;
|
||||
}
|
||||
.detail-client-name {
|
||||
font-family: var(--font-body);
|
||||
font-size: 14px;
|
||||
font-weight: 600;
|
||||
color: var(--text-primary);
|
||||
margin-bottom: 2px;
|
||||
}
|
||||
.detail-cui-line {
|
||||
font-size: 13px;
|
||||
margin-bottom: 2px;
|
||||
}
|
||||
.detail-roa-id {
|
||||
font-size: 13px;
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
|
||||
/* Address compact lines */
|
||||
.addr-line {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
padding: 2px 0;
|
||||
font-size: 13px;
|
||||
font-family: var(--font-body);
|
||||
}
|
||||
.addr-line-label {
|
||||
flex-shrink: 0;
|
||||
width: 120px;
|
||||
font-size: 12px;
|
||||
color: var(--text-muted);
|
||||
font-family: var(--font-body);
|
||||
}
|
||||
.addr-line-text {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
color: var(--text-primary);
|
||||
}
|
||||
.addr-line .bi-check-lg {
|
||||
color: var(--success);
|
||||
flex-shrink: 0;
|
||||
}
|
||||
.addr-line .bi-exclamation-triangle {
|
||||
color: var(--warning);
|
||||
flex-shrink: 0;
|
||||
filter: drop-shadow(0 0 3px rgba(202,138,4,0.3));
|
||||
}
|
||||
.addr-table { width: 100%; border-collapse: collapse; font-size: 13px; }
|
||||
.addr-table th {
|
||||
font-family: var(--font-display);
|
||||
|
||||
Reference in New Issue
Block a user