[BACK]Return to fix_state CVS log [TXT][DIR] Up to [local] / RT / Invoicing

Diff for /RT/Invoicing/fix_state between version 1.1 and 1.2

version 1.1, 2011/12/21 02:21:54 version 1.2, 2012/01/10 03:52:11
Line 1 
Line 1 
 #!/usr/bin/perl  #!/usr/bin/perl
 # $AFresh1$  # $AFresh1: fix_state,v 1.1 2011/12/21 02:21:54 andrew Exp $
 use strict;  use strict;
 use warnings;  use warnings;
   
Line 20 
Line 20 
 }  }
   
 $state->{invoice} = \%invoices;  $state->{invoice} = \%invoices;
 $state->{payment} = \%payments;  
   foreach my $custid (keys %payments) {
       my $old = $payments{$custid};
       my @new = sort { $b->{date} cmp $a->{date} } @{ $old };
       $state->{payment}->{$custid} = \@new;
   }
   
 #print Dump $state;  #print Dump $state;
 DumpFile('rt_invoice.state', $state);  DumpFile('rt_invoice.state', $state);
   

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>