Skip to content

Commit

Permalink
Merge pull request #984 from OP-TED/feature/TEDEFO-3578-optimize-rule…
Browse files Browse the repository at this point in the history
…-tender-value

schematrons: Optimization of CM rules for BT-720-Tender (TEDEFO-3578)
  • Loading branch information
bertrand-lorentz committed Jul 25, 2024
2 parents e63c74a + 747f07e commit a6a40f8
Show file tree
Hide file tree
Showing 34 changed files with 80 additions and 14 deletions.
1 change: 1 addition & 0 deletions examples/reports/INVALID_can_24_stage-1.svrl
Original file line number Diff line number Diff line change
Expand Up @@ -723,6 +723,7 @@
<svrl:fired-rule context="/*/ext:UBLExtensions/ext:UBLExtension/ext:ExtensionContent/efext:EformsExtension/efac:Organizations/efac:Organization[$noticeSubType = '29']"/>
<svrl:fired-rule context="/*/ext:UBLExtensions/ext:UBLExtension/ext:ExtensionContent/efext:EformsExtension/efac:Organizations/efac:Organization/efac:Company[$noticeSubType = '29']"/>
<svrl:active-pattern id="EFORMS-validation-stage-4m"/>
<svrl:fired-rule context="/*/ext:UBLExtensions/ext:UBLExtension/ext:ExtensionContent/efext:EformsExtension/efac:NoticeResult/efac:LotTender[$noticeSubType = '29']"/>
<svrl:active-pattern id="EFORMS-validation-stage-5"/>
<svrl:fired-rule context="/*"/>
<svrl:fired-rule context="/*/cac:ContractingParty"/>
Expand Down
1 change: 1 addition & 0 deletions examples/reports/INVALID_can_24_stage-2.svrl
Original file line number Diff line number Diff line change
Expand Up @@ -821,6 +821,7 @@
<svrl:fired-rule context="/*/ext:UBLExtensions/ext:UBLExtension/ext:ExtensionContent/efext:EformsExtension/efac:Organizations/efac:Organization[$noticeSubType = '29']"/>
<svrl:fired-rule context="/*/ext:UBLExtensions/ext:UBLExtension/ext:ExtensionContent/efext:EformsExtension/efac:Organizations/efac:Organization/efac:Company[$noticeSubType = '29']"/>
<svrl:active-pattern id="EFORMS-validation-stage-4m"/>
<svrl:fired-rule context="/*/ext:UBLExtensions/ext:UBLExtension/ext:ExtensionContent/efext:EformsExtension/efac:NoticeResult/efac:LotTender[$noticeSubType = '29']"/>
<svrl:active-pattern id="EFORMS-validation-stage-5"/>
<svrl:fired-rule context="/*"/>
<svrl:failed-assert id="BR-OPT-00300-0255"
Expand Down
1 change: 1 addition & 0 deletions examples/reports/can-social_23.svrl
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,7 @@
<svrl:fired-rule context="/*/ext:UBLExtensions/ext:UBLExtension/ext:ExtensionContent/efext:EformsExtension/efac:Organizations/efac:Organization/efac:Company[$noticeSubType = '35']"/>
<svrl:fired-rule context="/*/ext:UBLExtensions/ext:UBLExtension/ext:ExtensionContent/efext:EformsExtension/efac:Organizations/efac:Organization/efac:TouchPoint[$noticeSubType = '35']"/>
<svrl:active-pattern id="EFORMS-validation-stage-4m"/>
<svrl:fired-rule context="/*/ext:UBLExtensions/ext:UBLExtension/ext:ExtensionContent/efext:EformsExtension/efac:NoticeResult/efac:LotTender[$noticeSubType = '35']"/>
<svrl:active-pattern id="EFORMS-validation-stage-5"/>
<svrl:fired-rule context="/*"/>
<svrl:fired-rule context="/*/cac:ContractingParty"/>
Expand Down
2 changes: 2 additions & 0 deletions examples/reports/can-social_24.svrl
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,8 @@
<svrl:fired-rule context="/*/ext:UBLExtensions/ext:UBLExtension/ext:ExtensionContent/efext:EformsExtension/efac:Organizations/efac:Organization/efac:Company[$noticeSubType = '33']"/>
<svrl:fired-rule context="/*/ext:UBLExtensions/ext:UBLExtension/ext:ExtensionContent/efext:EformsExtension/efac:Organizations/efac:Organization/efac:TouchPoint[$noticeSubType = '33']"/>
<svrl:active-pattern id="EFORMS-validation-stage-4m"/>
<svrl:fired-rule context="/*/ext:UBLExtensions/ext:UBLExtension/ext:ExtensionContent/efext:EformsExtension/efac:NoticeResult/efac:LotTender[$noticeSubType = '33']"/>
<svrl:fired-rule context="/*/ext:UBLExtensions/ext:UBLExtension/ext:ExtensionContent/efext:EformsExtension/efac:NoticeResult/efac:LotTender[$noticeSubType = '33']"/>
<svrl:active-pattern id="EFORMS-validation-stage-5"/>
<svrl:fired-rule context="/*"/>
<svrl:fired-rule context="/*/cac:ContractingParty"/>
Expand Down
1 change: 1 addition & 0 deletions examples/reports/can-social_25.svrl
Original file line number Diff line number Diff line change
Expand Up @@ -312,6 +312,7 @@
<svrl:fired-rule context="/*/ext:UBLExtensions/ext:UBLExtension/ext:ExtensionContent/efext:EformsExtension/efac:Organizations/efac:Organization/efac:Company[$noticeSubType = '34']"/>
<svrl:fired-rule context="/*/ext:UBLExtensions/ext:UBLExtension/ext:ExtensionContent/efext:EformsExtension/efac:Organizations/efac:Organization/efac:TouchPoint[$noticeSubType = '34']"/>
<svrl:active-pattern id="EFORMS-validation-stage-4m"/>
<svrl:fired-rule context="/*/ext:UBLExtensions/ext:UBLExtension/ext:ExtensionContent/efext:EformsExtension/efac:NoticeResult/efac:LotTender[$noticeSubType = '34']"/>
<svrl:active-pattern id="EFORMS-validation-stage-5"/>
<svrl:fired-rule context="/*"/>
<svrl:fired-rule context="/*/cac:ContractingParty"/>
Expand Down
2 changes: 2 additions & 0 deletions examples/reports/can_23_contracts.svrl
Original file line number Diff line number Diff line change
Expand Up @@ -408,6 +408,8 @@
<svrl:fired-rule context="/*/ext:UBLExtensions/ext:UBLExtension/ext:ExtensionContent/efext:EformsExtension/efac:Organizations/efac:Organization/efac:TouchPoint[$noticeSubType = '32']"/>
<svrl:fired-rule context="/*/ext:UBLExtensions/ext:UBLExtension/ext:ExtensionContent/efext:EformsExtension/efac:Organizations/efac:UltimateBeneficialOwner[$noticeSubType = '32']"/>
<svrl:active-pattern id="EFORMS-validation-stage-4m"/>
<svrl:fired-rule context="/*/ext:UBLExtensions/ext:UBLExtension/ext:ExtensionContent/efext:EformsExtension/efac:NoticeResult/efac:LotTender[$noticeSubType = '32']"/>
<svrl:fired-rule context="/*/ext:UBLExtensions/ext:UBLExtension/ext:ExtensionContent/efext:EformsExtension/efac:NoticeResult/efac:LotTender[$noticeSubType = '32']"/>
<svrl:active-pattern id="EFORMS-validation-stage-5"/>
<svrl:fired-rule context="/*"/>
<svrl:fired-rule context="/*/cac:ContractingParty"/>
Expand Down
2 changes: 2 additions & 0 deletions examples/reports/can_24_FRA_comments.svrl
Original file line number Diff line number Diff line change
Expand Up @@ -573,6 +573,8 @@
<svrl:fired-rule context="/*/ext:UBLExtensions/ext:UBLExtension/ext:ExtensionContent/efext:EformsExtension/efac:Organizations/efac:UltimateBeneficialOwner[$noticeSubType = '29']"/>
<svrl:fired-rule context="/*/ext:UBLExtensions/ext:UBLExtension/ext:ExtensionContent/efext:EformsExtension/efac:Organizations/efac:UltimateBeneficialOwner[$noticeSubType = '29']"/>
<svrl:active-pattern id="EFORMS-validation-stage-4m"/>
<svrl:fired-rule context="/*/ext:UBLExtensions/ext:UBLExtension/ext:ExtensionContent/efext:EformsExtension/efac:NoticeResult/efac:LotTender[$noticeSubType = '29']"/>
<svrl:fired-rule context="/*/ext:UBLExtensions/ext:UBLExtension/ext:ExtensionContent/efext:EformsExtension/efac:NoticeResult/efac:LotTender[$noticeSubType = '29']"/>
<svrl:active-pattern id="EFORMS-validation-stage-5"/>
<svrl:fired-rule context="/*"/>
<svrl:fired-rule context="/*/cac:ContractingParty"/>
Expand Down
1 change: 1 addition & 0 deletions examples/reports/can_24_LSBU.svrl
Original file line number Diff line number Diff line change
Expand Up @@ -342,6 +342,7 @@
<svrl:fired-rule context="/*/ext:UBLExtensions/ext:UBLExtension/ext:ExtensionContent/efext:EformsExtension/efac:Organizations/efac:Organization/efac:Company[$noticeSubType = '29']"/>
<svrl:fired-rule context="/*/ext:UBLExtensions/ext:UBLExtension/ext:ExtensionContent/efext:EformsExtension/efac:Organizations/efac:Organization/efac:TouchPoint[$noticeSubType = '29']"/>
<svrl:active-pattern id="EFORMS-validation-stage-4m"/>
<svrl:fired-rule context="/*/ext:UBLExtensions/ext:UBLExtension/ext:ExtensionContent/efext:EformsExtension/efac:NoticeResult/efac:LotTender[$noticeSubType = '29']"/>
<svrl:active-pattern id="EFORMS-validation-stage-5"/>
<svrl:fired-rule context="/*"/>
<svrl:fired-rule context="/*/cac:ContractingParty"/>
Expand Down
1 change: 1 addition & 0 deletions examples/reports/can_24_UKRI.svrl
Original file line number Diff line number Diff line change
Expand Up @@ -457,6 +457,7 @@
<svrl:fired-rule context="/*/ext:UBLExtensions/ext:UBLExtension/ext:ExtensionContent/efext:EformsExtension/efac:Organizations/efac:Organization/efac:TouchPoint[$noticeSubType = '29']"/>
<svrl:fired-rule context="/*/ext:UBLExtensions/ext:UBLExtension/ext:ExtensionContent/efext:EformsExtension/efac:Organizations/efac:UltimateBeneficialOwner[$noticeSubType = '29']"/>
<svrl:active-pattern id="EFORMS-validation-stage-4m"/>
<svrl:fired-rule context="/*/ext:UBLExtensions/ext:UBLExtension/ext:ExtensionContent/efext:EformsExtension/efac:NoticeResult/efac:LotTender[$noticeSubType = '29']"/>
<svrl:active-pattern id="EFORMS-validation-stage-5"/>
<svrl:fired-rule context="/*"/>
<svrl:fired-rule context="/*/cac:ContractingParty"/>
Expand Down
3 changes: 3 additions & 0 deletions examples/reports/can_24_maximal.svrl
Original file line number Diff line number Diff line change
Expand Up @@ -1119,6 +1119,9 @@
<svrl:fired-rule context="/*/ext:UBLExtensions/ext:UBLExtension/ext:ExtensionContent/efext:EformsExtension/efac:Organizations/efac:UltimateBeneficialOwner[$noticeSubType = '29']"/>
<svrl:fired-rule context="/*/ext:UBLExtensions/ext:UBLExtension/ext:ExtensionContent/efext:EformsExtension/efac:Organizations/efac:UltimateBeneficialOwner[$noticeSubType = '29']"/>
<svrl:active-pattern id="EFORMS-validation-stage-4m"/>
<svrl:fired-rule context="/*/ext:UBLExtensions/ext:UBLExtension/ext:ExtensionContent/efext:EformsExtension/efac:NoticeResult/efac:LotTender[$noticeSubType = '29']"/>
<svrl:fired-rule context="/*/ext:UBLExtensions/ext:UBLExtension/ext:ExtensionContent/efext:EformsExtension/efac:NoticeResult/efac:LotTender[$noticeSubType = '29']"/>
<svrl:fired-rule context="/*/ext:UBLExtensions/ext:UBLExtension/ext:ExtensionContent/efext:EformsExtension/efac:NoticeResult/efac:LotTender[$noticeSubType = '29']"/>
<svrl:active-pattern id="EFORMS-validation-stage-5"/>
<svrl:fired-rule context="/*"/>
<svrl:fired-rule context="/*/cac:ContractingParty"/>
Expand Down
1 change: 1 addition & 0 deletions examples/reports/can_24_minimal.svrl
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,7 @@
<svrl:fired-rule context="/*/ext:UBLExtensions/ext:UBLExtension/ext:ExtensionContent/efext:EformsExtension/efac:Organizations/efac:Organization/efac:Company[$noticeSubType = '29']"/>
<svrl:fired-rule context="/*/ext:UBLExtensions/ext:UBLExtension/ext:ExtensionContent/efext:EformsExtension/efac:Organizations/efac:UltimateBeneficialOwner[$noticeSubType = '29']"/>
<svrl:active-pattern id="EFORMS-validation-stage-4m"/>
<svrl:fired-rule context="/*/ext:UBLExtensions/ext:UBLExtension/ext:ExtensionContent/efext:EformsExtension/efac:NoticeResult/efac:LotTender[$noticeSubType = '29']"/>
<svrl:active-pattern id="EFORMS-validation-stage-5"/>
<svrl:fired-rule context="/*"/>
<svrl:fired-rule context="/*/cac:ContractingParty"/>
Expand Down
1 change: 1 addition & 0 deletions examples/reports/can_25_ENG.svrl
Original file line number Diff line number Diff line change
Expand Up @@ -345,6 +345,7 @@
<svrl:fired-rule context="/*/ext:UBLExtensions/ext:UBLExtension/ext:ExtensionContent/efext:EformsExtension/efac:Organizations/efac:Organization/efac:TouchPoint[$noticeSubType = '30']"/>
<svrl:fired-rule context="/*/ext:UBLExtensions/ext:UBLExtension/ext:ExtensionContent/efext:EformsExtension/efac:Organizations/efac:UltimateBeneficialOwner[$noticeSubType = '30']"/>
<svrl:active-pattern id="EFORMS-validation-stage-4m"/>
<svrl:fired-rule context="/*/ext:UBLExtensions/ext:UBLExtension/ext:ExtensionContent/efext:EformsExtension/efac:NoticeResult/efac:LotTender[$noticeSubType = '30']"/>
<svrl:active-pattern id="EFORMS-validation-stage-5"/>
<svrl:fired-rule context="/*"/>
<svrl:fired-rule context="/*/cac:ContractingParty"/>
Expand Down
1 change: 1 addition & 0 deletions examples/reports/can_25_ENG_Buyers.svrl
Original file line number Diff line number Diff line change
Expand Up @@ -352,6 +352,7 @@
<svrl:fired-rule context="/*/ext:UBLExtensions/ext:UBLExtension/ext:ExtensionContent/efext:EformsExtension/efac:Organizations/efac:Organization/efac:TouchPoint[$noticeSubType = '30']"/>
<svrl:fired-rule context="/*/ext:UBLExtensions/ext:UBLExtension/ext:ExtensionContent/efext:EformsExtension/efac:Organizations/efac:UltimateBeneficialOwner[$noticeSubType = '30']"/>
<svrl:active-pattern id="EFORMS-validation-stage-4m"/>
<svrl:fired-rule context="/*/ext:UBLExtensions/ext:UBLExtension/ext:ExtensionContent/efext:EformsExtension/efac:NoticeResult/efac:LotTender[$noticeSubType = '30']"/>
<svrl:active-pattern id="EFORMS-validation-stage-5"/>
<svrl:fired-rule context="/*"/>
<svrl:fired-rule context="/*/cac:ContractingParty"/>
Expand Down
1 change: 1 addition & 0 deletions examples/reports/can_25_ENG_buyers_countries.svrl
Original file line number Diff line number Diff line change
Expand Up @@ -360,6 +360,7 @@
<svrl:fired-rule context="/*/ext:UBLExtensions/ext:UBLExtension/ext:ExtensionContent/efext:EformsExtension/efac:Organizations/efac:Organization/efac:TouchPoint[$noticeSubType = '30']"/>
<svrl:fired-rule context="/*/ext:UBLExtensions/ext:UBLExtension/ext:ExtensionContent/efext:EformsExtension/efac:Organizations/efac:UltimateBeneficialOwner[$noticeSubType = '30']"/>
<svrl:active-pattern id="EFORMS-validation-stage-4m"/>
<svrl:fired-rule context="/*/ext:UBLExtensions/ext:UBLExtension/ext:ExtensionContent/efext:EformsExtension/efac:NoticeResult/efac:LotTender[$noticeSubType = '30']"/>
<svrl:active-pattern id="EFORMS-validation-stage-5"/>
<svrl:fired-rule context="/*"/>
<svrl:fired-rule context="/*/cac:ContractingParty"/>
Expand Down
1 change: 1 addition & 0 deletions examples/reports/can_25_ITA.svrl
Original file line number Diff line number Diff line change
Expand Up @@ -350,6 +350,7 @@
<svrl:fired-rule context="/*/ext:UBLExtensions/ext:UBLExtension/ext:ExtensionContent/efext:EformsExtension/efac:Organizations/efac:Organization/efac:Company[$noticeSubType = '30']"/>
<svrl:fired-rule context="/*/ext:UBLExtensions/ext:UBLExtension/ext:ExtensionContent/efext:EformsExtension/efac:Organizations/efac:UltimateBeneficialOwner[$noticeSubType = '30']"/>
<svrl:active-pattern id="EFORMS-validation-stage-4m"/>
<svrl:fired-rule context="/*/ext:UBLExtensions/ext:UBLExtension/ext:ExtensionContent/efext:EformsExtension/efac:NoticeResult/efac:LotTender[$noticeSubType = '30']"/>
<svrl:active-pattern id="EFORMS-validation-stage-5"/>
<svrl:fired-rule context="/*"/>
<svrl:fired-rule context="/*/cac:ContractingParty"/>
Expand Down
1 change: 1 addition & 0 deletions examples/reports/can_25_withheld.svrl
Original file line number Diff line number Diff line change
Expand Up @@ -518,6 +518,7 @@
<svrl:fired-rule context="/*/ext:UBLExtensions/ext:UBLExtension/ext:ExtensionContent/efext:EformsExtension/efac:Organizations/efac:Organization/efac:Company[$noticeSubType = '30']"/>
<svrl:fired-rule context="/*/ext:UBLExtensions/ext:UBLExtension/ext:ExtensionContent/efext:EformsExtension/efac:Organizations/efac:Organization/efac:TouchPoint[$noticeSubType = '30']"/>
<svrl:active-pattern id="EFORMS-validation-stage-4m"/>
<svrl:fired-rule context="/*/ext:UBLExtensions/ext:UBLExtension/ext:ExtensionContent/efext:EformsExtension/efac:NoticeResult/efac:LotTender[$noticeSubType = '30']"/>
<svrl:active-pattern id="EFORMS-validation-stage-5"/>
<svrl:fired-rule context="/*"/>
<svrl:fired-rule context="/*/cac:ContractingParty"/>
Expand Down
2 changes: 2 additions & 0 deletions examples/reports/can_25_withheld_lots.svrl
Original file line number Diff line number Diff line change
Expand Up @@ -653,6 +653,8 @@
<svrl:fired-rule context="/*/ext:UBLExtensions/ext:UBLExtension/ext:ExtensionContent/efext:EformsExtension/efac:Organizations/efac:Organization/efac:Company[$noticeSubType = '30']"/>
<svrl:fired-rule context="/*/ext:UBLExtensions/ext:UBLExtension/ext:ExtensionContent/efext:EformsExtension/efac:Organizations/efac:Organization/efac:TouchPoint[$noticeSubType = '30']"/>
<svrl:active-pattern id="EFORMS-validation-stage-4m"/>
<svrl:fired-rule context="/*/ext:UBLExtensions/ext:UBLExtension/ext:ExtensionContent/efext:EformsExtension/efac:NoticeResult/efac:LotTender[$noticeSubType = '30']"/>
<svrl:fired-rule context="/*/ext:UBLExtensions/ext:UBLExtension/ext:ExtensionContent/efext:EformsExtension/efac:NoticeResult/efac:LotTender[$noticeSubType = '30']"/>
<svrl:active-pattern id="EFORMS-validation-stage-5"/>
<svrl:fired-rule context="/*"/>
<svrl:fired-rule context="/*/cac:ContractingParty"/>
Expand Down
1 change: 1 addition & 0 deletions examples/reports/can_81_FRA.svrl
Original file line number Diff line number Diff line change
Expand Up @@ -385,6 +385,7 @@
<svrl:fired-rule context="/*/ext:UBLExtensions/ext:UBLExtension/ext:ExtensionContent/efext:EformsExtension/efac:Organizations/efac:Organization/efac:TouchPoint[$noticeSubType = '31']"/>
<svrl:fired-rule context="/*/ext:UBLExtensions/ext:UBLExtension/ext:ExtensionContent/efext:EformsExtension/efac:Organizations/efac:UltimateBeneficialOwner[$noticeSubType = '31']"/>
<svrl:active-pattern id="EFORMS-validation-stage-4m"/>
<svrl:fired-rule context="/*/ext:UBLExtensions/ext:UBLExtension/ext:ExtensionContent/efext:EformsExtension/efac:NoticeResult/efac:LotTender[$noticeSubType = '31']"/>
<svrl:active-pattern id="EFORMS-validation-stage-5"/>
<svrl:fired-rule context="/*"/>
<svrl:fired-rule context="/*/cac:ContractingParty"/>
Expand Down
1 change: 0 additions & 1 deletion schematrons/dynamic/validation-stage-4-29.sch
Original file line number Diff line number Diff line change
Expand Up @@ -585,7 +585,6 @@
<assert id="BR-BT-00193-0036" role="ERROR" diagnostics="BT-193-Tender" test="count(efbc:TenderVariantIndicator) = 0 or not(cbc:ID/normalize-space(text()) = ../efac:LotResult/efac:LotTender/cbc:ID[../../cbc:TenderResultCode/normalize-space(text()) = 'clos-nw']/normalize-space(text()))">rule|text|BR-BT-00193-0036</assert>
<assert id="BR-BT-00682-0036" role="ERROR" diagnostics="BT-682-Tender" test="count(efbc:ForeignSubsidiesMeasuresCode) &gt; 0 or (not(efac:TenderLot/cbc:ID/normalize-space(text()) = ../../../../../../cac:ProcurementProjectLot[cbc:ID/@schemeName='Lot']/cbc:ID[../cac:TenderingTerms/cac:ContractExecutionRequirement[cbc:ExecutionRequirementCode/@listName='fsr']/cbc:ExecutionRequirementCode/normalize-space(text()) = 'true']/normalize-space(text())) and not(efac:TenderLot/cbc:ID/normalize-space(text()) = ../../../../../../cac:TenderingTerms/cac:LotDistribution/cac:LotsGroup/cbc:LotsGroupID[../cac:ProcurementProjectLotReference/cbc:ID[@schemeName='Lot']/normalize-space(text()) = ../../../../cac:ProcurementProjectLot[cbc:ID/@schemeName='Lot']/cbc:ID[../cac:TenderingTerms/cac:ContractExecutionRequirement[cbc:ExecutionRequirementCode/@listName='fsr']/cbc:ExecutionRequirementCode/normalize-space(text()) = 'true']/normalize-space(text())]/normalize-space(text())))">rule|text|BR-BT-00682-0036</assert>
<assert id="BR-BT-00682-0086" role="ERROR" diagnostics="BT-682-Tender" test="count(efbc:ForeignSubsidiesMeasuresCode) = 0 or not(not(efac:TenderLot/cbc:ID/normalize-space(text()) = ../../../../../../cac:ProcurementProjectLot[cbc:ID/@schemeName='Lot']/cbc:ID[../cac:TenderingTerms/cac:ContractExecutionRequirement[cbc:ExecutionRequirementCode/@listName='fsr']/cbc:ExecutionRequirementCode/normalize-space(text()) = 'true']/normalize-space(text())) and not(efac:TenderLot/cbc:ID/normalize-space(text()) = ../../../../../../cac:TenderingTerms/cac:LotDistribution/cac:LotsGroup/cbc:LotsGroupID[../cac:ProcurementProjectLotReference/cbc:ID[@schemeName='Lot']/normalize-space(text()) = ../../../../cac:ProcurementProjectLot[cbc:ID/@schemeName='Lot']/cbc:ID[../cac:TenderingTerms/cac:ContractExecutionRequirement[cbc:ExecutionRequirementCode/@listName='fsr']/cbc:ExecutionRequirementCode/normalize-space(text()) = 'true']/normalize-space(text())]/normalize-space(text())))">rule|text|BR-BT-00682-0086</assert>
<assert id="BR-BT-00720-0036" role="ERROR" diagnostics="BT-720-Tender" test="count(cac:LegalMonetaryTotal/cbc:PayableAmount) &gt; 0 or not((cbc:ID/normalize-space(text()) = ../efac:LotResult/efac:LotTender/cbc:ID[(../../cbc:TenderResultCode/normalize-space(text()) = 'selec-w') and (../../efac:TenderLot/cbc:ID/normalize-space(text()) = ../../../../../../../../cac:ProcurementProjectLot[cbc:ID/@schemeName='Lot']/cbc:ID[not(../cac:TenderingProcess/cac:ContractingSystem[cbc:ContractingSystemTypeCode/@listName='framework-agreement']/cbc:ContractingSystemTypeCode/normalize-space(text()) = ('fa-mix','fa-w-rc','fa-wo-rc'))]/normalize-space(text()))]/normalize-space(text())) or (cbc:ID/normalize-space(text()) = ../efac:LotResult/efac:LotTender/cbc:ID[(../../cbc:TenderResultCode/normalize-space(text()) = 'selec-w') and (../../efac:TenderLot/cbc:ID/normalize-space(text()) = ../../../../../../../../cac:ProcurementProjectLot[cbc:ID/@schemeName='Lot']/cbc:ID[../cac:TenderingProcess/cac:ContractingSystem[cbc:ContractingSystemTypeCode/@listName='framework-agreement']/cbc:ContractingSystemTypeCode/normalize-space(text()) = ('fa-mix','fa-w-rc','fa-wo-rc')]/normalize-space(text()))]/normalize-space(text()) and cbc:ID/normalize-space(text()) = ../efac:SettledContract/efac:LotTender/cbc:ID[(../../efbc:ContractFrameworkIndicator = true())]/normalize-space(text())))">rule|text|BR-BT-00720-0036</assert>
<assert id="BR-BT-00720-0052" role="ERROR" diagnostics="BT-720-Tender" test="count(cac:LegalMonetaryTotal/cbc:PayableAmount) = 0 or not(cbc:ID/normalize-space(text()) = ../efac:LotResult/efac:LotTender/cbc:ID[../../cbc:TenderResultCode/normalize-space(text()) = 'open-nw']/normalize-space(text()))">rule|text|BR-BT-00720-0052</assert>
<assert id="BR-BT-00773-0036" role="ERROR" diagnostics="ND-LotTender_BT-773-Tender" test="count(efac:SubcontractingTerm[efbc:TermCode/@listName='applicability']/efbc:TermCode) &gt; 0 or not(cbc:ID)">rule|text|BR-BT-00773-0036</assert>
<assert id="BR-BT-00773-0053" role="ERROR" diagnostics="ND-LotTender_BT-773-Tender" test="count(efac:SubcontractingTerm[efbc:TermCode/@listName='applicability']/efbc:TermCode) = 0 or (cbc:ID)">rule|text|BR-BT-00773-0053</assert>
Expand Down
Loading

0 comments on commit a6a40f8

Please sign in to comment.