From 3f8a67578592f15a43d69e6749869ef66e8e2caf Mon Sep 17 00:00:00 2001 From: joan Date: Tue, 13 Oct 2020 08:42:13 +0200 Subject: [PATCH] 2499 - Allow zero quantity --- modules/entry/front/basic-data/index.html | 8 +++----- modules/ticket/front/sale/index.js | 2 +- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/modules/entry/front/basic-data/index.html b/modules/entry/front/basic-data/index.html index f3adc6b02..475afdfd4 100644 --- a/modules/entry/front/basic-data/index.html +++ b/modules/entry/front/basic-data/index.html @@ -1,11 +1,9 @@ + + form="form" + save="patch">
diff --git a/modules/ticket/front/sale/index.js b/modules/ticket/front/sale/index.js index 48f33454c..e022e2351 100644 --- a/modules/ticket/front/sale/index.js +++ b/modules/ticket/front/sale/index.js @@ -386,7 +386,7 @@ class Controller extends Section { * Updates the sale quantity for existing instance */ changeQuantity(sale) { - if (!sale.itemFk || !sale.quantity) return; + if (!sale.itemFk || sale.quantity == null) return; if (!sale.id) return this.addSale(sale); -- 2.40.1