How to override a function in transaction.js (erpnext/public/js/controllers/transaction.js)

how to override a function in transaction.js (erpnext/public/js/controllers/transaction.js)

function: item_code(doc, cdt, cdn) {}