Advertisement
SherinKR

client_script.js

Sep 23rd, 2021
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. frappe.call({
  2. "method":"frappe.client.get_list",
  3. "args":{
  4. "doctype":"Purchase Invoice",
  5. "filters": { "docstatus": 1}
  6. },
  7. callback: function(r){
  8. if(r && r.message && r.message.length > 0){
  9. for(var i=0; i< r.message.length; i++){
  10. console.log(r.message[i].name) //It will be the name of purchase invoice
  11. }
  12. }
  13. }
  14. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement