protocol-service (TIE/other) need add fix for precision in amoun fields of protocol
Summary: any value of any amount field rounded to .00
STR: (for example TIE)
- Go to /api/procedures/ endpoint
- Create procedure with next body:
{
"sellingMethod": "timber-english-fast",
"auctionPeriod": {
"startDate": "2021-02-03T11:10:17.620007+00:00"
},
"title": {
"uk_UA": "Аукціон з продажу необробленої деревини",
"en_US": "Timber english"
},
"description": {
"uk_UA": "Аукціон з продажу необробленої деревини",
"en_US": "Timber english"
},
"accessDetails": {
"uk_UA": "Порядок та можливий час ознайомлення з лотом",
"en_US": "Auction access details"
},
"sellingEntity": {
"identifier": {
"id": "12345678",
"scheme": "UA-EDR",
"legalName": {
"uk_UA": "ЕДРПОУ",
"en_US": "EDRPOU"
}
},
"address": {
"streetAddress": {
"uk_UA": "Хрещатик, 45a",
"en_US": "Khreschatyk, 45a"
},
"locality": {
"uk_UA": "Київ",
"en_US": "Kyiv"
},
"region": {
"uk_UA": "Київ",
"en_US": "Kyiv"
},
"postalCode": "01002",
"countryName": {
"uk_UA": "Україна",
"en_US": "Ukraine"
}
},
"contactPoint": {
"name": {
"uk_UA": "Україна",
"en_US": "Ukraine"
},
"telephone": "+380123456789",
"faxNumber": "+380123456789",
"email": "admin@example.com"
}
},
"lotId": "UA-PS-19991212-00000",
"previousAuctionId": "UA-PS-1122-33-44-000000-0",
"x_documentRequirements": {
"uk_UA": "Вимоги до оформлення документів",
"en_US": "Document requirements"
},
"value": {
"currency": "UAH",
"amount": 1.45
},
"guarantee": {
"currency": "UAH",
"amount": 1.78
},
"tenderAttempts": 2,
"bankAccount": [
{
"bankName": {
"uk_UA": "test_bank"
},
"accountIdentifications": [
{
"scheme": "UA-accountNumber",
"id": "12345"
}
]
}
],
"items": [
{
"description": {
"uk_UA": "Україна",
"en_US": "Ukraine"
},
"unitValue": {
"amount": 500,
"currency": "UAH"
},
"classification": {
"scheme": "CAV",
"id": "03410000-7"
},
"additionalClassifications": [
{
"scheme": "timberProductionYear",
"id": "2020"
},
{
"scheme": "timberProductionQuarter",
"id": "2"
},
{
"scheme": "timberSortment",
"id": "sRound"
},
{
"scheme": "timberLength",
"id": "2,2 - 3,5"
},
{
"scheme": "timberStorage",
"id": "01"
},
{
"scheme": "timberDiameter",
"id": "D1a"
},
{
"scheme": "timberSpecies",
"id": "BEDA"
},
{
"scheme": "CPVS",
"id": "QB49-3"
},
{
"scheme": "timberClass",
"id": "b"
}
],
"unit": {
"code": "MTQ"
},
"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"
}
}
}
],
"minimalStep": {
"currency": "UAH",
"amount": 10.43
},
"discount": {"discount": false}
}
- Make 2 bids with value.amount 10.43 and 100.55 for example, make active
- Wait until auction finished
- Get protocol from service
Procedure example: id - 601a838f8a941ebc8217af0b | acc_token - 4151cf01-3a24-428a-bc0d-b6d67a8aad40
Protocol: https://procedure-dev.prozori.in.ua/api/protocol/TIE001-UA-20210203-02699/print
Actual result: as you can see - https://prnt.sc/y540om https://prnt.sc/y54999
Expected result: all values should be passed like they were setted