Credit Goods into Stock box editable  Topic is solved

Discussions relating to plugin development, and the Jiwa API.

Credit Goods into Stock box editable

Postby Microsharp » Wed Mar 22, 2023 3:58 pm

Hi Mike,

Can you please help us to make the credit goods into stock checkbox editable in Credit Note?

I have some sample of lock/unlock column on Lines only

Client is unsure whether stock will be returned until processing the credit note.
Microsharp
Occasional Contributor
Occasional Contributor
 
Posts: 19
Joined: Wed Apr 29, 2015 4:51 pm
Topics Solved: 1

Re: Credit Goods into Stock box editable

Postby Scott.Pearce » Wed Mar 22, 2023 5:21 pm

That field is locked after save because credit notes place items into stock upon save, *not* at processing time.

What if the user decided to untick that field after save, and the stock had been taken by something else?
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: Credit Goods into Stock box editable

Postby Microsharp » Thu Mar 23, 2023 9:00 am

Hi Scott,

In that case will the system raise an error that there is no stock to untick?
Microsharp
Occasional Contributor
Occasional Contributor
 
Posts: 19
Joined: Wed Apr 29, 2015 4:51 pm
Topics Solved: 1

Re: Credit Goods into Stock box editable

Postby Microsharp » Thu Mar 23, 2023 9:03 am

The issue with client is that they are not sure whether stock is returned. I have created plugin to make the Credit Goods into Stock box unticked when creating new Credit but then it is locked at save so when client know that stock is returned there is no chance for them to change.

Can we somehow unlock the box please?
Microsharp
Occasional Contributor
Occasional Contributor
 
Posts: 19
Joined: Wed Apr 29, 2015 4:51 pm
Topics Solved: 1

Re: Credit Goods into Stock box editable  Topic is solved

Postby Scott.Pearce » Thu Mar 23, 2023 3:28 pm

I had a look and when unlocking that checkbox, stock is not manipulated whether ticked or unticked. The fact is the business logic ONLY inserts stock if InsertFlag = true (ie. this is new credit note) and the checkbox is ticked during save. The behaviour is too fundamental to the system to change.

How about if instead the business process is changed to go like this:

Create credit note, default credit-into-stock is unticked.
Save.
*If* it is later decided that they DO want to credit into stock:
Go to credit note, copy it.
On the copy tick credit-into-stock
Save
On original credit note, delete all lines
Save

You could even automate the above using a plugin.
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: Credit Goods into Stock box editable

Postby DannyC » Thu Mar 23, 2023 4:06 pm

Jiwa has been like that for years and years.

Some clients to work around it, have the credits going to a specific logical warehouse just for credits. That way, if it's ticked & stock is returned to SOH upon save it can't be used for other transactions.
User avatar
DannyC
Senpai
Senpai
 
Posts: 636
Joined: Fri Mar 22, 2013 12:23 pm
Topics Solved: 30

Re: Credit Goods into Stock box editable

Postby Microsharp » Thu Mar 23, 2023 4:10 pm

Hi Scott,

Can you please advise further about the automation of the Copy and Delete the lines of the original credit note? I will have to explain to the client about that. I already did the create new untick box as default.

Does that mean there will be a button to click when goods are credited to stock?
Microsharp
Occasional Contributor
Occasional Contributor
 
Posts: 19
Joined: Wed Apr 29, 2015 4:51 pm
Topics Solved: 1

Re: Credit Goods into Stock box editable

Postby Microsharp » Thu Mar 23, 2023 4:51 pm

DannyC wrote:Jiwa has been like that for years and years.

Some clients to work around it, have the credits going to a specific logical warehouse just for credits. That way, if it's ticked & stock is returned to SOH upon save it can't be used for other transactions.


Hi Danny,

Do they use plugin for that, because they create credit note based on existing SO and it is in the same warehouse of the original SO
Microsharp
Occasional Contributor
Occasional Contributor
 
Posts: 19
Joined: Wed Apr 29, 2015 4:51 pm
Topics Solved: 1

Re: Credit Goods into Stock box editable

Postby Mike.Sheen » Fri Mar 24, 2023 8:58 am

DannyC wrote:Jiwa has been like that for years and years.

Some clients to work around it


I can't find any request to change the behaviour in our ticket system - perhaps we should log an improvement request.
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: Credit Goods into Stock box editable

Postby Scott.Pearce » Fri Mar 24, 2023 9:48 am

Microsharp wrote:Can you please advise further about the automation


Here's a plugin that does the automation:

Plugin Credit Goods Into Stock.xml
(29.67 KiB) Downloaded 492 times


It could do with some polish - namely locking or unlocking the button depending on whether clicking it is appropriate, for example clicking it for a normal sales order makes no sense (and the button click code wont fire anyway).
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

Next

Return to Technical and or Programming

Who is online

Users browsing this forum: No registered users and 33 guests