This commit is contained in:
seb
2026-10-04 22:47:26 +02:00
parent 8b401fa50b
commit a90069d340
44 changed files with 994 additions and 268 deletions

View File

@@ -89,7 +89,7 @@ export default class ArticleSearchDialog extends PureComponent {
const { onAssign, line } = this.props;
if (!onAssign || !article?.sku) return;
if (article.isFather || article.is_father) {
if (article.isParent || article.is_parent) {
this.setState({ error: 'Ein Vaterartikel kann nicht auf Belege gebucht werden.' });
return;
}
@@ -109,7 +109,7 @@ export default class ArticleSearchDialog extends PureComponent {
const { open, onClose, line } = this.props;
const { query, articles, loading, error, assigningSku } = this.state;
const bookableArticles = articles.filter((a) => !a.isFather && !a.is_father);
const bookableArticles = articles.filter((a) => !a.isParent && !a.is_parent);
const trimmed = query.trim().toLowerCase();
const filtered = trimmed
? bookableArticles.filter((a) => {