Skip to content

79-differentation-between-national-and-international-transports

Related issues

Acceptance criteria

  • Implemented code changes don't diverge from the related issue.
  • Documentation reflects the status quo after merge.
  • Version number is incremented according to SemVer. (Snapshot versions are not merged/released.)
  • Only released versions of dependencies are used (i.e. no snapshot versions).
  • Pipeline still works.
  • GitLab issue is up-to-date.

If necessary, the following sections have been updated:

  • Swagger
  • Readme.md
  • Documentation

Proposed squash commit message

Added a property to ecmrListData and logic to display that a transport is national or international.

Backend:
* Added the "nationalInternationalTransport" property to the ecmrListData.
* Added a Method to the EcmrFieldService, which compares two values. The sender and consignee country. 
* This returns "National", if the countries given are the same. 
* Returns "International", if the countries are different.
* Added a line to the EcmrManagementService to set the nationalInternationalTransport property for the current eCMR.
* This happens for every eCMR in that the user is connected to (all eCMRs in the Overview).

Frontend:
* Added the same property to the EcmrListEntry interface and to the ecmrListHeaderObjects. 
* Added the property from the ecmrListHeaderObjects to the overview page.

Closes #79 (closed)

Edited by Artur Blek

Merge request reports

Loading