fix(partner-ui): orange dot + fallback name for unknown ROA partner
- diff dot for partner_mismatch uses --warning (orange) instead of --error to distinguish from price mismatch (also red) - modal ROA column shows "necunoscut - se va actualiza la urmatorul sync" when denumire_roa is null but partner_mismatch=1 (orders imported before the column existed) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -512,7 +512,7 @@ function diffDots(o, mobile) {
|
||||
if (o.address_mismatch===1)
|
||||
d += `<span style="${s};background:var(--info)" title="Adresa diferita"></span>`;
|
||||
if (o.partner_mismatch===1)
|
||||
d += `<span style="${s};background:var(--error)" title="Partener schimbat"></span>`;
|
||||
d += `<span style="${s};background:var(--warning)" title="Partener schimbat"></span>`;
|
||||
if (o.price_match===false)
|
||||
d += `<span style="${s};background:var(--error)" title="Pret GoMag > ROA"></span>`;
|
||||
return d;
|
||||
|
||||
@@ -885,11 +885,14 @@ function _renderHeaderInfo(order) {
|
||||
}
|
||||
|
||||
// ROA column — show partner name for both PJ and PF
|
||||
if (pi && pi.denumire_roa) {
|
||||
const partenerRoa = document.getElementById('detailPartenerRoa');
|
||||
if (partenerRoa) {
|
||||
const partenerRoa = document.getElementById('detailPartenerRoa');
|
||||
if (partenerRoa) {
|
||||
if (pi && pi.denumire_roa) {
|
||||
partenerRoa.textContent = pi.denumire_roa;
|
||||
partenerRoa.style.display = '';
|
||||
} else if (pi && pi.partner_mismatch) {
|
||||
partenerRoa.innerHTML = '<span class="text-muted" style="font-style:italic">necunoscut — se va actualiza la urmatorul sync</span>';
|
||||
partenerRoa.style.display = '';
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user