projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
zip email CDRs, RT#40112
[freeside.git]
/
bin
/
fs-migrate-payref
diff --git
a/bin/fs-migrate-payref
b/bin/fs-migrate-payref
index
f151311
..
1584197
100755
(executable)
--- a/
bin/fs-migrate-payref
+++ b/
bin/fs-migrate-payref
@@
-9,9
+9,6
@@
use FS::cust_refund;
my $user = shift or die &usage;
my $dbh = adminsuidsetup $user;
my $user = shift or die &usage;
my $dbh = adminsuidsetup $user;
-#local $FS::UID::AutoCommit = 0; #quelle hack, in this case
-# $FS::UID::AutoCommit = 0; #quelle hack, in this case
-
# apply payments to invoices
foreach my $cust_pay ( qsearch('cust_pay', {} ) ) {
# apply payments to invoices
foreach my $cust_pay ( qsearch('cust_pay', {} ) ) {
@@
-28,3
+25,7
@@
foreach my $cust_refund ( qsearch('cust_refund') ) {
# ? apply credits to invoices
# ? apply credits to invoices
+sub usage {
+ die "Usage:\n fs-migrate-payref user\n";
+}
+