summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorivan <ivan>2011-08-05 19:19:06 +0000
committerivan <ivan>2011-08-05 19:19:06 +0000
commit044023db4dadfd8c12638d95bf775203a8c47396 (patch)
tree8dea444a037d724b261e51b612297e2dadf9c3de /bin
parente91533fe47b1dbb026bf610f71213119a6da3e71 (diff)
remove these so they're not accidentally used
Diffstat (limited to 'bin')
-rwxr-xr-xbin/21add20
-rwxr-xr-xbin/21commit26
-rwxr-xr-xbin/cust_main-show_geocoding3
-rw-r--r--bin/test-event8
4 files changed, 9 insertions, 48 deletions
diff --git a/bin/21add b/bin/21add
deleted file mode 100755
index e7a77da34..000000000
--- a/bin/21add
+++ /dev/null
@@ -1,20 +0,0 @@
-#!/usr/bin/perl
-
-use Cwd;
-use String::ShellQuote;
-
-my $USER = $ENV{USER};
-
-my $dir = getcwd;
-( my $prefix = $dir ) =~ s(^/home/$USER/freeside/?)() or die $dir; #eventually from anywhere
-
-system join('',
- #"cvs add @ARGV && ",
- "cvs add @ARGV ; ",
- "( for file in @ARGV; do ",
- "cp -i \$file /home/$USER/freeside2.1/$prefix/`dirname \$file`;",
- "done ) && ",
- "cd /home/$USER/freeside2.1/$prefix/ && ",
- "cvs add @ARGV"
-);
-
diff --git a/bin/21commit b/bin/21commit
deleted file mode 100755
index 849de21b6..000000000
--- a/bin/21commit
+++ /dev/null
@@ -1,26 +0,0 @@
-#!/usr/bin/perl
-
-# usage: 21commit 'log message' filename filename ...
-
-use Cwd;
-use String::ShellQuote;
-
-my $USER = $ENV{USER};
-
-my $dir = getcwd;
-( my $prefix = $dir ) =~ s(^/home/$USER/freeside/?)() or die $dir; #eventually from anywhere
-
-my $desc = shell_quote(shift @ARGV); # -m
-
-die "no files!" unless @ARGV;
-
-#warn "$prefix";
-
-#print <<END;
-system join('',
- "( cd /home/$USER/freeside2.1/$prefix; cvs update @ARGV ) && ",
- "cvs diff -u @ARGV | ( cd /home/$USER/freeside2.1/$prefix; patch -p0 ) ",
- " && ( ( cvs commit -m $desc @ARGV & ); ",
- "( sleep 1;cd /home/$USER/freeside2.1/$prefix; cvs commit -m $desc @ARGV & ) )"
-);
-
diff --git a/bin/cust_main-show_geocoding b/bin/cust_main-show_geocoding
index 128d2e78c..89c869a96 100755
--- a/bin/cust_main-show_geocoding
+++ b/bin/cust_main-show_geocoding
@@ -31,3 +31,6 @@ while ( my $custnum = shift @custnums ) {
print "$output\n";
}
+
+1;
+
diff --git a/bin/test-event b/bin/test-event
index 061e00061..d3a9f110d 100644
--- a/bin/test-event
+++ b/bin/test-event
@@ -26,6 +26,8 @@ my $object = qsearchs($table, { $pkey => $tablenum } )
my $cust_event = $part_event->new_cust_event($object);
+print "\n";
+
###
# specifics
###
@@ -33,6 +35,10 @@ my $cust_event = $part_event->new_cust_event($object);
my @conditions = $part_event->part_event_condition;
foreach my $condition ( @conditions ) {
my $sat = $condition->condition( $object, 'cust_event' => $cust_event );
+
+ my $sql = $condition->condition_sql();
+
+
print $condition->conditionname. '.pm: '.
( $sat ? "satisfied\n" : "NOT SATISFIED\n" );
@@ -50,8 +56,6 @@ foreach my $condition ( @conditions ) {
# overall
###
-print "\n";
-
my $run = $cust_event->test_conditions;
print "\n". $part_event->eventpart.': '. $part_event->event.