Commit 46bd47170346f82a7320e74f16b48e7511543fef

Authored by Leits
1 parent 7523894f

Add rounding multilot tender budget

... ... @@ -97,7 +97,7 @@ def test_tender_data(params, periods=("enquiry", "tender")):
97 97 new_item = test_item_data(cpv_group)
98 98 new_item['relatedLot'] = lot_id
99 99 data['items'].append(new_item)
100   - value_amount = sum(lot['value']['amount'] for lot in data['lots'])
  100 + value_amount = round(sum(lot['value']['amount'] for lot in data['lots']), 2)
101 101 minimalStep = min(lot['minimalStep']['amount'] for lot in data['lots'])
102 102 data['value']['amount'] = value_amount
103 103 data['minimalStep']['amount'] = minimalStep
... ...
Please register or login to post a comment