Allow no ZERO Payment
Allow no ZERO Payment
diff --git a/erpnext/public/js/payment/payments.js b/erpnext/public/js/payment/payments.js
index 3252373..0d656bc 100644
--- a/erpnext/public/js/payment/payments.js
+++ b/erpnext/public/js/payment/payments.js
@@ -27,14 +27,14 @@
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;
}
- });
+ });
})
},