How to get Default Price List in Script Report?

9 visualizzazioni
Passa al primo messaggio da leggere

Aditya Duggal

da leggere,
20 mar 2014, 03:27:2620/03/14
a erpnext-dev...@googlegroups.com
Hi,

I have a field in a custom report which is a link field with Price List. I would like to automatically fill this field with the Default Price list mentioned in the Selling Settings but I am unable to achieve the same, kindly advice on the correct syntax for the same in JS file of the script report.

wn.query_reports["Price List"] = {
"filters": [
{
"fieldname":"price_list",
"label": "Price List",
"fieldtype": "Link",
"options": "Price List"
"default": wn.defaults.get_user_default("price_list")
}


Another thing I have noticed which seems kind of wrong is that the Price List table is under the stock module whereas price list settings, like setting the default price list is under the selling settings. I guess there is a disconnect and it might confuse the new users a bit and maybe the price list could be moved to the selling module if it does not create a lot of problem for the users.
Rispondi a tutti
Rispondi all'autore
Inoltra
0 nuovi messaggi