Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision e48dce45

Von Moritz Bunkus vor etwa 18 Jahren hinzugefügt

  • ID e48dce4564ae92a79c429ddc934320be91eda16a
  • Vorgänger b80a03a9
  • Nachfolger 4deefb65

Beim Schließen mehrerer Aufträge nicht nochmal die Werte parsen -- das geschieht bereits in den .pls. Fix für Bug 529.

Unterschiede anzeigen:

SL/OE.pm
my ($self, $myconfig, $form) = @_;
for my $i (1 .. $form->{rowcount}) {
map {
$form->{"${_}_$i"} =
$form->parse_amount($myconfig, $form->{"${_}_$i"})
} qw(qty ship);
if ($delete_oe_id) {
$form->{"orderitems_id_$i"} = "";
}
if ($form->{"qty_$i"}) {
# set values to 0 if nothing entered
$form->{"discount_$i"} =
$form->parse_amount($myconfig, $form->{"discount_$i"});
$form->{"sellprice_$i"} =
$form->parse_amount($myconfig, $form->{"sellprice_$i"});
}
}
# get ids from $form
map { push @ids, $form->{"ordnumber_$_"} if $form->{"ordnumber_$_"} }
(1 .. $form->{rowcount});

Auch abrufbar als: Unified diff