CORE POS - IS4C
The CORE POS front end
|
Public Member Functions | |
check ($str) | |
parse ($str) | |
voiditem ($item_num, $json) | |
voidid ($item_num, $json) | |
voidupc ($upc, $json, $item_num=-1) | |
doc () | |
Public Member Functions inherited from Parser | |
check ($str) | |
parse ($str) | |
default_json () | |
isLast () | |
isFirst () | |
doc () | |
Static Public Member Functions | |
static | adminLoginCallback ($success) |
Static Public Member Functions inherited from Parser | |
static | get_parse_chain () |
Static Public Attributes | |
static | $adminLoginMsg = 'Void Limit Exceeded. Login to continue.' |
static | $adminLoginLevel = 30 |
Void::parse | ( | $str) |
Voided values: 2 => "you saved" line 3 => subtotal line 4 => discount notice 5 => % Discount line 6 => tare weight, case disc notice, 8 => FS change, regular change 10 => tax exempt
Void::voidid | ( | $item_num, | |
$json | |||
) |
Void record by trans_id
$item_num | [int] trans_id |
$json | parser return value structure |
This marks the specified record as voided and adds an offsetting record also marked voided Neither record can be subsequently modified via voids.
Check if the voiding item will exceed the limit. If so, prompt for admin password. For baffling reasons, the void amount $row['total'] is postive on open rings
tenderTotal => tenders have been applied Amount to be voided is greater than remaining balance of the transaction. Restrict voids if cash is involved.
Void::voiditem | ( | $item_num, | |
$json | |||
) |
Lookup item and decide whether to void by simply reversing the record or by applying product UPC
$item_num | localtemptrans.trans_id value to void |
$json | parser return value structure |
Void::voidupc | ( | $upc, | |
$json, | |||
$item_num = -1 |
|||
) |
$upc | [string] upc to void. Optionally including quantity and asterisk |
$item_num | [int] trans_id of record to void. Optional. |
$json | parser return value structure |
If UPC contains an asterisk, extract quantity and validate input. Otherwise use quantity 1.
11Jun14 Andy Convert unitPrice to/from sale price based on member status. I'm not sure this is actually necessary.
If the total does not match quantity times unit price, the cashier probably manually specified a quantity i.e., VD{qty}*{upc}. This is probably OK for non-weight items. Each record should be the same and voiding multiple in one line will usually be fine.
Check if the voiding item will exceed the limit. If so, prompt for admin password.