projects
/
kivitendo-erp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'master' of ssh://lx-office/~/lx-office-erp
[kivitendo-erp.git]
/
SL
/
LICENSES.pm
diff --git
a/SL/LICENSES.pm
b/SL/LICENSES.pm
index
25b4d66
..
8f9c025
100644
(file)
--- a/
SL/LICENSES.pm
+++ b/
SL/LICENSES.pm
@@
-68,11
+68,6
@@
sub save_license {
$sth->execute || $form->dberror($query);
$sth->finish();
$sth->execute || $form->dberror($query);
$sth->finish();
- if ($form->{own_product}) {
- $form->update_balance($dbh, "parts", "onhand", qq|id = $form->{parts_id}|,
- 1);
- }
-
$dbh->disconnect();
$main::lxdebug->leave_sub();
$dbh->disconnect();
$main::lxdebug->leave_sub();
@@
-127,7
+122,7
@@
sub search {
if ($form->{"customer_name"}) {
$f .= " AND " if ($f);
$f .=
if ($form->{"customer_name"}) {
$f .= " AND " if ($f);
$f .=
- "(customer_id IN (SELECT id FROM customer WHERE name ILIKE "
+ "(
l.
customer_id IN (SELECT id FROM customer WHERE name ILIKE "
. $dbh->quote('%' . $form->{"customer_name"} . '%') . "))";
}
. $dbh->quote('%' . $form->{"customer_name"} . '%') . "))";
}