<% include( '/elements/header.html', 'Developer Documentation' ) %> <& /elements/menubar.html, 'Freeside Perl Modules' => $fsurl.'docs/library/FS.html', 'Complete Index' => $fsurl.'docs/library/index.html', &>

FS::Misc::prune

NAME

FS::Misc::prune - misc. pruning subroutines

SYNOPSIS

use FS::Misc::prune qw(prune_applications);

prune_applications();

SUBROUTINES

prune_applications OPTION_HASH

Removes applications of credits to refunds in the event that the database is corrupt and either the credits or refunds are missing (see FS::cust_credit, FS::cust_refund, and FS::cust_credit_refund). If the OPTION_HASH contains the element 'dry_run' then a report of affected records is returned rather than actually deleting the records.

BUGS

<% include ('/elements/footer.html' ) %>