Commit f4a8ed4bbb43193872f921d1138565cb1ffaaaed
1 parent
b9e958f8
Fix bug with float passed to python function
Showing
1 changed file
with
5 additions
and
3 deletions
... | ... | @@ -270,8 +270,9 @@ Resource resource.robot |
270 | 270 | |
271 | 271 | Можливість змінити на ${percent} відсотки бюджет ${lot_index} лоту |
272 | 272 | ${percent}= Convert To Number ${percent} |
273 | - ${value}= mult_and_round ${USERS.users['${tender_owner}'].tender_data.data.lots[${lot_index}].value.amount} ${percent} ${1/100} precision=${2} | |
274 | - ${step_value}= mult_and_round ${USERS.users['${tender_owner}'].tender_data.data.lots[${lot_index}].minimalStep.amount} ${percent} ${1/100} precision=${2} | |
273 | + ${divider}= Convert To Number 0.01 | |
274 | + ${value}= mult_and_round ${USERS.users['${tender_owner}'].tender_data.data.lots[${lot_index}].value.amount} ${percent} ${divider} precision=${2} | |
275 | + ${step_value}= mult_and_round ${USERS.users['${tender_owner}'].tender_data.data.lots[${lot_index}].minimalStep.amount} ${percent} ${divider} precision=${2} | |
275 | 276 | Можливість змінити поле value.amount ${lot_index} лоту на ${value} |
276 | 277 | Можливість змінити поле minimalStep.amount ${lot_index} лоту на ${step_value} |
277 | 278 | |
... | ... | @@ -820,9 +821,10 @@ Resource resource.robot |
820 | 821 | |
821 | 822 | Можливість зменшити пропозицію до ${percent} відсотків користувачем ${username} |
822 | 823 | ${percent}= Convert To Number ${percent} |
824 | + ${divider}= Convert To Number 0.01 | |
823 | 825 | ${field}= Set variable if ${number_of_lots} == 0 value.amount lotValues[0].value.amount |
824 | 826 | ${value}= Run As ${username} Отримати інформацію із пропозиції ${TENDER['TENDER_UAID']} ${field} |
825 | - ${value}= mult_and_round ${value} ${percent} ${1/100} precision=${2} | |
827 | + ${value}= mult_and_round ${value} ${percent} ${divider} precision=${2} | |
826 | 828 | Run as ${username} Змінити цінову пропозицію ${TENDER['TENDER_UAID']} ${field} ${value} |
827 | 829 | |
828 | 830 | ... | ... |
Please
register
or
login
to post a comment