[fix] Show payment button in purchase invoice

This commit is contained in:
Nabin Hait 2016-02-25 19:12:29 +05:30
parent a45a6005b8
commit 55f0834e99

View File

@ -24,7 +24,7 @@ erpnext.accounts.PurchaseInvoice = erpnext.buying.BuyingController.extend({
if(!doc.is_return) {
if(doc.docstatus==1) {
if(doc.outstanding_amount < 0) {
if(doc.outstanding_amount > 0) {
this.frm.add_custom_button(__('Payment'), this.make_bank_entry, __("Make"));
cur_frm.page.set_inner_btn_group_as_primary(__("Make"));
}