Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision f2463a51

Von Tamino Steinert vor etwa 1 Jahr hinzugefügt

  • ID f2463a511e2901bde8f4809f8c0bec4a7c0965df
  • Vorgänger e7789457
  • Nachfolger 8c3ccb81

IO,DO,IR,IS,OE: Entferne Leerzeichen um Seriennummer

Unterschiede anzeigen:

SL/IS.pm
46 46
use SL::CVar;
47 47
use SL::Common;
48 48
use SL::DATEV qw(:CONSTANTS);
49
use SL::Util qw(trim);
49 50
use SL::DBUtils;
50 51
use SL::DO;
51 52
use SL::GenericTranslations;
......
1013 1014
                 $form->{"sellprice_$i"}, $fxsellprice,
1014 1015
                 $form->{"discount_$i"}, $allocated, 'f',
1015 1016
                 $form->{"unit_$i"}, conv_date($form->{"reqdate_$i"}), conv_i($form->{"project_id_$i"}),
1016
                 $form->{"serialnumber_$i"}, $pricegroup_id,
1017
                 trim($form->{"serialnumber_$i"}), $pricegroup_id,
1017 1018
                 $baseqty, $form->{"subtotal_$i"} ? 't' : 'f',
1018 1019
                 $form->{"marge_percent_$i"}, $form->{"marge_absolut_$i"},
1019 1020
                 $form->{"lastcost_$i"},
......
1763 1764
    my ($err, $qty, $wh_id, $bin_id, $chargenumber);
1764 1765

  
1765 1766
    if ($::instance_conf->get_sales_serial_eq_charge && $form->{"serialnumber_$i"}) {
1766
      my @serials = split(" ", $form->{"serialnumber_$i"});
1767
      my @serials = split(" ", trim($form->{"serialnumber_$i"}));
1767 1768
      if (scalar @serials != $form->{"qty_$i"}) {
1768 1769
        push @errors, $::locale->text("Cannot transfer #1 qty with #2 serial number(s)", $form->{"qty_$i"}, scalar @serials);
1769 1770
        last;

Auch abrufbar als: Unified diff