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 = '';
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -170,7 +170,7 @@
|
||||
|
||||
<script>window.ROOT_PATH = "{{ rp }}";</script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js"></script>
|
||||
<script src="{{ rp }}/static/js/shared.js?v=35"></script>
|
||||
<script src="{{ rp }}/static/js/shared.js?v=36"></script>
|
||||
<script>
|
||||
// Dark mode toggle
|
||||
function toggleDarkMode() {
|
||||
|
||||
@@ -114,5 +114,5 @@
|
||||
{% endblock %}
|
||||
|
||||
{% block scripts %}
|
||||
<script src="{{ request.scope.get('root_path', '') }}/static/js/dashboard.js?v=44"></script>
|
||||
<script src="{{ request.scope.get('root_path', '') }}/static/js/dashboard.js?v=45"></script>
|
||||
{% endblock %}
|
||||
|
||||
Reference in New Issue
Block a user