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:
parent
0195528798
commit
3264c13545
@ -27,9 +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() {
|
||||||
me.dialog.hide()
|
//Allow no ZERO payment
|
||||||
me.submit_invoice()
|
$.each(me.frm.doc.payments, function (index, data) {
|
||||||
})
|
if (data.amount != 0) {
|
||||||
|
me.dialog.hide();
|
||||||
|
me.submit_invoice();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}); })
|
||||||
},
|
},
|
||||||
|
|
||||||
make_keyboard: function(){
|
make_keyboard: function(){
|
||||||
|
Loading…
Reference in New Issue
Block a user