|
CORE POS - Fannie
The CORE POS back end
|
Public Member Functions | |
| preprocess () | |
| body_content () | |
| form_content () | |
| results_content () | |
| helpContent () | |
| unitTest ($phpunit) | |
Public Attributes | |
| $description = '[New Members] creates a block of new member accounts.' | |
Protected Attributes | |
| $title = "Fannie :: Create Members" | |
| $header = "Create Members" | |
| $must_authenticate = True | |
| $auth_classes = array('memgen') | |
| NewMemberTool::results_content | ( | ) |
1Jul2015 Use FannieREST API calls to create new members Not tested yet. $json = array( 'customerTypeID' => $mtype, 'memberStatus' => $mt['custdataType'], 'addressFirstLine' => '', 'addressSecondLine' => '', 'city' => '', 'state' => '', 'zip' => '', 'contactAllowed' => 1, 'contactMethod' => 'mail', 'customers' => array( array( 'firstName' => '', 'lastName' => $name, 'phone' => '', 'altPhone' => '', 'email' => 1, 'discount' => $mt['discount'], 'staff' => $mt['staff'], 'lowIncomeBenefits' => $mt['ssi'], ), ), );
$start = PHP_INT_MAX; $end = 0; for ($i=0; $i<$num; $i++) { if ($manual_start) { $resp = ::post($manual_start+$i, $json); } else { $resp = ::post(0, $json); }
if (isset($resp['account']) && $resp['account']['cardNo'] > $end) { $end = $resp['account']['cardNo']; } if (isset($resp['account']) && $resp['account']['cardNo'] < $start) { $start = $resp['account']['cardNo']; } }
1.8.6