There's a new requirement that we support the ability for a poLine to represent a single title, that's part of a package represented by another POL. So something like:
1000-1 - package
1000-2 - title that's part of the 1000-1 package
1000-3 - title that's part of the 1000-1 package
MODORDSTOR-136 adds the fields needed to do this to the poLine and title schemas. This story follows that by updating the related business logic.
upon title creation:
Also within scope of this story: Upon title creation copy over information from POL -> Title for new fields added in
MODORDSTOR-136 (poLineNumber, receivingNote, expectedReceiptDate)
Introduce new error code "titleExist" that indicate the title for regular poLine already exist.
- Business logic is updated as described above
- unit tests are updated
- API tests are updated