u
This commit is contained in:
@@ -131,7 +131,7 @@ export default class ArticleViewStock extends PureComponent {
|
|||||||
if (!Array.isArray(children)) return;
|
if (!Array.isArray(children)) return;
|
||||||
for (const child of children) {
|
for (const child of children) {
|
||||||
if (child?.sku && !getArticle(child.sku)) {
|
if (child?.sku && !getArticle(child.sku)) {
|
||||||
void artikelAutomat.actions.loadArticle(child.sku).catch(() => {});
|
void artikelAutomat.actions.loadArticle(child.sku).catch(() => { });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -394,23 +394,6 @@ export default class ArticleViewStock extends PureComponent {
|
|||||||
{/* Warehouse stocks */}
|
{/* Warehouse stocks */}
|
||||||
{hasWarehouses ? (
|
{hasWarehouses ? (
|
||||||
<>
|
<>
|
||||||
{hasIncoming ? (
|
|
||||||
<Typography
|
|
||||||
variant="caption"
|
|
||||||
sx={{
|
|
||||||
fontSize: '0.68rem',
|
|
||||||
fontWeight: 700,
|
|
||||||
color: 'text.secondary',
|
|
||||||
textTransform: 'uppercase',
|
|
||||||
letterSpacing: 0.5,
|
|
||||||
px: 0.5,
|
|
||||||
mb: 0.1,
|
|
||||||
display: 'block',
|
|
||||||
}}
|
|
||||||
>
|
|
||||||
Lagerorte
|
|
||||||
</Typography>
|
|
||||||
) : null}
|
|
||||||
{warehouses.map((wh) => (
|
{warehouses.map((wh) => (
|
||||||
<Box
|
<Box
|
||||||
key={wh.id}
|
key={wh.id}
|
||||||
@@ -476,22 +459,6 @@ export default class ArticleViewStock extends PureComponent {
|
|||||||
{/* Incoming shipments */}
|
{/* Incoming shipments */}
|
||||||
{hasIncoming ? (
|
{hasIncoming ? (
|
||||||
<>
|
<>
|
||||||
<Typography
|
|
||||||
variant="caption"
|
|
||||||
sx={{
|
|
||||||
fontSize: '0.68rem',
|
|
||||||
fontWeight: 700,
|
|
||||||
color: 'text.secondary',
|
|
||||||
textTransform: 'uppercase',
|
|
||||||
letterSpacing: 0.5,
|
|
||||||
px: 0.5,
|
|
||||||
mt: hasWarehouses ? 0.75 : 0,
|
|
||||||
mb: 0.1,
|
|
||||||
display: 'block',
|
|
||||||
}}
|
|
||||||
>
|
|
||||||
Im Zulauf
|
|
||||||
</Typography>
|
|
||||||
{incomingItems.map((inc, idx) => {
|
{incomingItems.map((inc, idx) => {
|
||||||
const dateLabel = inc.date ? formatDate(inc.date) : null;
|
const dateLabel = inc.date ? formatDate(inc.date) : null;
|
||||||
const label = [
|
const label = [
|
||||||
|
|||||||
Reference in New Issue
Block a user