feat: Szenario-Einträge je Stichtag mit Zeitraum und Art Neuer Betrag (A14-T2)
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -12,8 +12,8 @@ from app.services.projection_service import load_scenario_inputs
|
||||
def test_modifikator_helfer_oeffentlich():
|
||||
mods = [PlainModifier("recurring", 1, "percent", Decimal("10")),
|
||||
PlainModifier("recurring", 1, "ende", Decimal("0"), date(2030, 6, 30))]
|
||||
assert modified_amount(Decimal("-100.00"), None, 1, mods) == Decimal("-90.00")
|
||||
assert modified_amount(Decimal("-100.00"), None, 2, mods) == Decimal("-100.00")
|
||||
assert modified_amount(Decimal("-100.00"), None, 1, mods, on=date(2030, 1, 1)) == Decimal("-90.00")
|
||||
assert modified_amount(Decimal("-100.00"), None, 2, mods, on=date(2030, 1, 1)) == Decimal("-100.00")
|
||||
r = PlainRecurring(1, "R", Decimal("-100.00"), "monthly", 1, None,
|
||||
date(2030, 12, 31), None)
|
||||
assert effective_end(r, mods) == date(2030, 6, 30)
|
||||
|
||||
Reference in New Issue
Block a user