[freeside-commits] freeside/httemplate/edit/process
part_bill_event.cgi, 1.9, 1.10
Jeff Finucane,420,,
jeff at wavetail.420.am
Thu Nov 16 07:37:44 PST 2006
Update of /home/cvs/cvsroot/freeside/httemplate/edit/process
In directory wavetail:/tmp/cvs-serv12830
Modified Files:
part_bill_event.cgi
Log Message:
bug squishing
Index: part_bill_event.cgi
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/edit/process/part_bill_event.cgi,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- part_bill_event.cgi 23 Oct 2006 04:21:03 -0000 1.9
+++ part_bill_event.cgi 16 Nov 2006 15:37:42 -0000 1.10
@@ -18,15 +18,6 @@
% $cgi->param('weight', $2);
% my $eventcode = $3;
% my $plandata = '';
-% while ( $eventcode =~ /%%%(\w+)%%%/ ) {
-% my $field = $1;
-% my $value = join(', ', $cgi->param($field) );
-% $cgi->param($field, $value); #in case it errors out
-% $eventcode =~ s/%%%$field%%%/$value/;
-% $plandata .= "$field $value\n";
-% }
-% $cgi->param('eventcode', $eventcode);
-% $cgi->param('plandata', $plandata);
%
% my $rnum;
% my $rtype;
@@ -52,14 +43,25 @@
% my $reason = new FS::reason ({ 'reason' => $reasonm,
% 'reason_type' => $rtype,
% });
-% $error = $reason->insert or $rnum = $reason->reasonnum;
+% $error = $reason->insert;
% unless ($error) {
+% $rnum = $reason->reasonnum;
% $cgi->param("${class}reason", $rnum);
% $cgi->param("new${class}reason", '');
% $cgi->param("new${class}reasonT", '');
% }
% }
%
+% while ( $eventcode =~ /%%%(\w+)%%%/ ) {
+% my $field = $1;
+% my $value = join(', ', $cgi->param($field) );
+% $cgi->param($field, $value); #in case it errors out
+% $eventcode =~ s/%%%$field%%%/$value/;
+% $plandata .= "$field $value\n";
+% }
+% $cgi->param('eventcode', $eventcode);
+% $cgi->param('plandata', $plandata);
+%
% unless($error){
% my $new = new FS::part_bill_event ( {
% map {
More information about the freeside-commits
mailing list