Use 5 calendar days for invoice due date
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -77,13 +77,7 @@ class InvoiceInputs:
|
||||
|
||||
@property
|
||||
def due_date(self) -> date:
|
||||
d = self.issue_date
|
||||
added = 0
|
||||
while added < 5:
|
||||
d += timedelta(days=1)
|
||||
if d.weekday() < 5:
|
||||
added += 1
|
||||
return d
|
||||
return self.issue_date + timedelta(days=5)
|
||||
|
||||
|
||||
def prompt_str(label: str, validator=None) -> str:
|
||||
|
||||
Reference in New Issue
Block a user