Coversion_rate field on Purchase Order form

9 views
Skip to first unread message

MP

unread,
Jun 24, 2013, 9:09:46 AM6/24/13
to erpnext-dev...@googlegroups.com
Hi There,

I am just trying to figure out why conversion_rate field is hidden by default on Purchase Order form. According to DocType definition for Purchase Order, it is not supposed to be hidden by default. So just wondering if anyone can explain me why the field is hidden on the form when it is loaded for first time. This field seems to be visible when I chose a supplier whose currency is different than the default one setup in the system. Thanks in advance.

Kind regards,
Mayur Patel

Anand Doshi

unread,
Jun 24, 2013, 9:11:07 AM6/24/13
to erpnext-dev...@googlegroups.com
Hi Mayur,

It is hidden because if the Supplier's currency and Company's currency is same, the conversion_rate value will be set to 1 and there is no point in asking the user to edit it.

Thanks,
Anand.

--
You received this message because you are subscribed to the Google Groups "ERPNext Developer Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer...@googlegroups.com.
To post to this group, send email to erpnext-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/0745b565-5b17-47cc-b1d1-7ae79f219a60%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

MP

unread,
Jun 24, 2013, 11:04:14 AM6/24/13
to erpnext-dev...@googlegroups.com
Thanks Anand.

It makes sense. Do you know where this logic is set? This is just so that I know where it is happening and get a better understanding of the code.

On Monday, June 24, 2013 2:11:07 PM UTC+1, Anand Doshi wrote:
Hi Mayur,

It is hidden because if the Supplier's currency and Company's currency is same, the conversion_rate value will be set to 1 and there is no point in asking the user to edit it.

Thanks,
Anand.
On 24-Jun-2013, at 6:39 PM, MP <mayur....@gmail.com> wrote:

Hi There,

I am just trying to figure out why conversion_rate field is hidden by default on Purchase Order form. According to DocType definition for Purchase Order, it is not supposed to be hidden by default. So just wondering if anyone can explain me why the field is hidden on the form when it is loaded for first time. This field seems to be visible when I chose a supplier whose currency is different than the default one setup in the system. Thanks in advance.

Kind regards,
Mayur Patel

--
You received this message because you are subscribed to the Google Groups "ERPNext Developer Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer-forum+unsub...@googlegroups.com.

Anand Doshi

unread,
Jun 24, 2013, 12:27:20 PM6/24/13
to erpnext-dev...@googlegroups.com
See set_dynamic_labels method of purchase_common.js

Sent from my phone
To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer...@googlegroups.com.

To post to this group, send email to erpnext-dev...@googlegroups.com.

MP

unread,
Jun 25, 2013, 3:10:18 AM6/25/13
to erpnext-dev...@googlegroups.com
Thanks Anand. Much appreciated.

Kind regards,
Mayur Patel
Reply all
Reply to author
Forward
0 new messages