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

WAIT : FIX : v20 pdf space lost with images eratosthene #31298

Conversation

thersane-john
Copy link
Contributor

@thersane-john thersane-john commented Oct 7, 2024

Need PR #31273 to be merged before

FIX pdf space lost with images on eratosthene PDF

like #31273

eldy and others added 7 commits September 30, 2024 18:26
…#31268)

* Use <= 0 instead of ! because delete method returns -1 or 1

* Added contact

* Removed user from parameters
…arr#31285)

* Fix: Number of decimals for stock values ignores configuration

In the select filed for adding a new line for a proposal/invoice/... product as a line, the stock level is always printed with exactly two decimals.

The number of decimals should be controlled by the existing global variable MAIN_MAX_DECIMALS_STOCK, but it is not taken into account:

Building the stock level with the function price from the function price2num, which uses the configured number of decimals always lead to exactly two decimals.

* Fixed patch according to suggestion.
@eldy
Copy link
Member

eldy commented Oct 7, 2024

This seems to fix for some case but generate trouble on other.
Imagine the line that generate a break page with old code so output on second page and that, with new code, can be output on the first page. If this line is the last one of the proposal, then no break will be done.
But because ti is the last page, then the signature and the section for total is output. In such a case, this section overwrite the last line.
This is why the test to know if there is enough room was done using
($heightforfooter + $heightforfreetext + $heightforsignature + $heightforinfotot)

Do yo understand what i mean. Did you test this particular case ?

@eldy eldy added the Discussion Some questions or discussions are opened and wait answers of author or other people to be processed label Oct 7, 2024
@thersane-john thersane-john changed the title FIX : v20 pdf space lost with images eratosthene WAIT : FIX : v20 pdf space lost with images eratosthene Oct 8, 2024
@thersane-john thersane-john marked this pull request as draft October 8, 2024 09:51
@thersane-john
Copy link
Contributor Author

I close this one i will open a new PR based on #31273

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Discussion Some questions or discussions are opened and wait answers of author or other people to be processed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants