projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
RT# 74122 - updated change history to not show data with out a description
[freeside.git]
/
bin
/
bulk_void
diff --git
a/bin/bulk_void
b/bin/bulk_void
index
b12b5a9
..
8f0c882
100755
(executable)
--- a/
bin/bulk_void
+++ b/
bin/bulk_void
@@
-32,11
+32,12
@@
if (!$opt{start} or !$opt{end} or !$opt{r}) {
print "DRY RUN--changes will not be committed.\n" unless $opt{X};
print "DRY RUN--changes will not be committed.\n" unless $opt{X};
-my $date = " WHERE _date >= $opt{start} AND _date <= $opt{end}";
-
my %search = ();
$search{payby} = $opt{t} if $opt{t} && $opt{p};
my %search = ();
$search{payby} = $opt{t} if $opt{t} && $opt{p};
+my $date = (keys %search ? ' AND ' : ' WHERE ').
+ " _date >= $opt{start} AND _date <= $opt{end}";
+
my %tables = (
c => 'cust_credit',
p => 'cust_pay',
my %tables = (
c => 'cust_credit',
p => 'cust_pay',