How do I add the discounted unit price without VAT in ODT template?

Hello, I’m working on customizing the ODT template, but I couldn’t find any appropriate tag in the Wiki. I need to display the unit price without VAT after discount. If there is a way to do this, please let me know.

Thanks

This post seems very similar to what I want to do. But no answer for the last reply.

Solved.

This may not be a beautiful way, but when I added

'line_up_discounted_locale'=>price($line->subprice * (1 - ($line->remise_percent / 100)), 0, $outputlangs),

into htdocs > core > class > commondocgenerator.class.php, it works!

If you have any better solutions, please tell me.
Thanks

2 Likes

Hello,

Good solution, but will be erased at each DOlibarr update.
If you want to keep your changes, move the code to a personal module!

1 Like

Hello everyone, is there a permanent solution to this issue until version 19+?

Hello,

Or propose a Core evolution.