mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-26 08:24:47 +00:00
[fix] Show payment button in purchase invoice
This commit is contained in:
@@ -24,7 +24,7 @@ erpnext.accounts.PurchaseInvoice = erpnext.buying.BuyingController.extend({
|
|||||||
|
|
||||||
if(!doc.is_return) {
|
if(!doc.is_return) {
|
||||||
if(doc.docstatus==1) {
|
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"));
|
this.frm.add_custom_button(__('Payment'), this.make_bank_entry, __("Make"));
|
||||||
cur_frm.page.set_inner_btn_group_as_primary(__("Make"));
|
cur_frm.page.set_inner_btn_group_as_primary(__("Make"));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user