[BACK]Return to rt_invoices.pl CVS log [TXT][DIR] Up to [local] / RT / Invoicing

Diff for /RT/Invoicing/rt_invoices.pl between version 1.51 and 1.54

version 1.51, 2015/05/07 06:21:49 version 1.54, 2015/12/08 02:10:43
Line 1 
Line 1 
 #!/usr/bin/perl  #!/usr/bin/perl
 # $AFresh1: rt_invoices.pl,v 1.50 2013/06/20 04:36:06 andrew Exp $  # $AFresh1: rt_invoices.pl,v 1.53 2015/05/07 05:26:08 andrew Exp $
 ########################################################################  ########################################################################
 # Copyright (c) 2011 Andrew Fresh <andrew@afresh1.com>  # Copyright (c) 2011 Andrew Fresh <andrew@afresh1.com>
 #  #
Line 19 
Line 19 
 use warnings;  use warnings;
   
 use 5.010;  use 5.010;
   use experimental qw( switch smartmatch );
   
   # Because we don't have a real cert
   $ENV{PERL_LWP_SSL_VERIFY_HOSTNAME} = 0;
   
 use Template;  use Template;
 use RT::Client::REST;  use RT::Client::REST;
 use RT::Client::REST::Ticket;  use RT::Client::REST::Ticket;
Line 220 
Line 224 
 }  }
   
 foreach my $cust ( @{$customers} ) {  foreach my $cust ( @{$customers} ) {
     my $invoice = $cust->{invoice};      my $invoice = $cust->{invoice} ||= make_invoice($cust);
     next unless $invoice && $invoice->{projects} && @{ $invoice->{projects} };      next unless $invoice && $invoice->{projects} && @{ $invoice->{projects} };
   
     $invoice->{custid}       = $cust->{id};      $invoice->{custid}       = $cust->{id};

Legend:
Removed from v.1.51  
changed lines
  Added in v.1.54

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