Highlight versements not (fully) backed by their entrée
For "versement freelance" rows specifically: an amber outline plus a
badge when the versement either isn't linked to any entrée client at
all ("Non liée"), or is linked but reconciliationByEntree still shows
a residual on that entrée ("Reste à verser" / "Sur-versé", with the
amount in the tooltip). The residual belongs to the entrée as a whole,
not to any one sortie -- when several versements share an entrée, each
shows the same aggregate figure, since there's no way to attribute the
shortfall to one specific payment. No highlight when the linked entrée
isn't in the currently loaded window (can't tell either way -- same
accepted trade-off as reconciliationByEntree itself).
Verified: filtering to "Versement freelance" shows 21 of 25 loaded
rows flagged (17 unlinked, 4 with a reste-à-verser residual), the
remaining 4 fully-reconciled rows correctly unflagged, and the amber
outline resolves correctly in dark mode.
This commit is contained in:
@@ -9,6 +9,7 @@
|
||||
--figli-border: #dcdee2;
|
||||
--figli-error: #c9312b;
|
||||
--figli-positive: #1a7f37;
|
||||
--figli-warning: #d97a0a;
|
||||
--figli-col-hover: rgba(15, 23, 42, 0.05);
|
||||
|
||||
font-family: Inter, -apple-system, sans-serif;
|
||||
@@ -24,6 +25,7 @@ html.gin--dark-mode #figli-home-app {
|
||||
--figli-border: #3d3e42;
|
||||
--figli-error: #ff6b6b;
|
||||
--figli-positive: #4ade80;
|
||||
--figli-warning: #f0a94e;
|
||||
--figli-col-hover: rgba(255, 255, 255, 0.07);
|
||||
}
|
||||
|
||||
@@ -187,6 +189,24 @@ html.gin--dark-mode #figli-home-app {
|
||||
border-right: 1px solid var(--figli-error);
|
||||
}
|
||||
|
||||
/* Versement freelance not (fully) backed by its entrée: same thin-outline
|
||||
treatment as an error row, but amber -- it's not the ligne itself
|
||||
that's inconsistent (répartition still matches montant HT), it's the
|
||||
entrée/sortie relationship that isn't settled yet. Doesn't stack with
|
||||
figli-error-row's red in practice (different conditions), but scoped
|
||||
to :not() just in case a row is somehow both, so one outline wins
|
||||
rather than the borders visually competing. */
|
||||
#figli-home-app tr.figli-versement-warning-row:not(.figli-error-row) td {
|
||||
border-top: 1px solid var(--figli-warning);
|
||||
border-bottom: 1px solid var(--figli-warning);
|
||||
}
|
||||
#figli-home-app tr.figli-versement-warning-row:not(.figli-error-row) td:first-child {
|
||||
border-left: 1px solid var(--figli-warning);
|
||||
}
|
||||
#figli-home-app tr.figli-versement-warning-row:not(.figli-error-row) td:last-child {
|
||||
border-right: 1px solid var(--figli-warning);
|
||||
}
|
||||
|
||||
#figli-home-app td.figli-ecart {
|
||||
color: var(--figli-error);
|
||||
font-weight: 700;
|
||||
|
||||
Reference in New Issue
Block a user