Page 1 of 1

GRN API, update SlipNo

PostPosted: Thu Mar 18, 2021 1:55 pm
by perry
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?

Re: GRN API, update SlipNo

PostPosted: Thu Mar 18, 2021 1:59 pm
by Mike.Sheen
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.

Re: GRN API, update SlipNo  Topic is solved

PostPosted: Thu Mar 18, 2021 2:07 pm
by Mike.Sheen
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.

Re: GRN API, update SlipNo

PostPosted: Thu Mar 18, 2021 2:15 pm
by perry
Thanks,
For now I will just create a custom API.