Hi All,
I tried putting a custom button on pos page. (pos.html)
Now i need to call a function on click of the button ( i guess the file which comes in picture is pos.js)
Now i m super confused where to put that function and how to get other selected parameters like customer or anything…
I tried putting the function inside
“erpnext.pos.PointOfSale = erpnext.taxes_and_totals.extend({
function_name : function(){}
})”
-------- this didnt work.
I went through so many blogs . U guys have suggested =>
frappe.ui.form.on(“Doctype Name”, “field_name”,
function(frm) {}
});
But where shld i put this code… ???
For temporary solution I m using jquery n i m ashamed of myself…
Do u guys have some js documentation… or code structure relation documentation …
as i found directory structure bit different from frappe normal Library Mgt app…
or i m tooooo new to frappe…
Do help me if possible as I m stuck for 2 days…