Stock Entry Price Computation in custom script

Hello! Can anyone help me with my current code? i was able to pull price list in stock entry and would now like to add computation in the stock entry detail. Similar to Basic Rate * Quantity = Amount, then Total Value for all items function. The results would be for printing purposes only. Thanks! Here is my current code in Stock Entry DocType.

frappe.ui.form.on("Stock Entry", "refresh", function(frm) {
    cur_frm.set_query("selling_price_list", function() {
        return {
            filters: {
                "Selling": "1"

frappe.ui.form.on("Stock Entry Detail", {
	item_code: function(frm, cdt, cdn) {
		child = locals[cdt][cdn];{
			method: "frappe.client.get_value",
			args: {
				doctype: "Item Price",
				fieldname: "price_list_rate",
				filters: { item_code: child.item_code, price_list : frm.doc.selling_price_list},
			callback: function(r, rt) {
				if(r.message) {
					frappe.model.set_value(cdt, cdn, 'price_list_rate', r.message.price_list_rate)