$invoice |
|;
$column_data{name} = qq|$vclabel | |;
$column_data{invnumber} = qq||.$locale->text('Invoice')." | ";
$column_data{transdate} = qq||.$locale->text('Date')." | ";
$column_data{amount} = qq||.$locale->text('Amount')." | ";
$column_data{due} = qq||.$locale->text('Amount Due')." | ";
$column_data{paid} = qq||.$locale->text('Amount')." | ";
$column_data{checked} = qq||.$locale->text('Select')." | ";
$column_data{memo} = qq||.$locale->text('Memo')." | ";
$column_data{source} = qq||.$locale->text('Source')." | ";
$column_data{language} = qq||.$locale->text('Language')." | ";
print qq|
|;
for (@column_index) { print "$column_data{$_}\n" }
print qq|
|;
$form->{selectlanguage} = $form->unescape($form->{selectlanguage});
for $i (1 .. $form->{rowcount}) {
for (qw(amount due paid)) { $form->{"${_}_$i"} = $form->parse_amount(\%myconfig, $form->{"${_}_$i"}) }
$totalamount += $form->{"amount_$i"};
$totaldue += $form->{"due_$i"};
$totalpaid += $form->{"paid_$i"};
for (qw(amount due paid)) { $form->{"${_}_$i"} = $form->format_amount(\%myconfig, $form->{"${_}_$i"}, 2) }
$column_data{invnumber} = qq|$form->{"invnumber_$i"} |
{"id_$i"}>|;
$column_data{transdate} = qq|$form->{"transdate_$i"} |
{"transdate_$i"}>|;
$column_data{amount} = qq|$form->{"amount_$i"} |
{"amount_$i"}>|;
$column_data{due} = qq|$form->{"due_$i"} |
{"due_$i"}>|;
$column_data{paid} = qq|{"paid_$i"}> | |;
if ($same_id eq $form->{"$form->{vc}_id_$i"}) {
for (qw(name memo source language)) { $column_data{$_} = qq| | | }
} else {
$column_data{name} = qq|$form->{"name_$i"} | |;
$column_data{memo} = qq| | |;
$column_data{source} = qq| | |;
if ($form->{selectlanguage}) {
$selectlanguage = $form->{selectlanguage};
$selectlanguage =~ s/(
|