OP-TED / eForms-SDK

eForms is the notification standard for public procurement procedures in the EU. The eForms SDK is a collection of resources providing the foundation for building eForms applications.
Creative Commons Attribution 4.0 International
59 stars 30 forks source link

Inter-dependent fields not both in the same notice type #498

Closed klmdb closed 1 year ago

klmdb commented 1 year ago

Problem

File notice-types/16.json doesn't contain OPT-060-Lot BUT DOES contain BT-70-Lot.

Analysis

BT-70-Lot depends on OPT-060-Lot to create the correct xml node:

Because we build the xml document based on the xpath expressions of the nodes in the conceptual model, we need OPT-060-Lot to be present in the conceptual model in order to create the xml node <cbc:ExecutionRequirementCode listName="conditions">. It is not present in the conceptual model though, because it is not part of the notice-type/16.json.

Solution

Include OPT-060-Lot into notice-type/16.json. Check if this is a class of problems that needs to be solved generally.

rouschr commented 1 year ago

According to Enrico this will be fixed in SDK 1.8

{
        "id" : "GR-Lot-ContractExecutionRequirements",
        "contentType" : "group",
        "displayType" : "GROUP",
        "description" : "Contract Execution Requirements",
        "_label" : "group|name|GR-Lot-ContractExecutionRequirements",
        "content" : [ {
          "id" : "BT-736-Lot",
          "contentType" : "field",
          "displayType" : "COMBOBOX",
          "description" : "Reserved Execution",
          "_label" : "field|name|BT-736-Lot"
        }, {
          "id" : "BT-743-Lot",
          "contentType" : "field",
          "displayType" : "COMBOBOX",
          "description" : "Electronic Invoicing",
          "_label" : "field|name|BT-743-Lot"
        }, {
          "id" : "OPT-060-Lot",
          "contentType" : "field",
          "displayType" : "COMBOBOX",
          "description" : "Execution Requirements Factor",
          "_label" : "field|name|OPT-060-Lot",
          "_presetValue" : "performance"
        }, {
          "id" : "BT-70-Lot",
          "contentType" : "field",
          "displayType" : "TEXTAREA",
          "description" : "Terms Performance",
          "_label" : "field|name|BT-70-Lot"
        } ]
      }