u
This commit is contained in:
@@ -20,7 +20,7 @@ import ExpandLessIcon from '@mui/icons-material/ExpandLess';
|
||||
import ChevronLeftIcon from '@mui/icons-material/ChevronLeft';
|
||||
import articleSearchAutomat from '../automats/articleSearchAutomat';
|
||||
import BackendError from '../components/BackendError';
|
||||
import { formatPrice } from '../utils/price';
|
||||
import { formatPrice, getArticleGross } from '../utils/price';
|
||||
import {
|
||||
buildSearchUrl,
|
||||
queryFromParams,
|
||||
@@ -46,6 +46,7 @@ import {
|
||||
setLastCategoryId,
|
||||
navigationAutomat,
|
||||
categoryAutomat,
|
||||
companyAutomat,
|
||||
} from '../automats';
|
||||
import { BrandLabel } from '../components/brand';
|
||||
import { SCRIM_LABEL } from '../colors';
|
||||
@@ -586,7 +587,7 @@ class ArtikelSearchPage extends Component {
|
||||
const isParent = Boolean(row.isParent || row.is_parent);
|
||||
const childCount = Number(row.childCount) || 0;
|
||||
const showChildBadge = isParent || childCount > 0;
|
||||
const price = row.price ?? row.net ?? row.vknetto;
|
||||
const price = getArticleGross(row, companyAutomat.state.current?.taxrate);
|
||||
return (
|
||||
<ListItemButton
|
||||
key={row.id}
|
||||
|
||||
Reference in New Issue
Block a user