Widen Discount Column

Can anybody help on how to make the discount column wider so it can handle 0.0000% format?

I cannot get the exact price if I do not use an exact % amount and the PDF makes it hard to read

discount-column.png

even xx.xx% throws on the next line…but it is the only way for me to match the supplier prices :unhappy:

anyone? :unsure:

Looks you are using the pdf templates, so you would need to change file htdocs/core/modules/propale/doc/pdf_azur.modules.php

(Left) position is set in line 120: $this->posxdiscount=162;

So you would need to ammend i.e position of following column, postotalht (in line 121) to a higher value than the default 174.
You will need to carefully check which values fit your needs so you dont have line breaks in other columns…
All of these are set in lines 105 to 138 in azure model

1 Like

Thanks for the explanation. I tried it on the supplier order and I can’t get it to work as the columns go wider/narrower randomly. I’ve tried to look into how they work it out but none of it makes sense.

Would you recommend me trying ODT templates to create my own version? Would that be more effective and easier? Do they still allow us to generate pdfs like normal or would they generate odts?

Your advice would be appreciated.

So we are talking aboud muscadet model I assume?

Have you tried to change only line 108 (Original: $this->postotalht=174;) to i.e.
$this->postotalht=177;

Should give you three more characters for discount- and 3 less characters for total price.

ODT templates should be easier to ammend, but I never worked with these.
PDFs are more flexible but hard to get working correctly - I know it hurts as a non programmer ;(

There are ODT files created but it is somehow possible to automatically convert these - if you have root access to the server and can install some software. Read this somewhere, but never tried, I need PDFs…

1 Like

Thank you for the explanation. I was able to understand it better and applied it to the Mucadet/typhoon and all other pdf models where the discount/or end columns were messed up. It’s so tricky, don’t understand why in 2016 there is till no easier way for pdf generation.

I need pdfs too… don’t know any business in the UK which uses ODTs to send to customers.