Allow no ZERO Payment

Allow no ZERO Payment
This commit is contained in:
Cesar 2018-01-29 15:39:52 +01:00
parent d6a61ad0c3
commit d8b1927e8d

View File

@ -27,14 +27,14 @@ erpnext.payments = erpnext.stock.StockController.extend({
var me = this;
this.dialog.set_primary_action(__("Submit"), function() {
//Allow no ZERO payment
// Allow no ZERO payment
$.each(me.frm.doc.payments, function (index, data) {
if (data.amount != 0) {
me.dialog.hide();
me.submit_invoice();
return;
}
});
});
})
},