refs #6318 fix code
gitea/salix/pipeline/head There was a failure building this commit Details

This commit is contained in:
Carlos Satorres 2024-01-30 13:09:15 +01:00
parent acf47468c0
commit 2fc39d54a0
1 changed files with 1 additions and 1 deletions

View File

@ -63,7 +63,7 @@ module.exports = Self => {
const isAvailable = itemStock.available > 0;
if (!isAvailable || !ctx.args.quantity)
if (!isAvailable)
throw new UserError(`This item is not available`);
if (request.saleFk)