Подстроки под родителем, пустые строки детализации свёрнуты (#34, AURORA-1527) #35
@ -8,6 +8,8 @@ export const failureText = (f: FailedCheckOut) =>
|
||||
|
||||
type Props = { checks: ChecksOut; editable: boolean; dirty: boolean; onAccept: (comment: string) => Promise<void> };
|
||||
|
||||
// soft_failed — мягкие соотношения §7 (2400, 2500, «сумма подстрок = родитель») и жёсткие в пределах округления;
|
||||
// подтверждение они не блокируют
|
||||
// длинный список нарушений (OCR) не должен выталкивать таблицу формы за экран
|
||||
const failureList = (list: FailedCheckOut[]) => (
|
||||
<div style={{ maxHeight: 120, overflowY: 'auto' }}>
|
||||
@ -45,7 +47,7 @@ export function ChecksPanel({ checks, editable, dirty, onAccept }: Props) {
|
||||
<Alert type='error' showIcon title={`Нарушения (${checks.failed.length})`} description={failureList(checks.failed)} />
|
||||
)}
|
||||
{checks.soft_failed.length > 0 && (
|
||||
<Alert type='warning' showIcon title='Расхождения в пределах округления' description={failureList(checks.soft_failed)} />
|
||||
<Alert type='warning' showIcon title={`Предупреждения проверок (${checks.soft_failed.length})`} description={failureList(checks.soft_failed)} />
|
||||
)}
|
||||
{checks.cross_form && (
|
||||
<Alert
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user