fix(web): исключённые строки в «Исходных данных ОСВ» приглушены и подписаны «не в КФО» (#206)
M-4, M-8. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
b26c1d2581
commit
09685db0e8
@ -107,7 +107,8 @@ export function CorrectionEditorModal({ versionId, table, aggregateKey, editable
|
|||||||
prevInitial.current = initial;
|
prevInitial.current = initial;
|
||||||
if (next) {
|
if (next) {
|
||||||
setState(withIds(next));
|
setState(withIds(next));
|
||||||
// правок не было — окно целиком на новой редакции, база черновика тоже; иначе при следующем открытии плашка «изменили после ваших правок» ложная
|
// правок не было — окно целиком на новой редакции, база черновика тоже;
|
||||||
|
// иначе при следующем открытии плашка «изменили после ваших правок» ложная
|
||||||
setBase(aggregate?.correction?.version_no ?? null);
|
setBase(aggregate?.correction?.version_no ?? null);
|
||||||
}
|
}
|
||||||
}, [initial]);
|
}, [initial]);
|
||||||
|
|||||||
@ -68,8 +68,11 @@ export function OsvBlock(p: OsvProps) {
|
|||||||
</tr>
|
</tr>
|
||||||
)}
|
)}
|
||||||
{p.entries.map((e) => (
|
{p.entries.map((e) => (
|
||||||
<tr key={e.entry_ids.join(',')}>
|
<tr key={e.entry_ids.join(',')} style={{ opacity: e.excluded ? 0.5 : 1 }}>
|
||||||
<td style={TD}>{e.account_code}</td>
|
<td style={TD}>
|
||||||
|
{e.account_code}
|
||||||
|
{e.excluded && <span style={{ marginLeft: 6, fontSize: 12, color: '#667085' }}>не в КФО</span>}
|
||||||
|
</td>
|
||||||
<td style={TD}>{p.article}</td>
|
<td style={TD}>{p.article}</td>
|
||||||
<td style={{ ...TD, textAlign: 'right' }}>{formatRub(e.amount)}</td>
|
<td style={{ ...TD, textAlign: 'right' }}>{formatRub(e.amount)}</td>
|
||||||
{p.editable && (
|
{p.editable && (
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user