refs #6318 quantity #1875

Merged
carlossa merged 2 commits from 6318-negativeQuantity into dev 2023-12-07 06:59:24 +00:00
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)
if (!isAvailable || !ctx.args.quantity)
throw new UserError(`This item is not available`);
if (request.saleFk)