X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/kivitendo-erp.git/blobdiff_plain/9d17d16c39e6514243ee1ee71e9be8502331e0f2..d1f44c84d990f57982854c6a4716c0f233f45bca:/SL/FU.pm?ds=inline diff --git a/SL/FU.pm b/SL/FU.pm index b98687f3e..a2faf62f3 100644 --- a/SL/FU.pm +++ b/SL/FU.pm @@ -81,7 +81,8 @@ sub finish { SL::DB->client->with_transaction(sub { do_query($form, SL::DB->client->dbh, qq|UPDATE follow_ups SET done = TRUE WHERE id = ?|, conv_i($params{id})); - }); + 1; + }) or do { die SL::DB->client->error }; $main::lxdebug->leave_sub(); } @@ -105,7 +106,8 @@ sub delete { do_query($form, $dbh, qq|DELETE FROM follow_up_links WHERE follow_up_id = ?|, $id); do_query($form, $dbh, qq|DELETE FROM follow_ups WHERE id = ?|, $id); do_query($form, $dbh, qq|DELETE FROM notes WHERE (trans_id = ?) AND (trans_module = 'fu')|, $id); - }); + 1; + }) or do { die SL::DB->client->error }; $main::lxdebug->leave_sub(); } @@ -361,6 +363,12 @@ sub link_details { 'title' => $locale->text('Sales Invoice') . " $params{trans_info}", }; + } elsif ($params{trans_type} eq 'purchase_invoice') { + $link = { + 'url' => 'ir.pl?action=edit&type=purchase_invoice&id=' . $params{trans_id}, + 'title' => $locale->text('Purchase Invoice') . " $params{trans_info}", + }; + } elsif ($params{trans_type} eq 'credit_note') { $link = { 'url' => 'is.pl?action=edit&type=credit_note&id=' . $params{trans_id}, @@ -444,7 +452,8 @@ sub save_access_rights { } $sth->finish(); - }); + 1; + }) or do { die SL::DB->client->error }; $main::lxdebug->leave_sub(); }