Allow no ZERO Payment
Allow no ZERO Payment
This commit is contained in:
parent
d6a61ad0c3
commit
d8b1927e8d
@ -27,14 +27,14 @@ erpnext.payments = erpnext.stock.StockController.extend({
|
|||||||
var me = this;
|
var me = this;
|
||||||
|
|
||||||
this.dialog.set_primary_action(__("Submit"), function() {
|
this.dialog.set_primary_action(__("Submit"), function() {
|
||||||
//Allow no ZERO payment
|
// Allow no ZERO payment
|
||||||
$.each(me.frm.doc.payments, function (index, data) {
|
$.each(me.frm.doc.payments, function (index, data) {
|
||||||
if (data.amount != 0) {
|
if (data.amount != 0) {
|
||||||
me.dialog.hide();
|
me.dialog.hide();
|
||||||
me.submit_invoice();
|
me.submit_invoice();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user