projects
/
kivitendo-erp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
XML-Templates um Mimetypen fuer Winston und Taxbird erweitert
[kivitendo-erp.git]
/
SL
/
IC.pm
diff --git
a/SL/IC.pm
b/SL/IC.pm
index
961c639
..
7fca306
100644
(file)
--- a/
SL/IC.pm
+++ b/
SL/IC.pm
@@
-1783,6
+1783,8
@@
sub retrieve_accounts {
} else {
$transdate = $form->{deliverydate};
}
} else {
$transdate = $form->{deliverydate};
}
+ } elsif ($form->{type} eq "credit_note") {
+ $transdate = $form->{invdate};
} else {
$transdate = $form->{transdate};
}
} else {
$transdate = $form->{transdate};
}
@@
-1817,7
+1819,7
@@
sub retrieve_accounts {
if (!$ref) {
$dbh->disconnect();
if (!$ref) {
$dbh->disconnect();
- return $lxdebug->leave_sub();
+ return $
main::
lxdebug->leave_sub();
}
$ref->{"inventory_accno_id"} = undef unless ($ref->{"is_part"});
}
$ref->{"inventory_accno_id"} = undef unless ($ref->{"is_part"});
@@
-1852,7
+1854,10
@@
sub retrieve_accounts {
$sth->finish();
$dbh->disconnect();
$sth->finish();
$dbh->disconnect();
- return $lxdebug->leave_sub() unless ($ref);
+ unless ($ref) {
+ $main::lxdebug->leave_sub();
+ return;
+ }
$form->{"taxaccounts_$index"} = $ref->{"accno"};
if ($form->{"taxaccounts"} !~ /$ref->{accno}/) {
$form->{"taxaccounts_$index"} = $ref->{"accno"};
if ($form->{"taxaccounts"} !~ /$ref->{accno}/) {
@@
-1867,8
+1872,6
@@
sub retrieve_accounts {
# " || taxaccounts_$index " . $form->{"taxaccounts_$index"} .
# " || taxaccounts " . $form->{"taxaccounts"});
# " || taxaccounts_$index " . $form->{"taxaccounts_$index"} .
# " || taxaccounts " . $form->{"taxaccounts"});
- $sth->finish();
-
$main::lxdebug->leave_sub();
}
1;
$main::lxdebug->leave_sub();
}
1;