Invoice Tags

Hi Everybody,

I’m excited about the Dolibarr-System (using v. 3.3.2) and would like to use it in Germany.
I’m trying to setup a german invoice as described in here: http://wiki.dolibarr.org/index.php/Create_an_ODT_document_template.

But I’m struggling at one point:

When using the tag {object_total_ht} for displaying the subtotal nothing is shown. Does anyone have a solution on this? Maybe it’s the wrong tag?
The same with the tag {object_vatrate_total}…

Any help is appreciated!

Hi,

i am trying to develop a german invoice too (Version 3.4.0).

Same problem as you, {object_total_ht} shows 0,00. :angry:

But {object_total_vat} instead of {object_vatrate_total} worked fine for me. :happy:
It seems that the tagss have been changed…

This is a bug in the 3.4.0 to fix it do the following

Open the file commondocgenerator.class.php will find htdocs\core\class

Will go to line 248 and you will find the following code

$array_key.'_total_ht'=>price($object->total_ht2),

Replace it with the below

$array_key.'_total_ht'=>price($object->total_ht),

Logic will get the correct results after the break.

hmm i was half an hour to late, i found the same.
After correction of
/usr/share/dolibarr/htdocs/core/class/commondodocgenerator.class.php
it worked fine for me.

I think we can close this topic.
:laugh: