Layout: title Ausgabe normalisieren
[kivitendo-erp.git] / templates / webpages / dbupgrade / erzeugnisnummern.html
1 [%- USE T8 %]
2 [% USE HTML %][%- USE LxERP -%]
3 <h1>[% 'Double partnumbers' | $T8 %]</h1>
4
5 <script type="text/javascript">
6 <!--
7 function show_parts(vc) {
8   var width = 750;
9   var height = 550;
10   var parm = centerParms(width, height) + ",width=" + width + ",height=" + height + ",status=yes,scrollbars=yes";
11   url = "controller.pl?action=LoginScreen/login&upgrade_action=filter_parts&no_layout=1"
12   //alert(url);
13   window.open(url, "_new_generic", parm);
14 }
15 //-->
16 </script>
17
18 <form name="Form" method="post" action="login.pl">
19 <input type="hidden" name="action" value="login">
20 <input type="hidden" name="continued" value="1">
21
22 <p>[% 'There are double partnumbers in your database.' | $T8 %]</p>
23 <p>[% 'From this version on the partnumber of services, articles and assemblies have to be unique.' | $T8 %]</p>
24 <p>[% 'So far you could use one partnumber for severel parts, for example a service and an article.' | $T8 %]</p>
25 <p>[% 'Because the useability gets worse if one partnumber is used for several parts (for example if you are searching a position for an invoice), partnumbers should be unique.' | $T8 %]</p>
26
27 <p>[% 'Please change the partnumber of the following parts and run the update again:' | $T8 %]</p>
28 <table>
29   <tr>
30     <th class="listheading">[% 'Partnumber' | $T8 %]</th>
31     <th class="listheading">[% 'Description' | $T8 %]</th>
32     <th class="listheading">[% 'Unit' | $T8 %]</th>
33     <th class="listheading">[% 'Notes' | $T8 %]</th>
34     <th class="listheading">[% 'EAN' | $T8 %]</th>
35     <th class="listheading">[% 'Service, assembly or part' | $T8 %]</th>
36     <th class="listheading">[% 'Obsolete' | $T8 %]</th>
37   </tr>
38
39   [% SET row_odd = '1' %][% FOREACH row = PARTS %]
40   <tr class="listrow[% IF row_odd %]1[% SET row_odd = '0' %][% ELSE %]0[% SET row_odd = '1' %][% END %]">
41     <td align="right"><input name='partnumber_[% loop.count %]' value='[% HTML.escape(row.partnumber) %]'></td>
42     <input type="hidden" name='partid_[% loop.count %]' value='[% HTML.escape(row.id) %]'>
43     <td align="left"> [% HTML.escape(row.description) %]</a></td>
44     <td align="right">[% HTML.escape(row.unit) %]</td>
45     <td align="right">[% HTML.escape(row.notes) %]</td>
46     <td align="right">[% HTML.escape(row.ean) %]</td>
47     <td align="right">[% IF row.assembly %] [% 'assembly' | $T8 %] [% ELSE %] [% IF row.inventory_accno_id %] [% 'part' | $T8 %] [% ELSE %] [% 'service' | $T8 %] [% END %] [% END %]</td>
48     <td>[% IF row.obsolete %][%- LxERP.t8("Obsolete") %][%- ELSE %][%- LxERP.t8("Not obsolete") %][%- END %]</td>
49   </tr>
50   [% SET rowcount = loop.count %]
51   [% END %]
52   <input type="hidden" name="rowcount" value="[% rowcount %]">
53 </table>
54
55 <input type="button" value="[% 'Show all parts' | $T8 %]" onclick="show_parts('customer')">
56 <br>
57 <br>
58 <input type="submit" value="[% 'Continue' | $T8 %]">
59
60 </form>