Commit 9e034b4dddf2c6dd11dd3f92dbe4df0c8f14d5b9

Authored by ivanka12
1 parent 65a6285c

update "Розрахувати ціну для ${contract_number} контракту"

... ... @@ -1179,12 +1179,15 @@ Require Failure
1179 1179 [Return] ${index}
1180 1180
1181 1181
1182   -Розрахувати ціну для ${index} контракту
1183   - ${contract_data}= Create Dictionary data=${USERS.users['${tender_owner}'].tender_data.data.agreements[0].contracts[${index}]}
1184   - ${quantity}= Convert To Integer ${USERS.users['${tender_owner}'].tender_data.data['items'][0]['quantity']}
1185   - ${value}= Evaluate ${USERS.users['${tender_owner}'].tender_data.data.awards[${index}+1].value.amount}/${quantity}
  1182 +Розрахувати ціну для ${contract_number} контракту
  1183 + ${contract_data}= Create Dictionary data=${USERS.users['${tender_owner}'].tender_data.data.agreements[0].contracts[${contract_number}]}
  1184 + ${quantity}= Set Variable ${0}
  1185 + :FOR ${index} IN RANGE ${NUMBER_OF_ITEMS}
  1186 + \ ${quantity}= Evaluate ${quantity}+${USERS.users['${tender_owner}'].tender_data.data['items'][${index}]['quantity']}
  1187 + ${value}= Evaluate ${USERS.users['${tender_owner}'].tender_data.data.awards[${contract_number}+1].value.amount}/${quantity}
1186 1188 ${value}= Convert To Integer ${value}
1187   - Set To Dictionary ${contract_data.data.unitPrices[0].value} amount=${value}
  1189 + :FOR ${index} IN RANGE ${NUMBER_OF_ITEMS}
  1190 + \ Set To Dictionary ${contract_data.data.unitPrices[${index}].value} amount=${value}
1188 1191 ${contract_data}= munch_dict arg=${contract_data}
1189 1192 Log ${contract_data}
1190 1193 [Return] ${contract_data}
\ No newline at end of file
... ...
Please register or login to post a comment