+++ /dev/null
-#!/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"
-);
-
+++ /dev/null
-#!/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 & ) )"
-);
-
print "$output\n";
}
+
+1;
+
my $cust_event = $part_event->new_cust_event($object);
+print "\n";
+
###
# specifics
###
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" );
# overall
###
-print "\n";
-
my $run = $cust_event->test_conditions;
print "\n". $part_event->eventpart.': '. $part_event->event.