From 71f3883613b5327ce3fabffe9734b8efeedb5ffc Mon Sep 17 00:00:00 2001 From: "Nihantra C. Patel" <141945075+Nihantra-Patel@users.noreply.github.com> Date: Wed, 10 Apr 2024 14:43:38 +0530 Subject: [PATCH] fix: creation of return/debit note from sales invoice prettier --- .../accounts/doctype/purchase_invoice/purchase_invoice.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/erpnext/accounts/doctype/purchase_invoice/purchase_invoice.js b/erpnext/accounts/doctype/purchase_invoice/purchase_invoice.js index 88350899a99..f423297277c 100644 --- a/erpnext/accounts/doctype/purchase_invoice/purchase_invoice.js +++ b/erpnext/accounts/doctype/purchase_invoice/purchase_invoice.js @@ -136,7 +136,11 @@ erpnext.accounts.PurchaseInvoice = class PurchaseInvoice extends erpnext.buying. if (!doc.is_return && doc.docstatus == 1) { 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") + ); } }