CDB3-454 LLE need fix min auctionPeriod.startDate calculation like for subsoil
Summary: fix min startDate calculation
STR:
- Go to /api/procedures/ endpoint
- Try to create procedure with next body:
{
"auctionPeriod": {
"startDate": "2021-03-10T16:02:00+00:00"
},
"sellingMethod": "legitimatePropertyLease-english",
"lotId": "sd",
"title": {
"uk_UA": "<script>document.body.style.backgroundColor='#f3f3f3'; alert('test');</script>",
"en_US": "string"
},
"description": {
"uk_UA": "string",
"en_US": "string"
},
"x_additionalInformation": {
"uk_UA": "string",
"en_US": "string"
},
"value": {
"currency": "UAH",
"amount": 3,
"valueAddedTaxIncluded": false
},
"valueAddedTaxCharged": true,
"guarantee": {
"currency": "UAH",
"amount": 2
},
"tenderAttempts": 1,
"accessDetails": {
"uk_UA": "ssss"
},
"items": [
{
"itemType":"otherProperty",
"description": {
"uk_UA": "<script>document.body.style.backgroundColor='#f3f3f3'; alert('test');</script>",
"en_US": "string"
},
"classification": {
"scheme": "CAV",
"id": "48000000-8"
},
"unit": {
"code": "H87"
},
"quantity": 11.1126,
"location": {
"latitude": "sd",
"longitude": "sd"
}
},
{
"itemType": "jointPropertyComplex",
"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": "Україна"
}
},
"location": {
"latitude": "string",
"longitude": "string",
"elevation": "string"
},
"registrationDetails": {},
"jpcProps": {},
"additionalClassification": {
"scheme": "CPVS",
"id": "QB29-3"
}
}
],
"minimalStep": {
"currency": "UAH",
"amount": 0.1
},
"registryObjectId": "",
"leaseRules": {
"intendedUseRestrictionMethod": "onlyDescribed",
"intendedUseRestrictionDescription": "wewe"
},
"relatedOrganizations": {
"sellingEntity": {
"identifier": {
"scheme": "UA-EDR",
"legalName": {
"uk_UA": "string",
"en_US": "string"
},
"id": "12345637"
},
"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"
},
"propertyOwner": {"identifier": {
"scheme": "UA-EDR",
"legalName": {
"uk_UA": "string",
"en_US": "string"
},
"id": "12345637"
},
"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"
},
"ownershipType": "state"
},
"bankAccounts": {
"advancePaymentAccounts": {}
},
"registrationFee": {
"currency": "UAH",
"amount": 3000
},
"valuePeriod": "month",
"leaseDuration": "P2Y11M"
}
- Check min auctionPeriod.startDate according to doc
Procedure example: id - 602bc22f63d1d4426691da8b | acc_token - a09a23cd-31eb-4ca4-b61f-d4c8ce1f1738
Actual result: calculation like 19 + 2 + 1 days == min 22 days before auction start
Expected result: https://prnt.sc/zqkvps calculation should be started from datePublished, not from rectificationPeriod.endDate, even when that period belongs to business days
Edited by Vlad Murenko