2499 - Allow zero quantity
gitea/salix/pipeline/head This commit looks good
Details
gitea/salix/pipeline/head This commit looks good
Details
This commit is contained in:
parent
61872dec43
commit
3f8a675785
|
@ -1,11 +1,9 @@
|
|||
<mg-ajax path="Entries/{{patch.params.id}}" options="vnPatch"></mg-ajax>
|
||||
<vn-watcher
|
||||
vn-id="watcher"
|
||||
url="Entries"
|
||||
id-field="id"
|
||||
data="$ctrl.entry"
|
||||
params="$ctrl.entry"
|
||||
save="patch"
|
||||
form="form">
|
||||
form="form"
|
||||
save="patch">
|
||||
</vn-watcher>
|
||||
<form name="form" ng-submit="watcher.submit()" class="vn-w-md">
|
||||
<vn-card class="vn-pa-lg">
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue