CORE POS - IS4C
The CORE POS front end
|
Public Member Functions | |
preprocess () | |
head_content () | |
body_content () | |
Public Member Functions inherited from BasicPage | |
__construct () | |
head_content () | |
body_content () | |
preprocess () | |
print_page () | |
add_onload_command ($str) | |
hide_input ($bool) | |
input_header ($action="") | |
noinput_header () | |
scale_box () | |
scanner_scale_polling ($include_scans=true) | |
footer () | |
change_page ($url) | |
default_parsewrapper_js ($input="reginput", $form="formlocal") | |
noscan_parsewrapper_js () | |
Public Attributes | |
const | MODE_INTEGER = 0 |
const | MODE_PRECISE = 1 |
Protected Attributes | |
$box_color | |
$msg | |
Protected Attributes inherited from BasicPage | |
$onload_commands | |
$page_url | |
$body_class ='mainBGimage' | |
$mask_input = False | |
This page is for keying in quantities when an item is configured to require a manually keyed quantity.
Two GET arguments are expected:
MODE_INTEGER (0) is for items that are not sold by weight. Fractional or decimal quantities are not permitted. The value entered is exactly what is used for quantity.
MODE_PRECISE (1) is for items that are sold by weight but are too light to measure accurately with the regular scanner-scale. This value must be exactly three digits and will be divided by 1000. That is, entering "123" gives an effective quantity of 0.123. This is only appropriate for items that always weigh less than 1.0.
QuantityEntryPage::preprocess | ( | ) |
Clear cancels
If it's a number, check error conditions. The number should always be an integer. In precision mode the number must be exactly three digits. This mode is for very light items that should be measured in thousands instead of hundreths. If the number is valid it's converted back to decimal in precision mode.