Purchase Invoice date change not registering  Topic is solved

Discussions relating to plugin development, and the Jiwa API.

Purchase Invoice date change not registering

Postby pricerc » Tue Feb 02, 2021 1:15 pm

It seems that the problem reported for GRN in https://service.jiwa.com.au/browse/DEV-3547 is happening to me in 7.2.1 SR4 in Purchase Invoicing (also tested in a JiwaDemo database).

Is there a workaround?

edit: fix description.
Last edited by pricerc on Wed Feb 03, 2021 5:44 pm, edited 1 time in total.
/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: GRN date change not registering

Postby Mike.Sheen » Tue Feb 02, 2021 6:23 pm

pricerc wrote:It seems that the problem reported in https://service.jiwa.com.au/browse/DEV-3547 is happening to me in 7.2 SR4 (also tested in a JiwaDemo database).

Is there a workaround?


That issue could be worked-around by having the user tab or click to another field other than the Received Date field before pressing the save button.

I've tried to repro the issue on 7.2.1 SR4 as per the steps on DEV-3547, but couldn't make it happen.

Can you confirm which version - 7.2.1 SR4 or 7.2.0 SR4? (pretty sure you must be using 7.2.1 SR4 because 7.2.0 SR4 was not released publicly), and can you confirm the steps to repro on demo data?
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: GRN date change not registering

Postby pricerc » Tue Feb 02, 2021 8:19 pm

Mike.Sheen wrote:
pricerc wrote:It seems that the problem reported in https://service.jiwa.com.au/browse/DEV-3547 is happening to me in 7.2 SR4 (also tested in a JiwaDemo database).

Is there a workaround?


That issue could be worked-around by having the user tab or click to another field other than the Received Date field before pressing the save button.

I've tried to repro the issue on 7.2.1 SR4 as per the steps on DEV-3547, but couldn't make it happen.

Can you confirm which version - 7.2.1 SR4 or 7.2.0 SR4? (pretty sure you must be using 7.2.1 SR4 because 7.2.0 SR4 was not released publicly), and can you confirm the steps to repro on demo data?


Yes 7.2.1 SR4.

I'll send you an MP4.
/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: GRN date change not registering

Postby Mike.Sheen » Wed Feb 03, 2021 12:46 pm

pricerc wrote:I'll send you an MP4.


That MP4 you emailed me shows you using the Purchase Invoicing form, not the GRN form :o
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: GRN date change not registering

Postby pricerc » Wed Feb 03, 2021 5:29 pm

.... I got there from the "Create Purchase Invoice" button on the GRN form.

It was late.

So same problem, different form?
/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: GRN date change not registering

Postby pricerc » Wed Feb 03, 2021 5:31 pm

pricerc wrote:It was late.


yes, 2pm is late. That's my story, and I'm sticking to it.
/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: Purchase Invoice date change not registering

Postby pricerc » Wed Feb 03, 2021 5:53 pm

on a related note, any idea why the purchase invoice screen would go 'dirty' (i.e., save/cancel buttons become enabled) when losing and regaining focus?
/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: GRN date change not registering  Topic is solved

Postby Mike.Sheen » Wed Feb 03, 2021 6:09 pm

pricerc wrote:.... I got there from the "Create Purchase Invoice" button on the GRN form.

It was late.

So same problem, different form?


Yep, same problem different form. The fix for the GRN form made the claim it was a change to the base form - which would imply all maintenance forms would be fixed also - but upon inspection of the change in our version / source control I can see what actually changed was just in the GRN form itself and not the base form.

I can readily repro the issue on the Purchase Invoice form - logged as DEV-8571.
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: Purchase Invoice date change not registering

Postby Mike.Sheen » Wed Feb 03, 2021 6:13 pm

pricerc wrote:on a related note, any idea why the purchase invoice screen would go 'dirty' (i.e., save/cancel buttons become enabled) when losing and regaining focus?


Probably the exact same reason the problem exists with the date reverting on save if your didn't lose focus from the date control first... the incorrect code is handling the Validated event from the DateTime Editor control, and in there it's pushing the new property value into the business logic which in turn sets change flags and raises an event for the form to show it's now been edited so light up the save and cancel tools. It should be handling the ValueChanged event instead - and that's exactly what we did to fix the issue in the GRN form - stop handing Validated and instead ValueChanged.
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: Purchase Invoice date change not registering

Postby pricerc » Wed Feb 03, 2021 6:34 pm

Mike.Sheen wrote:
pricerc wrote:on a related note, any idea why the purchase invoice screen would go 'dirty' (i.e., save/cancel buttons become enabled) when losing and regaining focus?


Probably the exact same reason the problem exists with the date reverting on save if your didn't lose focus from the date control first... the incorrect code is handling the Validated event from the DateTime Editor control, and in there it's pushing the new property value into the business logic which in turn sets change flags and raises an event for the form to show it's now been edited so light up the save and cancel tools. It should be handling the ValueChanged event instead - and that's exactly what we did to fix the issue in the GRN form - stop handing Validated and instead ValueChanged.


aha. Makes sense. Kinda.

Thanks Mike.
/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


Return to Technical and or Programming

Who is online

Users browsing this forum: No registered users and 4 guests