Barcode in long description

Hello,

I am new to dolibarr and trying to implement dolibarr for our company.

We need barcodes for each product on our invoices to customers which change with each invoice.
Meaning we add a product to the invoice and enter the digits for the barcode manually. That is why we cannot use the fixed barcode in item details.

I tried to enter the following code in the long description which would generate a barcode in browser:

"<link href=‘https://fonts.googleapis.com/css?family=Libre Barcode 39’ rel=‘stylesheet’>
<style>
body {
font-family: ‘Libre Barcode 39’;font-size: 22px;
}
</style>
</head>
<body>
<p>123456790</p>
"

We would replace “123456790” with the barcode content with each invoice.

I get the following error message:
Access refused by SQL/Script injection protection in main.inc.php (type=0 key=product_desc value=<link href=‘https://fonts.googleapis.com/css?family=Libre Barcode 39’ rel=‘stylesheet’> <style> body { font-family: ‘Libre Barcode 39’;font-size: 22px; } </style> </head> <body> <p>123456790</p> page=/htdocs/compta/facture/card.php?id=38)

I didn´t expect it to work but I hope it might with your help.

Thank you
Jan

Hello

PR1007-00011.pdf (318 KB)
is it the kind of documents you need ?
you can make it with ultimatepdf.

Philippe

Hi Phlippe,

thanks. Yes that is what I need. Is it possible to enter these codes manually while creating the invoice?
The problem is we need to enter a different barcode by hand each time. So we can´t use the fixed barcode you can enter in the product details. Doing that would mean to amend the item detail page every time before creating a new invoice what is laborious with 10-30 items on each invoice.

Jan

For better understanding: It is like a serial number which is different for each item and that serial no. must show as barcode for our customer. I thought I could enter that in the long description somehow. Would be the easiest way.

I have a similar situation working with Dolicloud, and I think you would probably need to use EAN-128. I found this (https://ashberg.de/php-barcode/download/#genbarcode) and now I’m trying to find how to install and get this genbarcode working with EAN-128. Any help with this from someone???

It will be also needed a graphic motor for EAN-128 generation purposes, but that can be solved outside Dolicloud I think.