How to override client script?

I want to override the journal_entry.js before save and disable this validation

//
before_save: function (frm) {
if (frm.doc.docstatus == 0 && !frm.doc.is_system_generated) {
let payment_entry_references = frm.doc.accounts.filter(
(elem) => elem.reference_type == “Payment Entry”
);
if (payment_entry_references.length > 0) {
let rows = payment_entry_references.map((x) => “#” + x.idx);
frappe.throw(
__(“Rows: {0} have ‘Payment Entry’ as reference_type. This should not be set manually.”, [
frappe.utils.comma_and(rows),
])
);
}
}
},

//

Hello @NCP , is this possible?

just write in top your journal entry public js.
frappe.ui.form.off(‘Journal Entry’,‘before_save’)

Thank you @Jeel