Edit Bin Location in JIWA7  Topic is solved

Discussions relating to plugin development, and the Jiwa API.

Edit Bin Location in JIWA7

Postby Ernst » Thu May 21, 2020 2:15 pm

Our customer has been using Bin Location Mode- AllowDirecEdit in JIWA6, and now looking at moving to JIWA7, would like to keep this option available, as they type in all kinds of information
relating to the Stock item. They already use comment line for other info.

Looking at the table, the IN_SOH still contains a BinLocationDesc text field and not a pointer to the lookup, so it should be possible to edit this from the Inventory Maintenance, SOH tab.

Has anybody been able to get this going?
User avatar
Ernst
Kohai
Kohai
 
Posts: 219
Joined: Tue Feb 19, 2008 3:43 pm
Topics Solved: 12

Re: Edit Bin Location in JIWA7

Postby Ernst » Thu May 21, 2020 2:21 pm

Could serialno, be made modifiable?
User avatar
Ernst
Kohai
Kohai
 
Posts: 219
Joined: Tue Feb 19, 2008 3:43 pm
Topics Solved: 12

Re: Edit Bin Location in JIWA7

Postby Scott.Pearce » Thu May 21, 2020 3:35 pm

So what they really need are custom fields against stock lines? I'm actually surprised that we don't already have IN_SOH line custom fields - you should log a enhancement request via the helpdesk.
Scott Pearce
Senior Analyst/Programmer
Jiwa Financials
User avatar
Scott.Pearce
Senpai
Senpai
 
Posts: 742
Joined: Tue Feb 12, 2008 11:27 am
Location: New South Wales, Australia
Topics Solved: 221

Re: Edit Bin Location in JIWA7

Postby Ernst » Thu May 21, 2020 3:57 pm

That was my first check... Thx.

I found a plugin to open serialNo. Just wonder if anybody has been able to open bin location yet?
User avatar
Ernst
Kohai
Kohai
 
Posts: 219
Joined: Tue Feb 19, 2008 3:43 pm
Topics Solved: 12

Re: Edit Bin Location in JIWA7  Topic is solved

Postby Ernst » Thu May 21, 2020 5:16 pm

Used the serialNo Plugin.. Updated it to 721, and made it do Bin Location also.

Will this be OK- Scott?
Attachments
Plugin Inventory Maintenance SerialNo Bin Location Update.xml
(34.12 KiB) Downloaded 200 times
User avatar
Ernst
Kohai
Kohai
 
Posts: 219
Joined: Tue Feb 19, 2008 3:43 pm
Topics Solved: 12

Re: Edit Bin Location in JIWA7

Postby Mike.Sheen » Thu May 21, 2020 5:32 pm

You need to check for a null bin location here:

Code: Select all
sohItem.BinLocation.Description = grdSOH.GridText(ColID, Row)


if sohItem.BinLocation is not null, then you can set the description of it. If it is null, then you need to set it to a new BinLocation entity.

Also, you don't need that SQL in the SaveEnding to update IN_SOH with the description - the business logic will do that for you. Serial numbers behaved a little different, so the SQL there was necessary.

Good effort - your grade is a B-

:P
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: Edit Bin Location in JIWA7

Postby Ernst » Thu May 21, 2020 6:30 pm

B- .. Wow thx. You made my day..:)
User avatar
Ernst
Kohai
Kohai
 
Posts: 219
Joined: Tue Feb 19, 2008 3:43 pm
Topics Solved: 12

Re: Edit Bin Location in JIWA7

Postby Ernst » Thu May 21, 2020 6:43 pm

OK commented out the update SQL, and Bin location still updates. You are right...thx

Not sure how to do this..

if sohItem.BinLocation is not null, then you can set the description of it. If it is null, then you need to set it to a new BinLocation entity.
User avatar
Ernst
Kohai
Kohai
 
Posts: 219
Joined: Tue Feb 19, 2008 3:43 pm
Topics Solved: 12

Re: Edit Bin Location in JIWA7

Postby Mike.Sheen » Thu May 21, 2020 7:43 pm

Ernst wrote:OK commented out the update SQL, and Bin location still updates. You are right...thx

Not sure how to do this..

if sohItem.BinLocation is not null, then you can set the description of it. If it is null, then you need to set it to a new BinLocation entity.


Actually, I was wrong on this, after checking.

You can't have a SOH item with a null bin location - it gets created for you when a SOH item is created, so it should never be null.

But the way to set it (if I happened to be wrong about being wrong and it turns out I was initially right) then you'd do this:

Code: Select all
sohItem.BinLocation = sohItem.Manager.EntityFactory.CreateEntity(Of JiwaApplication.Entities.Inventory.BinLocation)()


So your grade is revised to an A-

:)
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: Edit Bin Location in JIWA7

Postby Ernst » Fri May 22, 2020 6:06 am

Double thank you sensei..;) Here is completed plugin.. for anybody who want to make Serial No/ Bin Location modifiable on SOH tab.. in 721. And its in VB.. Double plus.
Attachments
Plugin Inventory Maintenance SerialNo Bin Location Update.xml
(34.33 KiB) Downloaded 170 times
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 5 guests