CDB3-327 dgf-english/dutch need add check to float values for all fields with 'amount' property
Summary: when user set amount like '10.999' backend should return error for all float symbols that > .99, like .999 or more .92342
STR:
- Go to /api/procedures/:procedure_id/bids endpoint
- Send POST request with body:
{
"bidders": [
{
"identifier": {
"id": "12312312",
"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": "Адміністратор2",
"en_US": "Admin2"
},
"telephone": "+380996872350",
"faxNumber": "+380996872350",
"email": "admin@example.com"
}
}
],
"status": "deleted",
"value": {
"currency": "UAH",
"amount": 10.999
}
}
- Get bid with GET req to /api/procedures/:procedure_id/bids/:bid_id?acc_token= endpoint
X-Request-ID: 79015f31-69bc-48e4-9551-a931cb252a03
Actual result: value accepted, bid.value.amount is 11 for now
Expected result: for float values >.99 should be error
Edited by Olga Kochubynska