=================================================================== RCS file: /cvs/RT/Invoicing/rt_invoices.pl,v retrieving revision 1.36 retrieving revision 1.37 diff -u -r1.36 -r1.37 --- RT/Invoicing/rt_invoices.pl 2011/05/18 20:03:17 1.36 +++ RT/Invoicing/rt_invoices.pl 2011/05/26 02:09:36 1.37 @@ -1,5 +1,5 @@ #!/usr/bin/perl -# $AFresh1: rt_invoices.pl,v 1.35 2011/05/18 19:02:36 andrew Exp $ +# $AFresh1: rt_invoices.pl,v 1.36 2011/05/18 19:03:17 andrew Exp $ ######################################################################## # Copyright (c) 2011 Andrew Fresh # @@ -122,6 +122,8 @@ $type = '' if $type eq 'default'; $fee->{detail} .= " $discount_time $type Hours Discounted"; } + + last if $discount_time == $fee->{count}; } }