mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-27 17:04:47 +00:00
fix: creation of return/debit note from sales invoice prettier
This commit is contained in:
committed by
GitHub
parent
dd10087db6
commit
71f3883613
@@ -136,7 +136,11 @@ erpnext.accounts.PurchaseInvoice = class PurchaseInvoice extends erpnext.buying.
|
|||||||
|
|
||||||
if (!doc.is_return && doc.docstatus == 1) {
|
if (!doc.is_return && doc.docstatus == 1) {
|
||||||
if (doc.outstanding_amount >= 0 || Math.abs(flt(doc.outstanding_amount)) < flt(doc.grand_total)) {
|
if (doc.outstanding_amount >= 0 || Math.abs(flt(doc.outstanding_amount)) < flt(doc.grand_total)) {
|
||||||
this.frm.add_custom_button(__("Return / Debit Note"), this.make_debit_note.bind(this), __("Create"));
|
this.frm.add_custom_button(
|
||||||
|
__("Return / Debit Note"),
|
||||||
|
this.make_debit_note.bind(this),
|
||||||
|
__("Create")
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user