-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
End of month incorrect (clone salary) #31798
Comments
Hi @mdeweerd
|
@sonikf I would not produce an error, but show a good end date even if the start date is empty. As we are cloning another payment, my expectations would be:
|
@mdeweerd
|
@sonikf Nice - The new links work, the computation of the end date is good. |
You mean Start date auto filled? |
Yes. If the cloned record has an end date. |
@mdeweerd
|
Thank you. - we'll see the full functionnality in 21.0. I had a look at the code and wanted to point out that adding 86400 seconds is not the best way to add one day - because of the summer and winter time changes that could sometimes mean 2 days and 0 days. Anyway, I tested the code as is and the start date was filled in as expected for this month. |
I' ll look into it.. At your service |
Bug
Detected in 19.0.2, but still valid in online demo (20.0.1).
I cloned the latest salary entry, chose to update the "END DATE" with the proposed link, and I get 1998:
https://demo.dolibarr.org/salaries/card.php?action=clone&token=9a96d666924ec0e685d205c00fddfbc4&id=182
Dolibarr Version
demo.dolibarr.org
Environment PHP
No response
Environment Database
No response
Steps to reproduce the behavior and expected behavior
No response
Attached files
No response
The text was updated successfully, but these errors were encountered: