@@ -233,3 +233,58 @@ function fetch_price_list_rate(frm, cdt, cdn) {
233233 }
234234 } ) ;
235235}
236+
237+ function url_to_form ( doctype , docname , callback ) {
238+ frappe . call ( {
239+ 'method' : 'erpnextswiss.erpnextswiss.common_functions.url_to_form' ,
240+ 'args' : {
241+ 'doctype' : doctype ,
242+ 'docname' : docname
243+ } , // note: async: false is still not working, response would be undefined
244+ 'callback' : callback
245+ } ) ;
246+ }
247+
248+ function link_to_form ( doctype , docname , callback ) {
249+ frappe . call ( {
250+ 'method' : 'erpnextswiss.erpnextswiss.common_functions.link_to_form' ,
251+ 'args' : {
252+ 'doctype' : doctype ,
253+ 'docname' : docname
254+ } , // note: async: false is still not working, response would be undefined
255+ 'callback' : callback
256+ } ) ;
257+ }
258+
259+ function url_to_list ( doctype , callback ) {
260+ frappe . call ( {
261+ 'method' : 'erpnextswiss.erpnextswiss.common_functions.url_to_list' ,
262+ 'args' : {
263+ 'doctype' : doctype
264+ } , // note: async: false is still not working, response would be undefined
265+ 'callback' : callback
266+ } ) ;
267+ }
268+
269+ function url_to_report ( name , callback ) {
270+ frappe . call ( {
271+ 'method' : 'erpnextswiss.erpnextswiss.common_functions.url_to_report' ,
272+ 'args' : {
273+ 'name' : name
274+ } , // note: async: false is still not working, response would be undefined
275+ 'callback' : callback
276+ } ) ;
277+ }
278+
279+ function url_to_report_with_filters ( name , filters , report_type , doctype , callback ) {
280+ frappe . call ( {
281+ 'method' : 'erpnextswiss.erpnextswiss.common_functions.url_to_report_with_filters' ,
282+ 'args' : {
283+ 'name' : name ,
284+ 'filters' : filters ,
285+ 'report_type' : report_type ,
286+ 'doctype' : doctype
287+ } , // note: async: false is still not working, response would be undefined
288+ 'callback' : callback
289+ } ) ;
290+ }
0 commit comments