Fix für Bug 1383.
Da sich Lagerbewegungen sowieso nicht komplett aus den Dienstleistungen
raushalten ließen, und es überzeugende Argumente dafür gibt Dienstleistungen
auch einlagern zu können, entfernt dieser Patch die Beschränkung, dass nur Waren
eingelagert werden dürfen.
} elsif (($form->{partnumber} && ($form->{partnumber} ne $form->{old_partnumber})) || $form->{description} || $form->{ean}) {
- $form->{no_services} = 1;
+# $form->{no_services} = 1; # services may now be transfered. fix for Bug 1383.
$form->{no_assemblies} = 0; # assemblies duerfen eingelagert werden (z.B. bei retouren)
my $parts = Common->retrieve_parts(\%myconfig, $form, 'description', 1);
</td>
</tr>
[%- END %]
- [%- UNLESS is_service %]
<tr>
<th align="right" nowrap>[% 'On Hand' | $T8 %]</th>
<th align="left" nowrap class="plus[% IF onhand > 0 %]1[% ELSE %]0[% END %]"> [% LxERP.format_amount(onhand) %]</th>
<th align="right" nowrap><label for="not_discountable">[% 'Not Discountable' | $T8 %]</label></th>
<td><input class="checkbox" type="checkbox" name="not_discountable" id="not_discountable" value="1" [% IF not_discountable %]checked[% END %]></td>
</tr>
- [%- END %]
[%- IF id %]
<tr>
<th align="right" nowrap="true"><label for="obsolete">[% 'Obsolete' | $T8 %]</label></th>
<tr>
<th align="right" nowrap>[% 'Group' | $T8 %]</th>
<td><input name="partsgroup" size="20"></td>
- [%- UNLESS is_service %]
<th align="right" nowrap>[% 'Serial Number' | $T8 %]</th> <td><input name="serialnumber" size="20"></td>
- [%- END %]
</tr>
[%- UNLESS is_service %]
<td colspan="3">
<input name="itemstatus" id="itemstatus_active" class="radio" type="radio" value="active" checked>
<label for="itemstatus_active">[% 'Active' | $T8 %]</label>
- [%- UNLESS is_service %]
<input name="itemstatus" id="itemstatus_onhand" class="radio" type="radio" value="onhand">
<label for="itemstatus_onhand">[% 'On Hand' | $T8 %]</label>
<input name="itemstatus" id="itemstatus_short" class="radio" type="radio" value="short">
<label for="itemstatus_short">[% 'Short' | $T8 %]</label>
- [%- END %]
<input name="itemstatus" id="itemstatus_obsolete" class="radio" type="radio" value="obsolete">
<label for="itemstatus_obsolete">[% 'Obsolete' | $T8 %]</label>
<input name="itemstatus" id="itemstatus_orphaned" class="radio" type="radio" value="orphaned">
<input name="l_description" id="l_description" class="checkbox" type="checkbox" value="Y" checked>
<label for="l_description">[% 'Part Description' | $T8 %]</label>
</td>
- [%- UNLESS is_service %]
<td>
<input name="l_serialnumber" id="l_serialnumber" class="checkbox" type="checkbox" value="Y">
<label for="l_serialnumber">[% 'Serial Number' | $T8 %]</label>
</td>
- [%- END %]
<td>
<input name="l_unit" id="l_unit" class="checkbox" type="checkbox" value="Y" checked>
<label for="l_unit">[% 'Unit of measure' | $T8 %]</label>
<th align="right" nowrap>[% 'Part Description' | $T8 %]</th>
<td>
<input name="description" size="30">
- <input type="button" onclick="part_selection_window('partnumber', 'description', 'parts_id', 0, 'Form', 'no_services:')" value="?">
+ <input type="button" onclick="part_selection_window('partnumber', 'description', 'parts_id', 0, 'Form', '')" value="?">
</td>
</tr>
<th align="right" nowrap>[% 'Part Description' | $T8 %]</th>
<td>
<input name="description" size="30" value="[% HTML.escape(description) %]">
- <input type="button" onclick="part_selection_window('partnumber', 'description', 'parts_id', 0, 'Form', 'no_services:click_button=update_button')" value="?">
+ <input type="button" onclick="part_selection_window('partnumber', 'description', 'parts_id', 0, 'Form', 'click_button=update_button')" value="?">
</td>
</tr>