[freeside-commits] branch master updated. 1f2021c9b76da7cc59e2a981fbac6b24312876d2

Ivan ivan at 420.am
Tue Nov 15 15:18:55 PST 2016


The branch, master has been updated
       via  1f2021c9b76da7cc59e2a981fbac6b24312876d2 (commit)
      from  69a70c66135ece60c08584cf3b931b4ff141c47a (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 1f2021c9b76da7cc59e2a981fbac6b24312876d2
Author: Ivan Kohler <ivan at freeside.biz>
Date:   Tue Nov 15 15:18:54 2016 -0800

    add -t flag to bulk void for payment type, RT#73413

diff --git a/bin/bulk_void b/bin/bulk_void
index c75da5d..b12b5a9 100755
--- a/bin/bulk_void
+++ b/bin/bulk_void
@@ -6,7 +6,7 @@ use vars qw( %opt );
 use FS::Misc::Getopt;
 use FS::Record qw(qsearch qsearchs dbh);
 
-getopts('s:e:cpiXr:t:');
+getopts('cpiXr:t:');
 
 my $dbh = dbh;
 $FS::UID::AutoCommit = 0;
@@ -26,13 +26,13 @@ sub usage() {
 ";
 }
 
-if (!$opt{s} or !$opt{e} or !$opt{r}) {
+if (!$opt{start} or !$opt{end} or !$opt{r}) {
   die usage;
 }
 
 print "DRY RUN--changes will not be committed.\n" unless $opt{X};
 
-my $date = " WHERE _date >= $opt{s} AND _date <= $opt{e}";
+my $date = " WHERE _date >= $opt{start} AND _date <= $opt{end}";
 
 my %search = ();
 $search{payby} = $opt{t} if $opt{t} && $opt{p};

-----------------------------------------------------------------------

Summary of changes:
 bin/bulk_void |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)




More information about the freeside-commits mailing list