Lieferscheine im Einkauf und Verkauf. Bisher nur gemerget, noch nicht getestet.
[kivitendo-erp.git] / templates / webpages / do / stock_out_form_de.html
1 [% USE HTML %][% USE LxERP %]<body>
2
3  [%- IF closed %]
4  [%- SET RO = ' readonly' %]
5  [%- END %]
6
7  <style type="text/css">
8   .tr_error {
9     background-color: #ffc9c9;
10   }
11  </style>
12
13  <form method="post" action="do.pl" name="Form">
14
15   <div class="listtop">[% title %]</div>
16
17   [%- IF ERRORS && ERRORS.size %]
18   <p><font color="#ff0000">[% ERRORS.join('<br>') %]</font></p>
19   [%- END %]
20
21   <p>
22    <table>
23     <tr>
24      <td>Artikelnummer</td>
25      <td>[% HTML.escape(PART_INFO.partnumber) %]</td>
26     </tr>
27     <tr>
28      <td>Beschreibung</td>
29      <td>[% HTML.escape(PART_INFO.description) %]</td>
30     </tr>
31     <tr>
32      <td>Menge laut Lieferschein</td>
33      <td>[% HTML.escape(do_qty) %] [% HTML.escape(do_unit) %]</td>
34     </tr>
35    </table>
36   </p>
37
38   [%- UNLESS WHCONTENTS.size %]
39   <p>Dieser Artikel ist nicht eingelagert.</p>
40
41   <p><button type="button" onclick="window.close()">Übernehmen</button></p>
42
43   [%- ELSE %]
44
45   <input type="hidden" name="nextsub"  value="set_stock_out">
46   <input type="hidden" name="rowcount" value="[% HTML.escape(WHCONTENTS.size) %]">
47   <input type="hidden" name="in_out"   value="out">
48   <input type="hidden" name="parts_id" value="[% HTML.escape(parts_id) %]">
49   <input type="hidden" name="partunit" value="[% HTML.escape(PART_INFO.unit) %]">
50   <input type="hidden" name="do_qty"   value="[% HTML.escape(do_qty) %]">
51   <input type="hidden" name="do_unit"  value="[% HTML.escape(do_unit) %]">
52   <input type="hidden" name="row"      value="[% HTML.escape(row) %]">
53   <input type="hidden" name="closed"   value="[% HTML.escape(closed) %]">
54
55   <p>
56    <table>
57     <tr class="listheading">
58      <th class="listheading">&nbsp;</th>
59      <th class="listheading">Lager</th>
60      <th class="listheading">Lagerplatz</th>
61      <th class="listheading">Chargennummer</th>
62      [%- UNLESS closed %]
63      <th align="right" class="listheading">Lagerbestand</th>
64      [%- END %]
65      <th align="right" class="listheading">Menge</th>
66      <th align="right" class="listheading">Einheit</th>
67     </tr>
68
69     [%- FOREACH row = WHCONTENTS %]
70     <tr [% IF row.stock_error %] class="tr_error"[% ELSE %]class="listrow[% loop.count % 2 %]"[% END %]>
71      <td>[% loop.count %]</td>
72      <td>[% HTML.escape(row.warehousedescription) %]</td>
73      <td>[% HTML.escape(row.bindescription) %]</td>
74      <td>[% HTML.escape(row.chargenumber) %]</td>
75
76      [%- IF closed %]
77
78      <td>[% HTML.escape(LxERP.format_amount(row.stock_qty)) %]</td>
79      <td>[% HTML.escape(row.stock_unit) %]</td>
80
81      [%- ELSE %]
82
83      <td>[% HTML.escape(row.available_qty) %]</td>
84      <td><input name="qty_[% loop.count %]" style="text-align: right;" size="12"
85                 value="[% IF row.stock_qty %][% HTML.escape(LxERP.format_amount(row.stock_qty)) %][% END %]"></td>
86      <td>
87       <select name="unit_[% loop.count %]">
88        [%- FOREACH unit = UNITS %]
89        <option[% IF unit.name == row.stock_unit %] selected[% END %]>[% HTML.escape(unit.name) %]</option>
90        [%- END %]
91       </select>
92      </td>
93
94      [%- END %]
95     </tr>
96
97     <input type="hidden" name="warehouse_id_[% loop.count %]" value="[% HTML.escape(row.warehouse_id) %]">
98     <input type="hidden" name="bin_id_[% loop.count %]"       value="[% HTML.escape(row.bin_id) %]">
99     <input type="hidden" name="chargenumber_[% loop.count %]" value="[% HTML.escape(row.chargenumber) %]">
100     [%- END %]
101    </table>
102   </p>
103
104   <hr size="3" noshade>
105
106   <p>
107    [%- IF closed %]
108    <button type="button" class="submit" name="action" onclick="window.close()">Fenster Schlie&szlig;en</button>
109    [%- ELSE %]
110    <input class="submit" type="submit" name="action" value="Weiter">
111    [%- END %]
112   </p>
113
114   [%- END %]
115  </form>
116
117 </body>
118 </html>
119