X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;ds=sidebyside;f=site_perl%2FRecord.pm;h=aa8d75b3d2d1ba9ab9a6dc252822dd2797d6d1dc;hb=963a290ad2d9a89b45b66ac9d9ccdd612a756f11;hp=81574131e9dc0bd1eaedcc0e0cbb4c763230ef28;hpb=c93520accf00e15095e7af5fcb59caed2bd9e556;p=freeside.git diff --git a/site_perl/Record.pm b/site_perl/Record.pm index 81574131e..aa8d75b3d 100644 --- a/site_perl/Record.pm +++ b/site_perl/Record.pm @@ -353,6 +353,7 @@ sub insert { local $SIG{QUIT} = 'IGNORE'; local $SIG{TERM} = 'IGNORE'; local $SIG{TSTP} = 'IGNORE'; + local $SIG{PIPE} = 'IGNORE'; $sth->execute or return $sth->errstr; @@ -396,6 +397,7 @@ sub delete { local $SIG{QUIT} = 'IGNORE'; local $SIG{TERM} = 'IGNORE'; local $SIG{TSTP} = 'IGNORE'; + local $SIG{PIPE} = 'IGNORE'; my $rc = $sth->execute or return $sth->errstr; #not portable #return "Record not found, statement:\n$statement" if $rc eq "0E0"; @@ -462,6 +464,7 @@ sub replace { local $SIG{QUIT} = 'IGNORE'; local $SIG{TERM} = 'IGNORE'; local $SIG{TSTP} = 'IGNORE'; + local $SIG{PIPE} = 'IGNORE'; my $rc = $sth->execute or return $sth->errstr; #not portable #return "Record not found (or records identical)." if $rc eq "0E0"; @@ -590,9 +593,10 @@ is an error, returns the error, otherwise returns false. sub ut_money { my($self,$field)=@_; + $self->setfield($field, 0) if $self->getfield($field) eq ''; $self->getfield($field) =~ /^(\-)? ?(\d*)(\.\d{2})?$/ or return "Illegal (money) $field!"; - $self->setfield($field,"$1$2$3" || 0); + $self->setfield($field, "$1$2$3" || 0); ''; } @@ -805,7 +809,7 @@ sub hfields { =head1 VERSION -$Id: Record.pm,v 1.11 1999-01-18 09:22:38 ivan Exp $ +$Id: Record.pm,v 1.12 1999-01-25 12:26:06 ivan Exp $ =head1 BUGS @@ -927,7 +931,10 @@ added pod documentation ivan@sisd.com 98-sep-6 ut_phonen got ''; at the end ivan@sisd.com 98-sep-27 $Log: Record.pm,v $ -Revision 1.11 1999-01-18 09:22:38 ivan +Revision 1.12 1999-01-25 12:26:06 ivan +yet more mod_perl stuff + +Revision 1.11 1999/01/18 09:22:38 ivan changes to track email addresses for email invoicing Revision 1.10 1998/12/29 11:59:33 ivan