projects
/
kivitendo-erp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
1ac6cde
)
Fehler beim Speichern von Auftraegen behoben, wenn Angebot in Auftrag umgewandelt...
author
Philip Reetz
<p.reetz@linet-services.de>
Mon, 14 Nov 2005 11:03:21 +0000
(11:03 +0000)
committer
Philip Reetz
<p.reetz@linet-services.de>
Mon, 14 Nov 2005 11:03:21 +0000
(11:03 +0000)
SL/OE.pm
patch
|
blob
|
history
diff --git
a/SL/OE.pm
b/SL/OE.pm
index
d5d1aa7
..
e0b6ab6
100644
(file)
--- a/
SL/OE.pm
+++ b/
SL/OE.pm
@@
-182,6
+182,7
@@
sub save {
$query = qq|DELETE FROM shipto
WHERE trans_id = $form->{id}|;
$dbh->do($query) || $form->dberror($query);
$query = qq|DELETE FROM shipto
WHERE trans_id = $form->{id}|;
$dbh->do($query) || $form->dberror($query);
+ $delete_oe_id = 0;
} else {
} else {
@@
-199,6
+200,7
@@
sub save {
WHERE o.ordnumber = '$uid'|;
$sth = $dbh->prepare($query);
$sth->execute || $form->dberror($query);
WHERE o.ordnumber = '$uid'|;
$sth = $dbh->prepare($query);
$sth->execute || $form->dberror($query);
+ $delete_oe_id = 1;
($form->{id}) = $sth->fetchrow_array;
$sth->finish;
($form->{id}) = $sth->fetchrow_array;
$sth->finish;
@@
-225,6
+227,9
@@
sub save {
map {
$form->{"${_}_$i"} = $form->parse_amount($myconfig, $form->{"${_}_$i"})
} qw(qty ship);
map {
$form->{"${_}_$i"} = $form->parse_amount($myconfig, $form->{"${_}_$i"})
} qw(qty ship);
+ if ($delete_oe_id) {
+ $form->{"orderitems_id_$i"} = "";
+ }
if ($form->{"qty_$i"}) {
if ($form->{"qty_$i"}) {