diff --git a/erpnext/accounts/doctype/pos_invoice/pos_invoice.js b/erpnext/accounts/doctype/pos_invoice/pos_invoice.js index d39326ff521..33f04cbaa63 100644 --- a/erpnext/accounts/doctype/pos_invoice/pos_invoice.js +++ b/erpnext/accounts/doctype/pos_invoice/pos_invoice.js @@ -110,13 +110,8 @@ erpnext.selling.POSInvoiceController = erpnext.selling.SellingController.extend( this.frm.refresh_field("base_paid_amount"); }, -<<<<<<< HEAD - write_off_outstanding_amount_automatically: function() { - if(cint(this.frm.doc.write_off_outstanding_amount_automatically)) { -======= write_off_outstanding_amount_automatically() { if (cint(this.frm.doc.write_off_outstanding_amount_automatically)) { ->>>>>>> 332ac105b5 (refactor: use `read_only_depends_on` instead of code (#27008)) frappe.model.round_floats_in(this.frm.doc, ["grand_total", "paid_amount"]); // this will make outstanding amount 0 this.frm.set_value("write_off_amount", diff --git a/erpnext/accounts/doctype/sales_invoice/sales_invoice.js b/erpnext/accounts/doctype/sales_invoice/sales_invoice.js index 7527d02f4ca..a98a83a0476 100644 --- a/erpnext/accounts/doctype/sales_invoice/sales_invoice.js +++ b/erpnext/accounts/doctype/sales_invoice/sales_invoice.js @@ -323,13 +323,8 @@ erpnext.accounts.SalesInvoiceController = erpnext.selling.SellingController.exte this.frm.refresh_fields(); }, -<<<<<<< HEAD - write_off_outstanding_amount_automatically: function() { - if(cint(this.frm.doc.write_off_outstanding_amount_automatically)) { -======= write_off_outstanding_amount_automatically() { if (cint(this.frm.doc.write_off_outstanding_amount_automatically)) { ->>>>>>> 332ac105b5 (refactor: use `read_only_depends_on` instead of code (#27008)) frappe.model.round_floats_in(this.frm.doc, ["grand_total", "paid_amount"]); // this will make outstanding amount 0 this.frm.set_value("write_off_amount",