$deliverydate = $locale->text('Required by');
# special alignings
- my %align = map { $_ => 'right' } qw(qty ship right sellprice_pg discount linetotal);
+ my %align = map { $_ => 'right' } qw(qty ship right sellprice_pg discount linetotal);
+ my %nowrap = map { $_ => 1 } qw(description unit);
$form->{marge_total} = 0;
$form->{sellprice_total} = 0;
$column_data{linetotal} = $form->format_amount(\%myconfig, $linetotal, 2);
$column_data{bin} = $form->{"bin_$i"};
- my @ROW1 = map { value => $column_data{$_}, align => $align{$_} }, @column_index;
+ my @ROW1 = map { value => $column_data{$_}, align => $align{$_}, nowrap => $nowrap{$_} }, @column_index;
# second row
my @ROW2 = ();
[% FOREACH row = ROWS %]
<tr valign="top" class="listrow[% loop.count % 2 %]">[% FOREACH row1 = row.ROW1 %]
- <td align="[% row1.align %]">[% row1.value %]</td>[% END %]
+ <td align="[% row1.align %]"[% IF row1.nowrap %] nowrap[% END %]>[% row1.value %]</td>[% END %]
</tr>
[% FOREACH hidden = row.HIDDENS %][% hidden.value %]
[% FOREACH row = ROWS %]
<tr valign="top" class="listrow[% loop.count % 2 %]">[% FOREACH row1 = row.ROW1 %]
- <td align="[% row1.align %]">[% row1.value %]</td>[% END %]
+ <td align="[% row1.align %]"[% IF row1.nowrap %] nowrap[% END %]>[% row1.value %]</td>[% END %]
</tr>
[% FOREACH hidden = row.HIDDENS %][% hidden.value %]