Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision f556cdf5

Von Bernd Bleßmann vor 10 Monaten hinzugefügt

  • ID f556cdf5cc970b9c8ba51c9e2d60ce02e7a5fc97
  • Vorgänger e4723665
  • Nachfolger f152df77

Erzeugnis fertigen: design40: Auswahlmaske : Kopie des "alten" Templates

Unterschiede anzeigen:

templates/design40_webpages/wh/create_assembly_chargenumbers.html
1
[%- USE P -%]
2
[%- USE T8 %]
3
[%- USE HTML %]
4
[%- USE LxERP %]
5

  
6
<h1>[% HTML.escape(title) %]</h1>
7

  
8
[%- INCLUDE 'common/flash.html' %]
9

  
10
<p>
11
  [% 'Some of the following assembly items are ambigious. Please check the selection.' | $T8 %]
12
</p>
13

  
14
<form name="Form" method="post" action="wh.pl" id="form">
15
  [%
16
    FOREACH key = hidden_vars.keys;
17
      P.hidden_tag(key, HTML.escape(hidden_vars.$key));
18
    END
19
  %]
20

  
21
  <table>
22
    <thead>
23
      <tr class="listheading">
24
        <th>[% 'Partnumber'   | $T8%]</th>
25
        <th>[% 'Description'  | $T8%]</th>
26
        <th>[% 'Chargenumber' | $T8%]</th>
27
        <th>[% 'Warehouse'    | $T8%]</th>
28
        <th>[% 'Bin'          | $T8%]</th>
29
        <th>[% 'Onhand'       | $T8%]</th>
30
        <th>[% 'Qty'          | $T8%]</th>
31
        <th>[% 'Unit'         | $T8%]</th>
32
      </tr>
33
    </thead>
34
    <tbody>
35
      [% FOREACH part_id = stocked_by_parts_id.keys.sort -%]
36
        <tr class="listheading">
37
          <td colspan="6">[% 'needed qty' | $T8 %]</td>
38
          <td class="numeric">[% LxERP.format_amount(needed_by_parts_id.$part_id, -2) %]</td>
39
          <td>[% stocked_by_parts_id.$part_id.0.part.unit | html %]</td>
40
        </tr>
41
        [% FOREACH part = stocked_by_parts_id.$part_id -%]
42
          <tr class="listrow">
43
            [% SET alloc_qty = '';
44
               FOREACH alloc = allocated_by_parts_id.$part_id;
45
                 IF (alloc.warehouse_id == part.warehouse.id && alloc.bin_id == part.bin_id && HTML.escape(alloc.chargenumber) == HTML.escape(part.chargenumber));
46
                   SET alloc_qty = alloc.qty;
47
                 END;
48
               END
49
            -%]
50
            <td>
51
              [% P.hidden_tag('allocations[+].parts_id', part_id )%]
52
              [% P.hidden_tag('allocations[].chargenumber', part.chargenumber )%]
53
              [% P.hidden_tag('allocations[].warehouse_id', part.warehouse_id )%]
54
              [% P.hidden_tag('allocations[].bin_id', part.bin_id )%]
55
              [% part.part.partnumber | html %]
56
            </td>
57
            <td>[% part.part.description      | html                 %]</td>
58
            <td>[% part.chargenumber          | html                 %]</td>
59
            <td>[% part.warehouse.description | html                 %]</td>
60
            <td>[% part.bin.description       | html                 %]</td>
61
            <td class="numeric">[% LxERP.format_amount(part.qty, -2) %]</td>
62
            <td>
63
              [% SET readonly = 0 -%]
64
              [% IF stocked_by_parts_id.$part_id.size == 1 -%]
65
                [% SET readonly = 1 -%]
66
                [% P.hidden_tag('allocations[].qty', LxERP.format_amount(alloc_qty, -2)) %]
67
              [% END -%]
68
              [% P.input_number_tag('allocations[].qty', alloc_qty, precision => -2, size => 8, disabled => readonly) %]
69
            </td>
70
            <td>[% part.part.unit             | html                 %]</td>
71
          </tr>
72
        [% END %]
73
        <tr></tr>
74
        <tr></tr>
75
      [% END %]
76
    </tbody>
77
  </table>
78

  
79
</form>

Auch abrufbar als: Unified diff