Merge pull request 'refs #6318 fix code' (!1968) from 6318-removeQuantityCheck into dev
gitea/salix/pipeline/head This commit looks good
Details
gitea/salix/pipeline/head This commit looks good
Details
Reviewed-on: #1968 Reviewed-by: Alex Moreno <alexm@verdnatura.es>
This commit is contained in:
commit
9a224419e5
|
@ -63,7 +63,7 @@ module.exports = Self => {
|
||||||
|
|
||||||
const isAvailable = itemStock.available > 0;
|
const isAvailable = itemStock.available > 0;
|
||||||
|
|
||||||
if (!isAvailable || !ctx.args.quantity)
|
if (!isAvailable)
|
||||||
throw new UserError(`This item is not available`);
|
throw new UserError(`This item is not available`);
|
||||||
|
|
||||||
if (request.saleFk)
|
if (request.saleFk)
|
||||||
|
|
Loading…
Reference in New Issue