Keep consolidated costs out of local estimates and group public updates
This commit is contained in:
@@ -40,6 +40,17 @@ def test_resolved_draft_ok_and_computed():
|
||||
assert not r["missing"]
|
||||
|
||||
|
||||
def test_local_estimate_does_not_add_consolidated_costs_or_vat():
|
||||
r = ec.build_and_calc(_draft(2), _resources(), _fgis())
|
||||
assert r["grand_total"] == 4380.0
|
||||
assert "grand_total_with_limits" not in r
|
||||
assert "vat" not in r.get("totals", {})
|
||||
assert "total_with_vat" not in r.get("totals", {})
|
||||
assert "Нужен ли" in r["limits_note"]
|
||||
assert "зимние" in r["limits_note"].lower()
|
||||
assert "НДС" in r["limits_note"]
|
||||
|
||||
|
||||
def test_metamorphic_qty_double():
|
||||
r2 = ec.build_and_calc(_draft(2), _resources(), _fgis())
|
||||
r4 = ec.build_and_calc(_draft(4), _resources(), _fgis())
|
||||
|
||||
Reference in New Issue
Block a user