Serial number in shipment notice/invoice

Hello,
unfortunately I cannot find this item in the help or in this forum:
I have enabled the lot/serial number handling in dolibarr.
When I create a shipment, I can select the items with teh corresponding serial numbers.
How can I print the selected serial numbers on the shipment notice or the invoice?
It should be in the detailed section and look like this:
2x itemA (Aserial1, Aserial2)
1x itemB (Bserial1)

Thanks in advance for your support!

bye,
Thomas

Hi Thomas,

Serials numbers are printed on the shipment doc, not the invoice.

Zog

Thanks for the fast reply.
If I use the standard template for shipment doc, then the serial appears. That is correct.
But I want the serial to appear on both shipment doc and invoice (creating an own template).

If I create a template (ODT) I have no field to choose for the serial number, if I follow the guide from:
https://wiki.dolibarr.org/index.php/Create_an_ODT_document_template

Obviously it is possible to use the serial number, but how can I add serial number on both shipment doc and invoice in a ODT template?
What field name do I have to use?

thanks and bye,
Thomas

Hi Thomas,

I’m chasing the same goal… Not achieved yet.

ZOG

Hi,

Not possible on ODT.
YOu should move to php/PDF template

1 Like

Hi,

I remember seeing an work-around to create an extra field Slno in Complementary attributes (lines) and map it to your PDF.

thanks
yesbee

Hi …

is this issue solved, or not yet ??

im having the same issue

Hi,

Check Version 15.0.1 or 15.0.2

./htdocs/core/class/commondocgenerator.class.php:774: ‘line_pos’ => $linenumber,
./ChangeLog:1623:NEW: Support of tag {line_pos} for line numbers for tables in ODT templates

So, try using {line_pos} in your ODT.

thanks,
yesbee