CDB3-327 CDB3-328 dgf-english/dutch procedure should automatically change it status to 'complete' if contract in status 'active'
Summary: if organizer sign contract and it status changed to 'active' at qualificationPeriod.endDate procedure should automatically change it status to 'complete'
STR:
- Go to /api/procedures/ endpoint
- Create procedure with next body:
{
"auctionPeriod": {
"startDate": "2021-01-04T19:23:00+00:00"
},
"sellingMethod": "dgf-english-fast",
"sellingEntity": {
"identifier": {
"scheme": "UA-IPN",
"legalName": {
"uk_UA": "string",
"en_US": "string"
},
"id": "1234563378"
},
"address": {
"addressID": {
"scheme": "koatuu",
"id": "0110136600"
},
"streetAddress": {
"uk_UA": "string",
"en_US": "string"
},
"locality": {
"uk_UA": "string",
"en_US": "string"
},
"region": {
"uk_UA": "Автономна Республіка Крим",
"en_US": "string"
},
"countryName": {
"uk_UA": "Україна"
}
},
"contactPoint": {
"email": "Tadmin@example.com",
"telephone": "+380123456789",
"name": {
"uk_UA": "string",
"en_US": "string"
},
"url": "http://string.com"
},
"representativeInfo": "Довіреність № 123 від 22.02.2012, дійсна до 30.03.2012/Наказ № 142 від 14.12.2019/Статут ТОВ Кульбаба від 24.07.2002"
},
"lotId": "sd",
"title": {
"uk_UA": "<script>document.body.style.backgroundColor='#f3f3f3'; alert('test');</script>",
"en_US": "string"
},
"description": {
"uk_UA": "string",
"en_US": "string"
},
"decision": {
"decisionId": "string",
"decisionDate": "2020-11-04T17:28:58.265Z"
},
"bankAccount": [
{
"bankName": {
"uk_UA": "string",
"en_US": "string"
},
"description": {
"uk_UA": "string",
"en_US": "string"
},
"accountIdentifications": [
{
"scheme": "UA-IBAN",
"id": "As223323232378678905467894323"
}
]
}
],
"x_documentRequirements": {
"uk_UA": "string",
"en_US": "string"
},
"x_additionalInformation": {
"uk_UA": "string",
"en_US": "string"
},
"value": {
"currency": "UAH",
"amount": 1001,
"valueAddedTaxIncluded": true
},
"guarantee": {
"currency": "UAH",
"amount": 0.01,
"valueAddedTaxIncluded": true
},
"discount": {
"discount": true,
"previousAuctionValue": {"currency": "UAH",
"amount": 1001.99},
"discountPercent": 10
},
"tenderAttempts": 1,
"virtualDataRoom": "http://virtial-data-room.com/id_of_room",
"eligibilityCriteria": "eligibilityCriteria",
"accessDetails": {
"uk_UA": "ssss"
},
"items": [
{
"description": {
"uk_UA": "<script>document.body.style.backgroundColor='#f3f3f3'; alert('test');</script>",
"en_US": "string"
},
"classification": {
"scheme": "CAV",
"id": "04000000-8"
},
"unit": {
"code": "H87"
},
"quantity": 11.1126,
"address": {
"addressID": {
"scheme": "koatuu",
"id": "0110136600"
},
"streetAddress": {
"uk_UA": "string",
"en_US": "string"
},
"locality": {
"uk_UA": "string",
"en_US": "string"
},
"region": {
"uk_UA": "Автономна Республіка Крим",
"en_US": "string"
},
"postalCode": "string",
"countryName": {
"uk_UA": "Україна"
}
},
"additionalClassifications": [
{
"scheme": "CPVS",
"id": "QB49-3"
}
],
"location": {
"latitude": "string",
"longitude": "string",
"elevation": "string"
},
"registrationDetails": {
"registrationStatus": "unknown",
"registrationID": "as",
"registrationDate": "1969-01-01T00:00:01.000000Z"
}
},
{
"description": {
"uk_UA": "<script>document.body.style.backgroundColor='#f3f3f3'; alert('test');</script>",
"en_US": "string"
},
"classification": {
"scheme": "CAV",
"id": "04000000-8"
},
"unit": {
"code": "H87"
},
"quantity": 11.1126,
"address": {
"addressID": {
"scheme": "koatuu",
"id": "0110136600"
},
"streetAddress": {
"uk_UA": "string",
"en_US": "string"
},
"locality": {
"uk_UA": "string",
"en_US": "string"
},
"region": {
"uk_UA": "Автономна Республіка Крим",
"en_US": "string"
},
"postalCode": "string",
"countryName": {
"uk_UA": "Україна"
}
},
"additionalClassifications": [
{
"scheme": "CPVS",
"id": "QB49-3"
}
],
"location": {
"latitude": "string",
"longitude": "string",
"elevation": "string"
},
"registrationDetails": {
"registrationStatus": "unknown",
"registrationID": "as",
"registrationDate": "1969-01-01T00:00:01.000000Z"
}
}
],
"minimalStep": {
"currency": "UAH",
"amount": 10
}
}
- Make 2 bids, make active
- Wait until auction finished
- Upload 'contractSigned' doc
- Update 1st contract with patch:
{
"contractNumber": "Required field",
"dateSigned": "2021-01-04T16:20:00.000000Z",
"title": {"uk_UA":"asas"},
"description": {"uk_UA":"sdsd"},
"contractTime": {
"dateFrom":"2021-01-04T16:20:00.000000Z",
"dateTill": "2021-01-04T16:20:00.000000Z"
}
}
- Change contract status to 'active' (this should be done before qualificationPeriod.endDate come)
- Wait until qualificationPeriod.endDate come and check if procedure state changed to 'complete'
Procedure example: id - 5ff45345c0bf0a85059ce884 | acc_token - 3a9ef662-50f4-4c9d-8188-fd0bb1e9e781
Actual result: procedure will be in active_awarded state until manual action done
Expected result: http://prntscr.com/wgpda4
Should work for situation when there is only 1 award or 2 awards. Should work like this if contract in status 'active' only.