This commit is contained in:
seb
2026-10-14 12:53:33 +02:00
parent e7b3044903
commit 62fa58e4ec

View File

@@ -70,9 +70,9 @@ class ManifestLines extends PureComponent {
...(wide >= 4 ? { gridColumn: { xs: '1 / -1', sm: '1 / -1', md: 'span 4' } } : {}),
...(!hasArticles
? {
border: '1.5px solid',
borderColor: 'error.main',
}
border: '1.5px solid',
borderColor: 'error.main',
}
: {}),
}}
>
@@ -108,11 +108,11 @@ class ManifestLines extends PureComponent {
const isDelivery = kind === 'delivery';
const matched = isDelivery
? supplierArticlesByLineKey[lineKey] ||
(rawSku ? supplierArticlesMap[rawSku.toLowerCase()] || supplierArticlesMap[rawSku] : null)
(rawSku ? supplierArticlesMap[rawSku.toLowerCase()] || supplierArticlesMap[rawSku] : null)
: null;
const isLineLoading = isDelivery
? loadingLineKeys[lineKey] ||
(supplierArticlesLoading && !matched)
(supplierArticlesLoading && !matched)
: false;
const ledgerLine = line.id != null ? ledgerLinesById[line.id] : null;
@@ -163,7 +163,6 @@ class ManifestLines extends PureComponent {
)}
<Button
size="small"
color="error"
startIcon={<DeleteSweepOutlinedIcon />}
disabled={saving || !lines || lines.length === 0}
onClick={onRemoveAllLines}