Lot PUT endpoint

Description

Lot is defined in https://openlmis.atlassian.net/browse/OLMIS-2262#icft=OLMIS-2262 To Do (pay attention to optional and required fields)

Endpoint: PUT / api/lots/{id} - update or replace a Lot by UUID

Acceptance criteria:

  • The endpoint allows updating or replacing existing lots using their UUID

  • The endpoint validates lot fields based on the field description from https://openlmis.atlassian.net/browse/OLMIS-2262#icft=OLMIS-2262 - required fields, the existence of the related trade item

  • The endpoint is secured and accessible only to those with the ORDERABLES_MANAGE permission

Lots are described here:
https://openlmis.atlassian.net/wiki/display/OP/Lot+Management+for+Stock+Service+in+3.1

relates to

QAlity Plus - Test Management

Checklists

Activity

Lucyna Laska 
April 10, 2017 at 8:10 AM

Thanks . Now I can update the lot.

Przemysław Studziński 
April 7, 2017 at 11:40 AM


Right, I fixed.

Lucyna Laska 
April 7, 2017 at 8:17 AM
(edited)

I have a question for you . I created a new lot with productCode: "abc123". I updated my lot and changed the productCode to "abc1234". Then I changed my productCode again. I returned to the previously code "abc123". Using this productCode (abc123) I could not update my lot, I got the message: "Lot code must be unique". Why it happened? I think, I should be able to do that or maybe I missed something?

Done
Pinned fields
Click on the next to a field label to start pinning.

Details

Assignee

Reporter

Story Points

Original estimate

Time tracking

1d 1h 15m logged

Components

Sprint

Fix versions

Priority

Time Assistant

Created April 3, 2017 at 3:35 PM
Updated April 12, 2017 at 9:14 AM
Resolved April 10, 2017 at 8:11 AM