I have made a custom doctype for Scale Code which has two columns code and description.
I want to fetch the list in point of sale (POS.js), used frappe.getlist as below:
console.log(frappe.get_list(“Scale Codes”, {document_type: “Document”}));
what is the correct way?