u
This commit is contained in:
@@ -86,9 +86,9 @@ export default function setPricesBySku(provider) {
|
||||
throw new Error('POS customer group required');
|
||||
}
|
||||
|
||||
const artCheck = await runner.query('SELECT is_father FROM article WHERE id = @articleId', { articleId });
|
||||
if (artCheck.rows[0]?.is_father) {
|
||||
throw new Error('A father article cannot have prices');
|
||||
const artCheck = await runner.query('SELECT is_parent FROM article WHERE id = @articleId', { articleId });
|
||||
if (artCheck.rows[0]?.is_parent) {
|
||||
throw new Error('A parent article cannot have prices');
|
||||
}
|
||||
|
||||
// Read old prices for history
|
||||
|
||||
Reference in New Issue
Block a user