X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/96ab68a31bb2e33769aeccea9b7e51b23b65f59a..46aa98a931708ad5ee5003437af92f0358e582b3:/bin/mozilla/ir.pl diff --git a/bin/mozilla/ir.pl b/bin/mozilla/ir.pl index 5ec505a9e..19b4f74a1 100644 --- a/bin/mozilla/ir.pl +++ b/bin/mozilla/ir.pl @@ -24,7 +24,8 @@ # GNU General Public License for more details. # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software -# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, +# MA 02110-1335, USA. #====================================================================== # # Inventory received module @@ -34,7 +35,6 @@ use SL::FU; use SL::IR; use SL::IS; -use SL::PE; use SL::DB::Default; use SL::DB::PurchaseInvoice; use List::Util qw(max sum); @@ -406,7 +406,7 @@ sub form_footer { # follow ups if ($form->{id}) { - $form->{follow_ups} = FU->follow_ups('trans_id' => $form->{id}) || []; + $form->{follow_ups} = FU->follow_ups('trans_id' => $form->{id}, 'not_done' => 1) || []; $form->{follow_ups_unfinished} = ( sum map { $_->{due} * 1 } @{ $form->{follow_ups} } ) || 0; } @@ -480,6 +480,10 @@ sub mark_as_paid { $main::lxdebug->leave_sub(); } +sub show_draft { + update(); +} + sub update { $main::lxdebug->enter_sub();