Cannot create new lot

Description

I can not create a new lot, with lot code for example 'AA' when exists another code in the database that contains this specific code, eg 'BFAA'. In response, I receive information that the lot code must be unique.

Reproduction steps:
1. Go to https://test.openlmis.org/referencedata/docs/
2. Try to create new lot:
{
"lotCode": "LC2",
"active": true,
"tradeItemId": "929d5ded-ac04-4eca-a64a-e82bdb179098",
"expirationDate": "2020-08-20",
"manufactureDate": "2017-08-20"
}

Environment

None

Assignee

Paulina Buzderewicz

Reporter

Aleksandra Sołtys

Labels

Story Points

2

Time tracking

20h

Epic Link

Components

Sprint

None

Fix versions

Priority

Blocker
Configure