Variable "has_sernumber" für Artikel nach Rücksprache mit Moritz eingefügt.
authorHolger Lindemann <hli@lx-system.de>
Fri, 25 Sep 2009 00:39:56 +0000 (02:39 +0200)
committerHolger Lindemann <hli@lx-system.de>
Fri, 25 Sep 2009 00:39:56 +0000 (02:39 +0200)
SL/IC.pm
bin/mozilla/io.pl
templates/webpages/ic/form_header_de.html
templates/webpages/ic/form_header_master.html

index d78ad30..c710af9 100644 (file)
--- a/SL/IC.pm
+++ b/SL/IC.pm
@@ -412,6 +412,7 @@ sub save {
          ve = ?,
          gv = ?,
          ean = ?,
+         has_sernumber = ?,
          not_discountable = ?,
          microfiche = ?,
          partsgroup_id = ?,
@@ -441,6 +442,7 @@ sub save {
              conv_i($form->{ve}),
              conv_i($form->{gv}),
              $form->{ean},
+             $form->{has_sernumber} ? 't' : 'f',
              $form->{not_discountable} ? 't' : 'f',
              $form->{microfiche},
              conv_i($partsgroup_id),
index f8d7300..51326c4 100644 (file)
@@ -744,7 +744,7 @@ sub check_form {
                   sellprice_pg pricegroup_old price_old price_new unit_old ordnumber
                   transdate longdescription basefactor marge_total marge_percent
                   marge_price_factor lastcost price_factor_id partnotes
-                  stock_out stock_in);
+                  stock_out stock_in has_sernumber);
 
     my $ic_cvar_configs = CVar->get_configs(module => 'IC');
     push @flds, map { "ic_cvar_$_->{name}" } @{ $ic_cvar_configs };
index 29bfbbd..1ae4073 100644 (file)
            <td><input name="obsolete" id="obsolete" type="checkbox" class="checkbox" value="1" [% IF obsolete %]checked[% END %]></td>
           </tr>
         [%- END %]
+          <tr>
+           <th align="right" nowrap><label for="shop">Hat eine Seriennummer</label></th>
+           <td><input class="checkbox" type="checkbox" name="has_sernumber" id="has_sernumber" value="1" [% IF has_sernumber %]checked[% END %]></td>
+          </tr>
           <tr>
            <th align="right" nowrap><label for="shop">Shopartikel</label></th>
            <td><input class="checkbox" type="checkbox" name="shop" id="shop" value="1" [% IF shop %]checked[% END %]></td>
index 1472a3a..65d841e 100644 (file)
            <td><input name="obsolete" id="obsolete" type="checkbox" class="checkbox" value="1" [% IF obsolete %]checked[% END %]></td>
           </tr>
         [%- END %]
+          <tr>
+           <th align="right" nowrap><label for="shop">Has serial number</label></th>
+           <td><input class="checkbox" type="checkbox" name="has_sernumber" id="has_sernumber" value="1" [% IF has_sernumber %]checked[% END %]></td>
+          </tr>
           <tr>
            <th align="right" nowrap><label for="shop"><translate>Shopartikel</translate></label></th>
            <td><input class="checkbox" type="checkbox" name="shop" id="shop" value="1" [% IF shop %]checked[% END %]></td>