GRN API, update SlipNo  Topic is solved

Discussions relating to Jiwa 7 plugin development, and the Jiwa 7 API.

GRN API, update SlipNo

Postby perry » Thu Mar 18, 2021 1:55 pm

Hi Guys,

Jiwa 7.2.1

It looks like the PATCH message doesn't update the SlipNo?

(PATCH) http://localhost:8090/GoodsReceivedNote ... 2020-01-01
this only updates the slip date but not the number.

Should I build a custom API to update?
Perry Ma
S. Programmer
Lonicera Pty Ltd
http://www.lonicera.com.au
perry
Frequent Contributor
Frequent Contributor
 
Posts: 173
Joined: Mon Oct 27, 2008 2:26 pm
Topics Solved: 15

Re: GRN API, update SlipNo

Postby Mike.Sheen » Thu Mar 18, 2021 1:59 pm

perry wrote:Hi Guys,

Jiwa 7.2.1

It looks like the PATCH message doesn't update the SlipNo?

(PATCH) http://localhost:8090/GoodsReceivedNote ... 2020-01-01
this only updates the slip date but not the number.

Should I build a custom API to update?


I've looked at the code in the DTO Deserialise of the business logic and it certainly does attempt to set the GRNNo if SlipNo is supplied in the DTO. I'll try to repro your issue and post back here my findings.
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: 2583
Joined: Tue Feb 12, 2008 11:12 am
Location: Perth, Republic of Western Australia
Topics Solved: 807

Re: GRN API, update SlipNo  Topic is solved

Postby Mike.Sheen » Thu Mar 18, 2021 2:07 pm

Right, so this is now logged as DEV-8658.

When we deserialise the DTO we only use the supplied Slip No in the DTO if we are creating - so on update (PATCH) it is ignored, but we should allow you to update the GRN No. as long as it is not activated.
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: 2583
Joined: Tue Feb 12, 2008 11:12 am
Location: Perth, Republic of Western Australia
Topics Solved: 807

Re: GRN API, update SlipNo

Postby perry » Thu Mar 18, 2021 2:15 pm

Thanks,
For now I will just create a custom API.
Perry Ma
S. Programmer
Lonicera Pty Ltd
http://www.lonicera.com.au
perry
Frequent Contributor
Frequent Contributor
 
Posts: 173
Joined: Mon Oct 27, 2008 2:26 pm
Topics Solved: 15


Return to Technical and or Programming

Who is online

Users browsing this forum: No registered users and 5 guests