X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/ef8dc9da7e9c47b71f040c6a70d45b39aa1a67ec..97c05a9fe7f877169062ee979d454af6ada7fbb0:/SL/OE.pm diff --git a/SL/OE.pm b/SL/OE.pm index 5b7c031af..27f57f99a 100644 --- a/SL/OE.pm +++ b/SL/OE.pm @@ -121,8 +121,6 @@ sub transactions { $sth->execute(@values) || $form->dberror($query . " (" . join(", ", @values) . ")"); - dump_query(0, "laqje", $query, @values); - my %id = (); while (my $ref = $sth->fetchrow_hashref(NAME_lc)) { $ref->{exchangerate} = 1 unless $ref->{exchangerate}; @@ -486,6 +484,9 @@ Message: $form->{message}\r| if $form->{message}; my $rc = $dbh->commit; $dbh->disconnect; + $form->{saved_xyznumber} = $form->{$form->{type} =~ /_quotation$/ ? + "quonumber" : "ordnumber"}; + Common::webdav_folder($form) if ($main::webdav); $main::lxdebug->leave_sub(); @@ -700,7 +701,8 @@ sub retrieve { $ref = $sth->fetchrow_hashref(NAME_lc); map { $form->{$_} = $ref->{$_} } keys %$ref; - + $form->{saved_xyznumber} = $form->{$form->{type} =~ /_quotation$/ ? + "quonumber" : "ordnumber"}; # set all entries for multiple ids blank that yield different information while ($ref = $sth->fetchrow_hashref(NAME_lc)) { @@ -1167,7 +1169,7 @@ sub order_details { $tax += $taxamount = $form->round_amount($taxaccounts{$item}, 2); push(@{ $form->{tax} }, $form->format_amount($myconfig, $taxamount, 2)); - push(@{ $form->{taxdescription} }, $form->{"${item}_description"}); + push(@{ $form->{taxdescription} }, $form->{"${item}_description"} . q{ } . 100 * $form->{"${item}_rate"} . q{%}); push(@{ $form->{taxrate} }, $form->format_amount($myconfig, $form->{"${item}_rate"} * 100)); push(@{ $form->{taxnumber} }, $form->{"${item}_taxnumber"});