Anyone know how to enable set manually the payment entry reference type and name

When I manually set the reference type and reference name in Journal Entry with the entry type Bank Entry. I have receive this error that is not allowed to set manually.

here is the error message

and I checked the journal_entry.js
they didn’t allowed to set the reference_type == Payment Entry if not system generated

//
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),
])
);
}
}
},