Skip to content
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

FIX Update stockatdate.php #26481

Merged
merged 1 commit into from
Nov 7, 2023

Conversation

josett225
Copy link
Contributor

As commented in #23782 this second FIX update is to clean and clarify the code for future evolution of stockatdate.
In fact the calculated value in the SQL request is the current stock value and not the estimated stock value at date value. Therefore I changed in the SQL request the estimatedvalue to currentvalue and reused it later in the code as a variable for a better understanding and for future use (other PRs) as it will be interesting to get a comparison between stockatdate value to currentstock value. Also some others changes are required to improve the page speed.

As commented in Dolibarr#23782 this update is to clean and clarify the code for future evolution of stocktodate.
In fact the calculated value in the SQL request is the current stock value and not the estimated stock value at date value.
Therefore I changed in SQL request the estimatedvalue to currentvalue and reused as a variable for a better understanding and for future use (other PR) as it will be interesting to get a comparison between stockatdate value to currentstock value. Also some others changes are required to improve the page speed.
@eldy eldy merged commit 8acc472 into Dolibarr:develop Nov 7, 2023
1 check passed
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