Print Format HTML <th></th>

Good Day

I need help with the following:

th style=“font-size:12px;width:10%”>{{_(“Barcode Details”)}}</th

is a header in table in delivery note printing

Instead of only showing: “Barcode Details” if want “Barcode Details for 2 Pallets”

I tried this:

th style='font-size:12px;width:10%“>{{_('Barcode Details”)}} {{row.units}} {{row.packaging}}</th

Hope anyone can help.

Thank You

Albertus Geyser

@Albertus can you post your whole print format? This isn’t enough detail to debug.

Good Day

Thank You for Reply.

Hope This what you need:

<table style="line-height: 2em;width: 100%;" border="1" BORDERCOLOR="#D3D3D3" cellpadding="2" cellspacing="2">
  <thead>
        <tr>
             <th style="font-size:12px;width:3%">#</th>
			     <th style="font-size:12px;width:10%" >{{ _("Item Code") }}</th>
            <th style="font-size:12px;width:30%" >{{ _("Description") }}</th>
			   <th style="font-size:12px;width:10%">{{_("Order Bal")}}</th>
            <th style="font-size:12px;width:10%">{{_("Quantity")}}</th>
			 <th style="font-size:12px;width:10%">{{_("UOM")}}</th>
           
          
        </tr>
    </thead>
    <tbody>
        <tr>{%- for row in doc.items-%}
            <td style="font-size:12px;text-align:left">{{ row.idx }}</td>
			<td style="font-size:12px;text-align:left">{{ row.item_code}}</td>
            <td style="font-size:12px;text-align:left">{{ row.item_name}}</td>
				<td style="font-size:12px;text-align:left"> {{ row.get_formatted("qty3", doc) or ''}}</td>
  
			<td style="font-size:12px;text-align:left">{{ row.get_formatted("total_weight_of_boxes", doc) or ''}} </td>
			  <td style="font-size:12px;text-align:left">{{ row.uom}}</td>
			  
          
           
        </tr>{%- endfor -%}
    </tbody>
</table>

<table style="line-height: 2em;width: 100%;" border="1" BORDERCOLOR="#D3D3D3" cellpadding="2" cellspacing="2">
  <thead>
        <tr>
             
		
            <th style="font-size:12px;width:10%">{{_("Barcode Details")}}</th>
          
        </tr>
    </thead>
    <tbody>
        <tr>{%- for row in doc.items-%}
            
			    <td style="font-size:12px;text-align:left">{{ row.serial_kgs}}</td>
          
           
        </tr>{%- endfor -%}
    </tbody>
</table>

Try
{{_("Barcode Details for ")}} {{ row | length }} Pallets

Thank You for reply.

Barcode Details for (Static Text)

row.units (Quantity Field)
row.packaging (Packaging Field [example: Pallets])

Will your example still apply?

Thank You

Albertus