This commit is contained in:
seb
2026-07-31 17:51:57 +02:00
parent 797ea59bed
commit a6a9777f31
33 changed files with 1432 additions and 422 deletions

View File

@@ -2,6 +2,7 @@ import Inventory2OutlinedIcon from '@mui/icons-material/Inventory2Outlined';
import Typography from '@mui/material/Typography';
import { Tile } from './Tile';
import { formatPrice } from '../../utils/price';
import { articleSku } from '../../pages/artikel/articleRoute';
export class ArticleTile extends Tile {
renderIcon() {
@@ -11,14 +12,17 @@ export class ArticleTile extends Tile {
renderSecondary() {
const { article } = this.props;
if (!article) return null;
const sku = articleSku(article);
return (
<>
<Typography variant="caption" color="text.secondary" noWrap sx={{ maxWidth: '100%' }}>
{article.sku}
</Typography>
{article.price != null && (
{sku ? (
<Typography variant="caption" color="text.secondary" noWrap sx={{ maxWidth: '100%' }}>
{sku}
</Typography>
) : null}
{article.net != null && (
<Typography variant="caption" fontWeight={600}>
{formatPrice(article.price)}
{formatPrice(article.net)}
</Typography>
)}
</>