u
This commit is contained in:
@@ -42,6 +42,19 @@ import {
|
|||||||
YELLOW_PANEL,
|
YELLOW_PANEL,
|
||||||
} from '../../colors';
|
} from '../../colors';
|
||||||
|
|
||||||
|
function SupplierTabIcon(props) {
|
||||||
|
const { sx, ...rest } = props;
|
||||||
|
return (
|
||||||
|
<LocalShippingIcon
|
||||||
|
{...rest}
|
||||||
|
sx={[
|
||||||
|
{ transform: 'scaleX(-1)' },
|
||||||
|
...(Array.isArray(sx) ? sx : sx ? [sx] : []),
|
||||||
|
]}
|
||||||
|
/>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
const ALWAYS_TABS = [
|
const ALWAYS_TABS = [
|
||||||
{
|
{
|
||||||
id: ARTICLE_TAB.history,
|
id: ARTICLE_TAB.history,
|
||||||
@@ -54,7 +67,7 @@ const ALWAYS_TABS = [
|
|||||||
id: ARTICLE_TAB.supplier,
|
id: ARTICLE_TAB.supplier,
|
||||||
label: 'Supplier',
|
label: 'Supplier',
|
||||||
color: GREEN_PANEL,
|
color: GREEN_PANEL,
|
||||||
Icon: LocalShippingIcon,
|
Icon: SupplierTabIcon,
|
||||||
help: 'Zugeordnete Lieferanten, Einkaufspreise und Lieferanten-Artikelnummern',
|
help: 'Zugeordnete Lieferanten, Einkaufspreise und Lieferanten-Artikelnummern',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1017,7 +1017,7 @@ export default class ArticleUnifyDialog extends Component {
|
|||||||
return (
|
return (
|
||||||
<Chip
|
<Chip
|
||||||
key={key}
|
key={key}
|
||||||
icon={<LocalShippingOutlinedIcon sx={{ fontSize: 16 }} />}
|
icon={<LocalShippingOutlinedIcon sx={{ fontSize: 16, transform: 'scaleX(-1)' }} />}
|
||||||
label={`${s.company || s.supplierName || 'Lieferant'} (Lief.-ArtNr: ${s.sku || '–'}, EK: ${formatPrice(s.netPrice) || '–'})`}
|
label={`${s.company || s.supplierName || 'Lieferant'} (Lief.-ArtNr: ${s.sku || '–'}, EK: ${formatPrice(s.netPrice) || '–'})`}
|
||||||
size="small"
|
size="small"
|
||||||
color={isChecked ? 'primary' : 'default'}
|
color={isChecked ? 'primary' : 'default'}
|
||||||
@@ -1055,7 +1055,7 @@ export default class ArticleUnifyDialog extends Component {
|
|||||||
return (
|
return (
|
||||||
<Chip
|
<Chip
|
||||||
key={key}
|
key={key}
|
||||||
icon={<LocalShippingOutlinedIcon sx={{ fontSize: 16 }} />}
|
icon={<LocalShippingOutlinedIcon sx={{ fontSize: 16, transform: 'scaleX(-1)' }} />}
|
||||||
label={`${s.company || s.supplierName || 'Lieferant'} (Lief.-ArtNr: ${s.sku || '–'}, EK: ${formatPrice(s.netPrice) || '–'})`}
|
label={`${s.company || s.supplierName || 'Lieferant'} (Lief.-ArtNr: ${s.sku || '–'}, EK: ${formatPrice(s.netPrice) || '–'})`}
|
||||||
size="small"
|
size="small"
|
||||||
color={isChecked ? 'secondary' : 'default'}
|
color={isChecked ? 'secondary' : 'default'}
|
||||||
|
|||||||
@@ -227,7 +227,7 @@ export default class ArticleSupplierTab extends PureComponent {
|
|||||||
textAlign: 'center',
|
textAlign: 'center',
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<LocalShippingOutlinedIcon sx={{ fontSize: 48, mb: 1.5, color: 'text.secondary', opacity: 0.4 }} />
|
<LocalShippingOutlinedIcon sx={{ fontSize: 48, mb: 1.5, color: 'text.secondary', opacity: 0.4, transform: 'scaleX(-1)' }} />
|
||||||
<Typography variant="subtitle2" sx={{ fontWeight: 600, mb: 0.5, color: 'text.secondary' }}>
|
<Typography variant="subtitle2" sx={{ fontWeight: 600, mb: 0.5, color: 'text.secondary' }}>
|
||||||
Lieferanten sind für Vaterartikel deaktiviert
|
Lieferanten sind für Vaterartikel deaktiviert
|
||||||
</Typography>
|
</Typography>
|
||||||
|
|||||||
@@ -55,6 +55,7 @@ class DeliveryNavIcon extends PureComponent {
|
|||||||
return createElement(LocalShippingIcon, {
|
return createElement(LocalShippingIcon, {
|
||||||
...rest,
|
...rest,
|
||||||
sx: [
|
sx: [
|
||||||
|
{ transform: 'scaleX(-1)' },
|
||||||
...(Array.isArray(sx) ? sx : sx ? [sx] : []),
|
...(Array.isArray(sx) ? sx : sx ? [sx] : []),
|
||||||
(theme) => (hasDraft ? { color: theme.nav?.itemActiveAccent || NAV_ITEM_ACTIVE_ACCENT } : null),
|
(theme) => (hasDraft ? { color: theme.nav?.itemActiveAccent || NAV_ITEM_ACTIVE_ACCENT } : null),
|
||||||
],
|
],
|
||||||
|
|||||||
Reference in New Issue
Block a user