CORE POS - Fannie
The CORE POS back end
Public Member Functions | Public Attributes | List of all members
EquityHistoryTask Class Reference
Inheritance diagram for EquityHistoryTask:
FannieTask

Public Member Functions

 run ()
 
- Public Member Functions inherited from FannieTask
 setThreshold ($t)
 
 setConfig (FannieConfig $fc)
 
 setLogger ($fl)
 
 setOptions ($o)
 
 setArguments ($a)
 
 testMode ($t)
 
 run ()
 
 cronMsg ($str, $severity=6)
 
 lazyGetOpt ($argv)
 

Public Attributes

 $name = 'Equity History'
 
 $description
 
 $default_schedule
 
- Public Attributes inherited from FannieTask
 $name = 'Fannie Task'
 
 $description = 'Information about the task'
 
 $default_schedule
 
 $schedulable = true
 
 $log_start_stop = true
 
const TASK_NO_ERROR = 0
 
const TASK_TRIVIAL_ERROR = 1
 
const TASK_SMALL_ERROR = 2
 
const TASK_MEDIUM_ERROR = 3
 
const TASK_LARGE_ERROR = 4
 
const TASK_WORST_ERROR = 5
 

Additional Inherited Members

- Protected Attributes inherited from FannieTask
 $error_threshold = 99
 
 $config = null
 
 $logger = null
 
 $options = array()
 
 $arguments = array()
 
 $test_mode = false
 

Member Function Documentation

EquityHistoryTask::run ( )

Lookup transactions with net equity purchase of zero. These transactions should not impact the first/last equity purchase dates

For applicable members, lookup min and max date values again excluding the net-zero transactions. Update date fields for these members.

Update payment plan accounts based on current payment history

Payment plans are really structured into tiers. For a $20 increment, $100 total plan the tiers are at $20, $40, $60, and $80. I'm not assuming any rigid enforcement of payment amounts (i.e., someone may make a payment that isn't exactly $20). So after the current tier is established, I go through the whole history to figure out when the tier was reached and track any progress toward tier.

Member Data Documentation

EquityHistoryTask::$default_schedule
Initial value:
= array(
'min' => 30,
'hour' => 1,
'day' => '*',
'month' => '*',
'weekday' => '*',
)
EquityHistoryTask::$description
Initial value:
= 'Extracts equity transactions and
adds them to dedicated history tables. Fetches any new
transactions in the previous 15 days. Can be safely run
repeatedly. Normally run after rotating dtransactions data.
Deprecates nightly.equity.php.'

The documentation for this class was generated from the following file: