CORE POS - Fannie
The CORE POS back end
|
Public Member Functions | |
get_handler () | |
get_view () | |
javascriptContent () | |
css_content () | |
Public Member Functions inherited from NewSpecialOrdersPage | |
get_handler () | |
get_view () | |
javascriptContent () | |
unitTest ($phpunit) | |
Public Member Functions inherited from FannieRESTfulPage | |
readRoutes () | |
addRoute () | |
preprocess () | |
bodyContent () | |
unitTest ($phpunit) | |
setForm (COREPOS\common\mvc\ValueContainer $f) | |
Public Member Functions inherited from FanniePage | |
preprocess () | |
getHeader () | |
addBootstrap () | |
addJQuery () | |
get_header () | |
getFooter () | |
get_footer () | |
loginRedirect () | |
login_redirect () | |
checkAuth () | |
check_auth () | |
helpContent () | |
preFlight () | |
postFlight () | |
setPermissions ($p) | |
Public Attributes | |
$description = '[Old Special Orders] lists all archived special orders' | |
$page_set = 'Special Orders' | |
Public Attributes inherited from NewSpecialOrdersPage | |
$description = '[New Special Orders] lists all currently active special orders' | |
$page_set = 'Special Orders' | |
Public Attributes inherited from FanniePage | |
$themed = true | |
Protected Attributes | |
$must_authenticate = true | |
$header = 'Old Special Orders' | |
$title = 'Old Special Orders' | |
Protected Attributes inherited from NewSpecialOrdersPage | |
$must_authenticate = true | |
$header = 'Manage Special Orders' | |
$title = 'Manage Special Orders' | |
Protected Attributes inherited from FannieRESTfulPage | |
$__method = '' | |
$__models = array() | |
$__routes | |
$__route_stem = 'unknownRequest' | |
$form | |
$routing_trait | |
Protected Attributes inherited from FanniePage | |
$must_authenticate = false | |
$current_user = false | |
$auth_classes = array() | |
$title = 'Page window title' | |
$header = 'Page displayed header' | |
$enable_linea = false | |
Additional Inherited Members | |
Protected Member Functions inherited from NewSpecialOrdersPage | |
getPrintInfo ($username) | |
getCachePath () | |
getSuperDepartments ($dbc) | |
getOrderSuppliers ($dbc) | |
filterBuyerSupplier ($dbc, $buyer, $supplier, $table='PendingSpecialOrder') | |
getTextForOrders ($dbc, $ids, $table='PendingSpecialOrder') | |
limitTextSize ($items, $prefix, $lenLimit) | |
Protected Member Functions inherited from FannieRESTfulPage | |
checkRoute ($route, $try_routes) | |
bestRoute ($try_routes) | |
unknownRequestHandler () | |
unknownRequestView () | |
getModel ($database_connection, $class, $params, $find=False) | |
get_model ($database_connection, $class, $params, $find=False) | |
Protected Member Functions inherited from FanniePage | |
lineaJS () | |
helpModal () | |
OldSpecialOrdersPage::get_handler | ( | ) |
Set up optional per-member filtering
OldSpecialOrdersPage::get_view | ( | ) |
Lookup list of super departments for filtering purposes
Lookup list of vendors for filtering purposes These are vendors mentioned in an order which may not overlap perfectly with the actual vendors table
Filter the inital query by status
Also filter by member number if applicable
Get list of completed special orders filtered by status and optionally member number. If no member number specified, use paging with 3 months of orders per page
Capture all the order records in $orders For now assume they are all valid
Apply filters two and three Look up order IDs that match the filters These matching IDs will be compared to the IDs in $orders to get the final list
Turn the list of valid order IDs into query parameters. Next step is to look up line items in the each order to list all items and vendors on the order summary row
Paging links if not using member number filter