Keep consolidated costs out of local estimates and group public updates

This commit is contained in:
anor
2026-12-02 17:57:32 +10:00
parent 8630b76a55
commit 7c55cb3d36
11 changed files with 118 additions and 39 deletions
+11
View File
@@ -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())