}
$transdate = "";
- foreach $key (sort keys(%{ $ref->{transdate} })) {
+ foreach $key (sort keys(%{ $ref->{ac_transdate} })) {
if ($key == 0) {
- $transdate = "$ref->{transdate}{$key}";
+ $transdate = "$ref->{ac_transdate}{$key}";
} else {
- $transdate .= "<br>$ref->{transdate}{$key}";
+ $transdate .= "<br>$ref->{ac_transdate}{$key}";
}
}
if ($previous_accno &&
($previous_accno eq $selected_accno) &&
($previous_tax_id ne $selected_tax_id)) {
- $lxdebug->message(0, "yeah");
my $item = $taxcharts{$selected_tax_id};
$selected_taxchart = "$item->{id}--$item->{rate}";
}
- if ($init) {
- $selected_accno = '';
- $selected_taxchart = $taxchart_init;
- }
+ $selected_accno = '' if ($init);
+ $selected_taxchart = $taxchart_init unless ($selected_taxchart ne "");
$accno = qq|<td>| .
NTI($cgi->popup_menu('-name' => "accno_$i",