CDB3-322 basicSell-english bids in status 'draft' aren't switched to 'invalid' on procedure PATCH
Summary: status isn't changed
STR:
- Go to /api/procedures/ endpoint
- Create procedure with next body:
{
"auctionPeriod": {
"startDate": "2021-01-16T09:15:00+00:00"
},
"sellingMethod": "basicSell-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"
},
"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": 3,
"valueAddedTaxIncluded": true
},
"guarantee": {
"currency": "UAH",
"amount": 2,
"valueAddedTaxIncluded": true
},
"tenderAttempts": 2,
"accessDetails": {
"uk_UA": "ssss"
},
"minNumberOfQualifiedBids": 1,
"previousAuctionId": "UA-PS-1122-33-44-000000-0",
"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,
"additionalClassifications": [
{
"scheme": "CPVS",
"id": "QB49-3"
}
],
"itemProps": {
"totalObjectArea": 34
}
},
{
"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"
},
"itemProps": {
}
}
],
"minimalStep": {
"currency": "UAH",
"amount": 10
}
}
- Post bid
- Update procedure with PATCH req
- Check created bid status
Procedure example: id - 6002ad9fcc8fa172cd76a3c6 | acc_token - 31c022bf-3ec9-4cb5-90f7-95604dd1dd4d"
Actual result: status isn't changed
Expected result: status should change because user should get notification about procedure update before activating already created bid