Difference between revisions of "Freeside:1.9:Documentation:Developer/FS/Misc/prune"

From Freeside
Jump to: navigation, search
(import from POD)
 
m (Edit via perl MediaWiki framework (1.13))
 
Line 7: Line 7:
 
prune_applications();
 
prune_applications();
  
 +
==SUBROUTINES==
 
; prune_applications OPTION_HASH
 
; 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 [[Freeside:1.9:Documentation:Developer/FS/cust credit|FS::cust_credit]], [[Freeside:1.9:Documentation:Developer/FS/cust refund|FS::cust_refund]], and [[Freeside:1.9:Documentation:Developer/FS/cust credit refund|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.
 
:Removes applications of credits to refunds in the event that the database is corrupt and either the credits or refunds are missing (see [[Freeside:1.9:Documentation:Developer/FS/cust credit|FS::cust_credit]], [[Freeside:1.9:Documentation:Developer/FS/cust refund|FS::cust_refund]], and [[Freeside:1.9:Documentation:Developer/FS/cust credit refund|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==
 
==BUGS==
==POD ERRORS==
 
Hey! '''The above document had some coding errors, which are explained below:'''
 
 
; Around line 25:
 
:'=item' outside of any '=over'
 

Latest revision as of 17:16, 6 February 2009

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