[freeside-commits] freeside/FS/FS cust_pay.pm,1.50.2.17,1.50.2.18
Ivan,,,
ivan at wavetail.420.am
Wed Jun 4 22:07:57 PDT 2008
Update of /home/cvs/cvsroot/freeside/FS/FS
In directory wavetail.420.am:/tmp/cvs-serv21780/FS/FS
Modified Files:
Tag: FREESIDE_1_7_BRANCH
cust_pay.pm
Log Message:
payment and credit applications have separate "apply to refund" choices now, and no auto-refund choice in the invoice dropdown. RT#3545
Index: cust_pay.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/cust_pay.pm,v
retrieving revision 1.50.2.17
retrieving revision 1.50.2.18
diff -u -d -r1.50.2.17 -r1.50.2.18
--- cust_pay.pm 1 Jun 2008 22:48:24 -0000 1.50.2.17
+++ cust_pay.pm 5 Jun 2008 05:07:54 -0000 1.50.2.18
@@ -21,7 +21,7 @@
@ISA = qw( FS::payinfo_transaction_Mixin FS::cust_main_Mixin FS::Record );
-$DEBUG = 0;
+$DEBUG = 1;
$me = '[FS::cust_pay]';
@@ -550,6 +550,17 @@
sprintf("%.2f", $amount );
}
+=item amount
+
+Returns the "paid" field.
+
+=cut
+
+sub amount {
+ my $self = shift;
+ $self->paid();
+}
+
=back
=head1 CLASS METHODS
@@ -602,7 +613,8 @@
my $sth = dbh->prepare($count_sql) or die dbh->errstr;
$sth->execute or die $sth->errstr;
my $total = $sth->fetchrow_arrayref->[0];
-
+ #warn "$total cust_pay records to update\n"
+ # if $DEBUG;
local($DEBUG) = 2 if $total > 1000; #could be a while, force progress info
my $count = 0;
@@ -629,7 +641,7 @@
my $error = $cust_pay->replace;
if ( $error ) {
- warn " *** WARNING: Error updaating order taker for payment paynum".
+ warn " *** WARNING: Error updating order taker for payment paynum ".
$cust_pay->paynun. ": $error\n";
next;
}
More information about the freeside-commits
mailing list