'dunning_duedate' => { 'text' => $locale->text('Dunning Duedate') },
'fee' => { 'text' => $locale->text('Total Fees') },
'interest' => { 'text' => $locale->text('Interest') },
+ 'salesman' => { 'text' => $locale->text('Salesperson'), 'visible' => $form->{l_salesman} ? 1 : 0 },
);
- if ($form->{l_salesman}) {
- # Show salesman column
- $column_defs{'salesman'} = ( { 'text' => $locale->text('Salesperson') } );
- }
-
$report->set_columns(%column_defs);
$report->set_column_order(qw(checkbox dunning_description customername invnumber transdate
duedate amount dunning_date dunning_duedate fee interest salesman));
<tr>
<th align="right" nowrap><translate>Show old dunnings</translate></th>
<td><input type="checkbox" value="1" name="showold"></td>
+ <th align="right" nowrap><translate>Show Salesman</translate></th>
+ <td><input type="checkbox" value="1" name="l_salesman"></td>
</tr>
</table>
</td>