Revision 3d728d80
Von Moritz Bunkus vor mehr als 15 Jahren hinzugefügt
bin/mozilla/gl.pl | ||
---|---|---|
845 | 845 |
$accno = qq|<td>| . |
846 | 846 |
NTI($cgi->popup_menu('-name' => "accno_$i", |
847 | 847 |
'-id' => "accno_$i", |
848 |
'-onChange' => "setTaxkey(this, $i)",
|
|
848 |
'-onChange' => "setTaxkey($i)", |
|
849 | 849 |
'-style' => 'width:200px', |
850 | 850 |
'-values' => \@chart_values, |
851 | 851 |
'-labels' => \%chart_labels, |
... | ... | |
990 | 990 |
|
991 | 991 |
$form->{javascript} = qq|<script type="text/javascript"> |
992 | 992 |
<!-- |
993 |
function setTaxkey(accno, row) { |
|
993 |
function setTaxkey(row) { |
|
994 |
var accno = document.getElementById('accno_' + row); |
|
994 | 995 |
var taxkey = accno.options[accno.selectedIndex].value; |
995 | 996 |
var reg = /--([0-9]*)/; |
996 | 997 |
var found = reg.exec(taxkey); |
... | ... | |
1291 | 1292 |
. qq|"> |; |
1292 | 1293 |
|
1293 | 1294 |
} else { |
1294 |
print qq|
|
|
1295 |
print qq| |
|
1295 | 1296 |
<input class=submit type=submit name=action id=update_button value="| . $locale->text('Update') . qq|"> |
1296 | 1297 |
<input class=submit type=submit name=action value="| . $locale->text('Post') . qq|">|; |
1298 |
print $form->parse_html_template('gl/form_footer_initial_taxkey_selection'); |
|
1297 | 1299 |
} |
1298 | 1300 |
|
1299 | 1301 |
print " |
templates/webpages/gl/form_footer_initial_taxkey_selection_de.html | ||
---|---|---|
1 |
<script type="text/javascript"> |
|
2 |
<!-- |
|
3 |
$(document).ready(function() { |
|
4 |
setTaxkey(1); |
|
5 |
setTaxkey(2); |
|
6 |
}); |
|
7 |
--> |
|
8 |
</script> |
templates/webpages/gl/form_footer_initial_taxkey_selection_master.html | ||
---|---|---|
1 |
<script type="text/javascript"> |
|
2 |
<!-- |
|
3 |
$(document).ready(function() { |
|
4 |
setTaxkey(1); |
|
5 |
setTaxkey(2); |
|
6 |
}); |
|
7 |
--> |
|
8 |
</script> |
Auch abrufbar als: Unified diff
Beim Aufrufen der Dialogbuchenmaske automatisch die richtigen Steuersätze für die vorausgewählten Konten auswählen.
Fix für Bug 960.