subsoil-english/dutch docs can be uploaded to award in 'unsuccessful' status
Summary: when award is in 'unsuccessful' state and second award in 'pending' state user can upload more docs to 1st award
STR:
- Go to /api/procedures/
- Create procedure with next body:
{
"sellingMethod": "subsoil-english-fast",
"auctionPeriod": {
"startDate": "2020-12-16T15:21:00+00:00"
},
"title": {
"uk_UA": "Аукціон з продажу надр",
"en_US": "Nadra uaction"
},
"description": {
"uk_UA": "Аукціон з продажу надр",
"en_US": "Nadra uaction"
},
"accessDetails": {
"uk_UA": "Порядок та можливий час ознайомлення з лотом",
"en_US": "Auction access details"
},
"sellingEntity": {
"identifier": {
"id": "38960413",
"scheme": "UA-EDR",
"legalName": {
"uk_UA": "ЕДРОУ",
"en_US": "EDRPOU"
}
},
"address": {
"streetAddress": {
"uk_UA": "Хрещатик, 43a",
"en_US": "Khreschatyk, 43a"
},
"locality": {
"uk_UA": "Київ",
"en_US": "Kyiv"
},
"region": {
"uk_UA": "Вінницька область",
"en_US": "Kyiv"
},
"postalCode": "01001",
"countryName": {
"uk_UA": "Україна",
"en_US": "Ukraine"
}
},
"contactPoint": {
"name": {
"uk_UA": "Адміністратор",
"en_US": "Admin"
},
"telephone": "+380123456789",
"faxNumber": "+380123456789",
"email": "admin@example.com"
}
},
"x_documentRequirements": {
"uk_UA": "Вимоги до оформлення документів",
"en_US": "Document requirements"
},
"value": {
"currency": "UAH",
"amount": 1000
},
"tenderAttempts": 1,
"guarantee": {
"currency": "UAH",
"amount": 34343434
},
"items": [
{
"id": "b75870ac-dad2-405a-9aae-ecea87cd38f7",
"description": {
"uk_UA": "Чорнозем",
"en_US": "Black soil"
},
"classification": {
"scheme": "CAV",
"id": "09300000-2"
},
"additionalClassifications": [
{
"scheme": "subsoilUsageType",
"id": "01"
},
{
"scheme": "subsoilUsageType",
"id": "01"
}
],
"unit": {
"code": "H87"
},
"quantity": 900,
"address": {
"streetAddress": {
"uk_UA": "Хрещатик, 43a",
"en_US": "Khreschatyk, 43a"
},
"locality": {
"uk_UA": "Київ",
"en_US": "Kyiv"
},
"region": {
"uk_UA": "Київ",
"en_US": "Kyiv"
},
"postalCode": "01001",
"countryName": {
"uk_UA": "Україна",
"en_US": "Ukraine"
}
}
}
],
"leaseDuration": "P2Y11M",
"minimalStep": {
"currency": "UAH",
"amount": 10
}
}
- Make 2 bids, make them active
- Wait until auction finished
- Upload doc 'rejectionProtocol'
- Add doc to award
- Patch award:
{"terminationReason": "1"}
- Change award status to 'unsuccessful'
- Try to upload one more doc with body:
{
"token": "",
"title": {
"uk_UA": "Назва",
"en_US": "Title"
},
"description": {
"uk_UA": "Опис",
"en_US": "Description"
},
"documentOf": "award",
"documentType": "rejectionProtocol",
"index": 33,
"format": "string",
"language": 0
}
Procedure example: id - 5fda24bbd58d77c92c8d294e | acc_token - 13aad1ef-0459-4f94-87ae-34c6cc5f8b8f
Actual result: docs can be uploaded
Expected result: any docs can't be uploaded to award in status 'unsuccessful'