projects
/
kivitendo-erp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Brieffunktion: Werte in Entwurfsliste richtig formatieren
[kivitendo-erp.git]
/
templates
/
webpages
/
gl
/
form_header.html
diff --git
a/templates/webpages/gl/form_header.html
b/templates/webpages/gl/form_header.html
index
ec17569
..
e349761
100644
(file)
--- a/
templates/webpages/gl/form_header.html
+++ b/
templates/webpages/gl/form_header.html
@@
-2,24
+2,23
@@
[%- USE LxERP %]
[%- USE T8 %]
[%- USE L %]
[%- USE LxERP %]
[%- USE T8 %]
[%- USE L %]
+<h1>[% title | html %]</h1>
+
<script type="text/javascript">
<!--
function updateTaxes(row)
{
var accno = document.getElementById('accno_' + row);
var taxkey = accno.options[accno.selectedIndex].value;
<script type="text/javascript">
<!--
function updateTaxes(row)
{
var accno = document.getElementById('accno_' + row);
var taxkey = accno.options[accno.selectedIndex].value;
- var reg = /
--([0-9]*)
/;
+ var reg = /
^(.*?)--(\d*)$
/;
var found = reg.exec(taxkey);
var found = reg.exec(taxkey);
- var index = found[1];
- index = parseInt(index);
- var tax = 'taxchart_' + row;
- var taxkeyposition = taxkey.lastIndexOf(found[0]);
- var account = taxkey.substr(0, taxkeyposition);
+ var account = found[1];
+ var default_tax_id = found[2];
$.ajax({
url: 'gl.pl?action=get_tax_dropdown',
data: { accno: account,
$.ajax({
url: 'gl.pl?action=get_tax_dropdown',
data: { accno: account,
- selected_
index: index
},
+ selected_
tax_id: default_tax_id
},
dataType: 'html',
success: function (new_html) {
$("#taxchart_" + row).html(new_html);
dataType: 'html',
success: function (new_html) {
$("#taxchart_" + row).html(new_html);
@@
-50,9
+49,6
@@
function updateTaxes(row)
<input type="hidden" name="follow_up_rowcount" value="1">
<table width=100%>
<input type="hidden" name="follow_up_rowcount" value="1">
<table width=100%>
- <tr>
- <th class=listtop>[% title | html %]</th>
- </tr>
[%- IF saved_message %]
<tr>
<td>[% saved_message | html %]</th>
[%- IF saved_message %]
<tr>
<td>[% saved_message | html %]</th>