Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision f556cdf5

Von Bernd Bleßmann vor etwa 1 Jahr 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
[%- USE P -%]
[%- USE T8 %]
[%- USE HTML %]
[%- USE LxERP %]
<h1>[% HTML.escape(title) %]</h1>
[%- INCLUDE 'common/flash.html' %]
<p>
[% 'Some of the following assembly items are ambigious. Please check the selection.' | $T8 %]
</p>
<form name="Form" method="post" action="wh.pl" id="form">
[%
FOREACH key = hidden_vars.keys;
P.hidden_tag(key, HTML.escape(hidden_vars.$key));
END
%]
<table>
<thead>
<tr class="listheading">
<th>[% 'Partnumber' | $T8%]</th>
<th>[% 'Description' | $T8%]</th>
<th>[% 'Chargenumber' | $T8%]</th>
<th>[% 'Warehouse' | $T8%]</th>
<th>[% 'Bin' | $T8%]</th>
<th>[% 'Onhand' | $T8%]</th>
<th>[% 'Qty' | $T8%]</th>
<th>[% 'Unit' | $T8%]</th>
</tr>
</thead>
<tbody>
[% FOREACH part_id = stocked_by_parts_id.keys.sort -%]
<tr class="listheading">
<td colspan="6">[% 'needed qty' | $T8 %]</td>
<td class="numeric">[% LxERP.format_amount(needed_by_parts_id.$part_id, -2) %]</td>
<td>[% stocked_by_parts_id.$part_id.0.part.unit | html %]</td>
</tr>
[% FOREACH part = stocked_by_parts_id.$part_id -%]
<tr class="listrow">
[% SET alloc_qty = '';
FOREACH alloc = allocated_by_parts_id.$part_id;
IF (alloc.warehouse_id == part.warehouse.id && alloc.bin_id == part.bin_id && HTML.escape(alloc.chargenumber) == HTML.escape(part.chargenumber));
SET alloc_qty = alloc.qty;
END;
END
-%]
<td>
[% P.hidden_tag('allocations[+].parts_id', part_id )%]
[% P.hidden_tag('allocations[].chargenumber', part.chargenumber )%]
[% P.hidden_tag('allocations[].warehouse_id', part.warehouse_id )%]
[% P.hidden_tag('allocations[].bin_id', part.bin_id )%]
[% part.part.partnumber | html %]
</td>
<td>[% part.part.description | html %]</td>
<td>[% part.chargenumber | html %]</td>
<td>[% part.warehouse.description | html %]</td>
<td>[% part.bin.description | html %]</td>
<td class="numeric">[% LxERP.format_amount(part.qty, -2) %]</td>
<td>
[% SET readonly = 0 -%]
[% IF stocked_by_parts_id.$part_id.size == 1 -%]
[% SET readonly = 1 -%]
[% P.hidden_tag('allocations[].qty', LxERP.format_amount(alloc_qty, -2)) %]
[% END -%]
[% P.input_number_tag('allocations[].qty', alloc_qty, precision => -2, size => 8, disabled => readonly) %]
</td>
<td>[% part.part.unit | html %]</td>
</tr>
[% END %]
<tr></tr>
<tr></tr>
[% END %]
</tbody>
</table>
</form>

Auch abrufbar als: Unified diff