[% 'Basic Data' | $T8 %]
+[%- IF INSTANCE_CONF.get_webdav %]
+ [% 'WebDAV' | $T8 %]
+[%- END %]
[%- IF id %]
[%- IF AUTH.assert('record_links', 1) %]
[% 'Linked Records' | $T8 %]
@@ -102,9 +82,9 @@
[% 'Vendor' | $T8 %]
[% IF ( selectvendor ) %]
- [% selectvendor %]
+ [% selectvendor %]
[% ELSE %]
-
+
[% END %]
@@ -146,12 +126,10 @@
- [% IF ( selectdepartment ) %]
+ [% IF ALL_DEPARTMENTS %]
[% 'Department' | $T8 %]
-
- [% selectdepartment %]
-
+ [% L.select_tag('department_id', ALL_DEPARTMENTS, default = department_id, title_key = 'description', with_empty = 1) %]
[% END %]
@@ -187,7 +165,7 @@
[% 'Project Number' | $T8 %]
- [% L.select_tag('globalproject_id', ALL_PROJECTS, with_empty = 1, default = globalproject_id, value_key = 'id', title_key = 'projectnumber') %]
+ [% L.select_tag('globalproject_id', ALL_PROJECTS, with_empty = 1, default = globalproject_id, value_key = 'id', title_key = 'projectnumber', onChange = "document.getElementById('update_button').click();") %]
@@ -211,10 +189,9 @@
[% FOREACH i IN [1..rowcount] %]
- [% selected_accno_full = "selected_accno_full_"_ i %]
- [% L.select_tag('AP_amount_'_ i, ALL_CHARTS_AP_amount, value_title_sub = \AP_amount_value_title_sub, onchange = 'setTaxkey(this, '_ i _')', default = $selected_accno_full) %]
-
-
+ [% SET selected_chart_id = "AP_amount_chart_id_"_ i %]
+ [% P.chart_picker("AP_amount_chart_id_" _ i, $selected_chart_id, style="width: 400px", type="AP_amount", class=(initial_focus == 'row_' _ i ? "initial_focus" : "")) %]
+ [% L.hidden_tag("previous_AP_amount_chart_id_" _ i, $selected_chart_id) %]
@@ -225,7 +202,8 @@
[% temp = 'selected_taxchart_'_ i %]
- [% L.select_tag('taxchart_'_ i, ALL_TAXCHARTS, value_title_sub = \taxchart_value_title_sub, default = $temp) %]
+ [% taxcharts = 'taxcharts_' _ i %]
+ [% L.select_tag('taxchart_'_ i, $taxcharts, value_title_sub = \taxchart_value_title_sub, default = $temp, style="width: 250px") %]
[% temp = "project_id_"_ i %]
@@ -241,7 +219,7 @@
- [% L.select_tag('APselected', ALL_CHARTS_AP, value_title_sub = \APselected_value_title_sub, default = APselected) %]
+ [% P.chart_picker('AP_chart_id', AP_chart_id, style="width: 400px", type="AP") %]
[% invtotal | html %]
@@ -393,8 +371,14 @@