calculate number of pieces on odt template

hi to all community , i fall in love with dolibar !

I’m not able to develop php template so i decide to prepare my custom template using odt files , and i’m absolutly happy , i need only one thing more :

how can calculate the total PIECES in of a document ? i dont’ find the tag or i have to calculate it ? if scond option , how i should do it ?

i insert in the module in attach a filed : {object_id} but look like to calculate onl the number of pieces of one page at time … tha’t is ot good for me
thank’s in advance for the help !

Gianmario from Venice

Pièces jointes :

Hi Gianmario,

I’m not sure but,
from a first look to the documentation of Dolibarr (https://wiki.dolibarr.org/index.php/Create_an_ODT_document_template) is not present a tag of a sum of {line_qty}.
I think you must make a calculation in a new .lib.php as explained into a guide,

Is interesting know if you want a sum of {line_qty} or a sum of rows on a bill.

ciao
Frederic from Foggia

1 Like

Thank you Frederic !

i need the total sum of single {line_qty} of every row , do u have some suggest for me ?

any suggest ?

Hello there,

I am looking for the same feature for odt invoice as well,

Did you manage to find the “Total quantity” feature?

I’m currently doing it manually by pressing calculator, any suggestion?