Skip to content

Fixed default value of date fields in forms#61

Open
johnyu95 wants to merge 1 commit intomasterfrom
johnyu95-date-field-default-value-fix
Open

Fixed default value of date fields in forms#61
johnyu95 wants to merge 1 commit intomasterfrom
johnyu95-date-field-default-value-fix

Conversation

@johnyu95
Copy link
Copy Markdown
Contributor

This PR fixes the default value of date fields in forms.

Previously setting default=datetime.today() would only be set once when the application starts. Fixed by changing the value to a callable so that it gets called every time the form is initialized.

Fixed a bug when generating invoices if the pay rate doesn't cover the start date of the All History filter.

@johnyu95 johnyu95 requested a review from zgary June 23, 2023 20:30
Copy link
Copy Markdown
Contributor

@zgary zgary left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants