From 044023db4dadfd8c12638d95bf775203a8c47396 Mon Sep 17 00:00:00 2001 From: ivan Date: Fri, 5 Aug 2011 19:19:06 +0000 Subject: [PATCH] remove these so they're not accidentally used --- bin/21add | 20 -------------------- bin/21commit | 26 -------------------------- bin/cust_main-show_geocoding | 3 +++ bin/test-event | 8 ++++++-- 4 files changed, 9 insertions(+), 48 deletions(-) delete mode 100755 bin/21add delete mode 100755 bin/21commit 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 < $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. -- 2.11.0