What's up with all the different name fields for Customer?



I'm loading data using the https://github.com/webnotes/wn-client library.

When creating a customer via the API, my API request fields are not corresponding with the fields being returned by the API.

For example, 
I set 'name' to "ABC123" on my wn.inesert call, I get a response with a field called 'localname' that contains my "ABC123" value.
The same happens with customer_name, this gets returned as a filed called 'name'.

Then in the web app interface, there is also 'Full Name' and 'ID'.

This is very confusing. :(





Note:

 

If you are posting an issue,

  1. We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
  2. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
  3. For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.

     

    End of Note



    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+un...@googlegroups.com.

    For more options, visit https://groups.google.com/groups/opt_out.
Customer name can be set by the "customer_name" property or by the series.

Leave name as blank and set "customer_name" property while inserting via API.

Sorry not very intuitive - we should allow if explicit name is set.



On Sunday, December 29, 2013 6:29:14 AM UTC+5:30, Jev Björsell wrote:


I'm loading data using the https://github.com/webnotes/wn-client library.

When creating a customer via the API, my API request fields are not corresponding with the fields being returned by the API.

For example, 
I set 'name' to "ABC123" on my wn.inesert call, I get a response with a field called 'localname' that contains my "ABC123" value.
The same happens with customer_name, this gets returned as a filed called 'name'.

Then in the web app interface, there is also 'Full Name' and 'ID'.

This is very confusing. :(





Note:

 

If you are posting an issue,

  1. We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
  2. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
  3. For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.

     

    End of Note



    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+un...@googlegroups.com.

    For more options, visit https://groups.google.com/groups/opt_out.
Thanks 

For Contact, as far as I can see, it is not possible to set the name filed for Contact via the API, it is always generated from Firstname, Lastname and Customer Name. This has a side affect of not being able to but single quotes in names, for example O'Brien.

Am I misunderstanding how the name field for Contact can be set via the API?

-Jev







On Monday, December 30, 2013 2:51:21 AM UTC-8, rushabh wrote:
Customer name can be set by the "customer_name" property or by the series.

Leave name as blank and set "customer_name" property while inserting via API.

Sorry not very intuitive - we should allow if explicit name is set.



On Sunday, December 29, 2013 6:29:14 AM UTC+5:30, Jev Björsell wrote:


I'm loading data using the https://github.com/webnotes/wn-client library.

When creating a customer via the API, my API request fields are not corresponding with the fields being returned by the API.

For example, 
I set 'name' to "ABC123" on my wn.inesert call, I get a response with a field called 'localname' that contains my "ABC123" value.
The same happens with customer_name, this gets returned as a filed called 'name'.

Then in the web app interface, there is also 'Full Name' and 'ID'.

This is very confusing. :(





Note:

 

If you are posting an issue,

  1. We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
  2. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
  3. For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.

     

    End of Note



    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+un...@googlegroups.com.

    For more options, visit https://groups.google.com/groups/opt_out.
Jev,

You are right about Contact - the name is generated from First Name, Last Name.

We have fixed the string replacement in most places, maybe we can allow quotes in name now, but someone will have to test it first!

best,
Rushabh

On Tuesday, December 31, 2013 5:31:57 AM UTC+5:30, Jev Björsell wrote:
Thanks 

For Contact, as far as I can see, it is not possible to set the name filed for Contact via the API, it is always generated from Firstname, Lastname and Customer Name. This has a side affect of not being able to but single quotes in names, for example O'Brien.

Am I misunderstanding how the name field for Contact can be set via the API?

-Jev







On Monday, December 30, 2013 2:51:21 AM UTC-8, rushabh wrote:
Customer name can be set by the "customer_name" property or by the series.

Leave name as blank and set "customer_name" property while inserting via API.

Sorry not very intuitive - we should allow if explicit name is set.



On Sunday, December 29, 2013 6:29:14 AM UTC+5:30, Jev Björsell wrote:


I'm loading data using the https://github.com/webnotes/wn-client library.

When creating a customer via the API, my API request fields are not corresponding with the fields being returned by the API.

For example, 
I set 'name' to "ABC123" on my wn.inesert call, I get a response with a field called 'localname' that contains my "ABC123" value.
The same happens with customer_name, this gets returned as a filed called 'name'.

Then in the web app interface, there is also 'Full Name' and 'ID'.

This is very confusing. :(





Note:

 

If you are posting an issue,

  1. We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
  2. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
  3. For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.

     

    End of Note



    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+un...@googlegroups.com.

    For more options, visit https://groups.google.com/groups/opt_out.
I guess I should update my installation and test this. Will let you know.


On Tue, Dec 31, 2013 at 4:55 PM, rushabh <rm...@gmail.com> wrote:
Jev,

You are right about Contact - the name is generated from First Name, Last Name.

We have fixed the string replacement in most places, maybe we can allow quotes in name now, but someone will have to test it first!

best,
Rushabh

On Tuesday, December 31, 2013 5:31:57 AM UTC+5:30, Jev Björsell wrote:
Thanks

For Contact, as far as I can see, it is not possible to set the name filed for Contact via the API, it is always generated from Firstname, Lastname and Customer Name. This has a side affect of not being able to but single quotes in names, for example O'Brien.

Am I misunderstanding how the name field for Contact can be set via the API?

-Jev







On Monday, December 30, 2013 2:51:21 AM UTC-8, rushabh wrote:
Customer name can be set by the "customer_name" property or by the series.

Leave name as blank and set "customer_name" property while inserting via API.

Sorry not very intuitive - we should allow if explicit name is set.



On Sunday, December 29, 2013 6:29:14 AM UTC+5:30, Jev Björsell wrote:


I'm loading data using the https://github.com/webnotes/wn-client library.

When creating a customer via the API, my API request fields are not corresponding with the fields being returned by the API.

For example,
I set 'name' to "ABC123" on my wn.inesert call, I get a response with a field called 'localname' that contains my "ABC123" value.
The same happens with customer_name, this gets returned as a filed called 'name'.

Then in the web app interface, there is also 'Full Name' and 'ID'.

This is very confusing. :(





Note:



If you are posting an issue,

  1. We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
  2. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
  3. For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.



    End of Note



    You received this message because you are subscribed to a topic in the Google Groups "ERPNext Developer Forum" group.

    To unsubscribe from this topic, visit https://groups.google.com/d/topic/erpnext-developer-forum/xTzUkIqWsUI/unsubscribe.

To unsubscribe from this group and all its topics, send an email to erpnext-developer-forum+un…@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.




Note:

 

If you are posting an issue,

  1. We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
  2. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
  3. For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.

     

    End of Note



    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+un...@googlegroups.com.

    For more options, visit https://groups.google.com/groups/opt_out.