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