mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-20 18:54:55 +00:00
No ZERO payment
If no payment mode selected does not process ... to avoid having SI with payment pending as POS for sure was paid..
This commit is contained in:
@@ -27,9 +27,14 @@ erpnext.payments = erpnext.stock.StockController.extend({
|
||||
var me = this;
|
||||
|
||||
this.dialog.set_primary_action(__("Submit"), function() {
|
||||
me.dialog.hide()
|
||||
me.submit_invoice()
|
||||
})
|
||||
//Allow no ZERO payment
|
||||
$.each(me.frm.doc.payments, function (index, data) {
|
||||
if (data.amount != 0) {
|
||||
me.dialog.hide();
|
||||
me.submit_invoice();
|
||||
return;
|
||||
}
|
||||
}); })
|
||||
},
|
||||
|
||||
make_keyboard: function(){
|
||||
|
||||
Reference in New Issue
Block a user