Anyone know how to override the Purchase Receipt JS?

In purchase_receipt.js I want to override the Get Items From Purchase Order, and wanted to add custom_is_advance: 0 in get_query_filters.

here is the script from core files

if (this.frm.doc.docstatus == 0) {
this.frm.add_custom_button(
__(“Purchase Order”),
function () {
if (!me.frm.doc.supplier) {
frappe.throw({
title: __(“Mandatory”),
message: __(“Please Select a Supplier”),
});
}
erpnext.utils.map_current_doc({
method: “erpnext.buying.doctype.purchase_order.purchase_order.make_purchase_receipt”,
source_doctype: “Purchase Order”,
target: me.frm,
setters: {
supplier: me.frm.doc.supplier,
schedule_date: undefined,
},
get_query_filters: {
docstatus: 1,
status: [“not in”, [“Closed”, “On Hold”]],
per_received: [“<”, 99.99],
company: me.frm.doc.company,
custom_is_advance: 0
},
});
},
__(“Get Items From”)
);
}

here is the link erpnext/erpnext/stock/doctype/purchase_receipt/purchase_receipt.js at develop · frappe/erpnext

from line 244 to 272
Thank you

This problem solve. I just rewrite the code in my override purchase_receipt file and customize the code