Contacts ProspectNo Change  Topic is solved

Discussions relating to plugin development, and the Jiwa API.

Contacts ProspectNo Change

Postby Ernst » Tue Sep 26, 2023 4:03 pm

My Customer is really keen to be able to change the ProspectNo in Contacts. (currently greyed out)

Ive made a plugin which adds a button, to contact maintenance to change accountno.

But is there any risk to rest of JIWA if we do this?

Just wondering why JIWA made it non modifiable in first place?

Can Attach plugin is this is going to be useful to other..:)..I save the old accountno in Notes, so we can refer to what it was..
User avatar
Ernst
Kohai
Kohai
 
Posts: 219
Joined: Tue Feb 19, 2008 3:43 pm
Topics Solved: 12

Re: Contacts ProspectNo Change

Postby Mike.Sheen » Wed Sep 27, 2023 5:37 pm

Ernst wrote:Just wondering why JIWA made it non modifiable in first place?


We don't let you modify the identifier type fields anywhere once the record is saved. Debtor Account No, Sales Order No, Creditor Account No - they all behave the same and do not allow edit of that field once created.

For fraud prevention reasons you shouldn't be able to modify a Sales Order (Invoice) No.

An inventory items Part No. is also not supposed to be changed, as existing documents - including ones like sales orders, you've sent to the customer and changing the inventory Part No. invalidates that document. So we don't let you do that.

Another underlying reason is because it's often used by people and external systems as a pseudo primary key - an external CRM system might use the ProspectNo from contacts as the primary key instead of the ProspectID (which is not visible to the user) for associating a record in the CRM with a prospect in Jiwa.

It's not recommended to do that, but people do.

Ernst wrote:But is there any risk to rest of JIWA if we do this?


Maybe. Only way for me to know is go through the code, to look for references to the ProspectNo field / column and try to work it if there is an obvious issue - and even then I'd want to actually do a bunch of tests to see for sure.

That's more effort I personally am willing to do... so the official recommendation is to not change fields the software is preventing you from changing.
Mike Sheen
Chief Software Engineer
Jiwa Financials

If I do answer your question to your satisfaction, please mark it as the post solving the topic so others with the same issue can readily identify the solution
User avatar
Mike.Sheen
Overflow Error
Overflow Error
 
Posts: 2444
Joined: Tue Feb 12, 2008 11:12 am
Location: Perth, Republic of Western Australia
Topics Solved: 756

Re: Contacts ProspectNo Change

Postby SBarnes » Thu Sep 28, 2023 8:48 am

Ernst wrote:My Customer is really keen to be able to change the ProspectNo in Contacts. (currently greyed out)


What is the objective in being able to do this, as I agree with everything Mike has said but if you explain what is trying to be achieved there may be another way of coming at this?
Regards
Stuart Barnes
SBarnes
Shihan
Shihan
 
Posts: 1619
Joined: Fri Aug 15, 2008 3:27 pm
Topics Solved: 175

Re: Contacts ProspectNo Change

Postby Ernst » Thu Oct 12, 2023 2:08 pm

Hi Stuart,

The customer supplies building material, SO even though the sale may be to a Hardware store (Bunnings), he keeps track of the builder, plasterer etc by linking a contact to the sales order on the custom field.

So in fixing up incorrectly spelled name in the contact account no, or sometimes just a number, he wanted to update to make accountno, same as name.

He has been doing it now with the button we provided, and seems to be going well. Cant see anywhere else in JIWA where the Contact Accountno is actually used.
User avatar
Ernst
Kohai
Kohai
 
Posts: 219
Joined: Tue Feb 19, 2008 3:43 pm
Topics Solved: 12

Re: Contacts ProspectNo Change

Postby Mike.Sheen » Thu Oct 12, 2023 2:16 pm

Ernst wrote:
So in fixing up incorrectly spelled name in the contact account no


There is the real problem. Using the Account No. field of the Contact Maintenance as a name field is not the intended use for this field. You have a name field, put the name in there, not the Account No. field.

These types of fields - such as the Account No. field of the Contact Maintenance - are supposed to be human-readable unique identifiers.
Mike Sheen
Chief Software Engineer
Jiwa Financials

If I do answer your question to your satisfaction, please mark it as the post solving the topic so others with the same issue can readily identify the solution
User avatar
Mike.Sheen
Overflow Error
Overflow Error
 
Posts: 2444
Joined: Tue Feb 12, 2008 11:12 am
Location: Perth, Republic of Western Australia
Topics Solved: 756

Re: Contacts ProspectNo Change  Topic is solved

Postby SBarnes » Thu Oct 12, 2023 3:34 pm

Mike.Sheen wrote:
Ernst wrote:
So in fixing up incorrectly spelled name in the contact account no


There is the real problem. Using the Account No. field of the Contact Maintenance as a name field is not the intended use for this field. You have a name field, put the name in there, not the Account No. field.

These types of fields - such as the Account No. field of the Contact Maintenance - are supposed to be human-readable unique identifiers.



You would be better off having the custom field as a lookup field and using the underlying ids and say showing the contact name which you could then change if I am reading what you are trying to create correctly.
Regards
Stuart Barnes
SBarnes
Shihan
Shihan
 
Posts: 1619
Joined: Fri Aug 15, 2008 3:27 pm
Topics Solved: 175

Re: Contacts ProspectNo Change

Postby pricerc » Wed Oct 18, 2023 4:08 pm

some folk really struggle with the concept of a "human-readable unique identifier"...

Had a real hard time with one customer who wanted to use their suppliers' part number as a Jiwa part number... except for the parts that didn't have a supplier part number.... and the parts with multiple suppliers...

We just said 'no' and made it an auto-number and disabled the field.
/Ryan

ERP Consultant,
Advanced ERP Limited, NZ
https://aerp.co.nz
User avatar
pricerc
Senpai
Senpai
 
Posts: 504
Joined: Mon Aug 10, 2009 12:22 pm
Location: Auckland, NZ
Topics Solved: 20

Re: Contacts ProspectNo Change

Postby Ernst » Wed Oct 25, 2023 2:50 pm

SBarnes wrote:
Mike.Sheen wrote:
Ernst wrote:
So in fixing up incorrectly spelled name in the contact account no


There is the real problem. Using the Account No. field of the Contact Maintenance as a name field is not the intended use for this field. You have a name field, put the name in there, not the Account No. field.

These types of fields - such as the Account No. field of the Contact Maintenance - are supposed to be human-readable unique identifiers.



You would be better off having the custom field as a lookup field and using the underlying ids and say showing the contact name which you could then change if I am reading what you are trying to create correctly.


Yes that's a good idea, and is what we did stuart thx. We load the ID into the custom field on the sales order and display the name. But of course going into contacts, The Account No. and Name were still different.
The change button is still working well
User avatar
Ernst
Kohai
Kohai
 
Posts: 219
Joined: Tue Feb 19, 2008 3:43 pm
Topics Solved: 12


Return to Technical and or Programming

Who is online

Users browsing this forum: No registered users and 32 guests