[freeside-commits] freeside/FS/FS cust_main.pm, 1.271.2.17, 1.271.2.18
Ivan,,,
ivan at wavetail.420.am
Wed Jul 11 01:35:42 PDT 2007
Update of /home/cvs/cvsroot/freeside/FS/FS
In directory wavetail:/tmp/cvs-serv11224/FS/FS
Modified Files:
Tag: FREESIDE_1_7_BRANCH
cust_main.pm
Log Message:
finish adding payunique field
Index: cust_main.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/cust_main.pm,v
retrieving revision 1.271.2.17
retrieving revision 1.271.2.18
diff -u -d -r1.271.2.17 -r1.271.2.18
--- cust_main.pm 11 Jul 2007 04:23:15 -0000 1.271.2.17
+++ cust_main.pm 11 Jul 2007 08:35:40 -0000 1.271.2.18
@@ -2764,7 +2764,10 @@
'paybatch' => $paybatch,
'paydate' => $paydate,
} );
+ $cust_pay->payunique( $options{payunique} ) if length($options{payunique});
+
my $error = $cust_pay->insert($options{'manual'} ? ( 'manual' => 1 ) : () );
+
if ( $error ) {
$cust_pay->invnum(''); #try again with no specific invnum
my $error2 = $cust_pay->insert( $options{'manual'} ?
@@ -3129,8 +3132,13 @@
}
} elsif ( $method eq 'ECHECK' ) {
- ( $content{account_number}, $content{routing_code} ) =
- split('@', $payinfo = $self->payinfo);
+
+ if ( $cust_pay ) {
+ $payinfo = $cust_pay->payinfo;
+ } else {
+ $payinfo = $self->payinfo;
+ }
+ ( $content{account_number}, $content{routing_code} )= split('@', $payinfo );
$content{bank_name} = $self->payname;
$content{account_type} = 'CHECKING';
$content{account_name} = $payname;
More information about the freeside-commits
mailing list