Revert "Use 5 calendar days for invoice due date"

This reverts commit 9d5c877f54.
This commit is contained in:
2026-05-21 19:04:50 +02:00
parent 9d5c877f54
commit 6ecfb442d4

View File

@@ -77,7 +77,13 @@ class InvoiceInputs:
@property @property
def due_date(self) -> date: def due_date(self) -> date:
return self.issue_date + timedelta(days=5) d = self.issue_date
added = 0
while added < 5:
d += timedelta(days=1)
if d.weekday() < 5:
added += 1
return d
def prompt_str(label: str, validator=None) -> str: def prompt_str(label: str, validator=None) -> str: