CORE POS - IS4C
The CORE POS front end
|
Static Public Member Functions | |
static | tDataConnect () |
static | pDataConnect () |
static | mDataConnect () |
static | getsubtotals () |
static | LineItemTaxes () |
static | gettransno ($CashierNo) |
static | testremote () |
static | uploadtoServer () |
static | getMatchingColumns ($connection, $table_name, $table2="") |
static | localMatchingColumns ($connection, $table1, $table2) |
static | uploadCCdata () |
static | loadglobalvalues () |
static | loadglobalvalue ($param, $val) |
static | setglobalvalue ($param, $value) |
static | setglobalvalues ($arr) |
static | setglobalflags ($value) |
static | changeLttTaxCode ($fromName, $toName) |
static | rotateTempData () |
static | clearTempTables () |
static | logger ($msg="") |
Functions related to the database
|
static |
Change one tax code in all items of localtemptrans to a different one. Parameters are the names of the taxes, as in taxrates.description
$fromName | The name of the tax changed from. |
$fromName | The name of the tax changed to. |
|
static |
Truncate current transaction tables. Clears data from:
Success or failure is based on whether translog.localtemptrans is cleared correctly.
|
static |
Get a list of columns that exist on the local db and the server db for the given table.
$connection | a SQLManager object that's already connected |
$table_name | the table |
$table2 | is provided, it match columns from local.table_name against remote.table2 |
Cache column information by table in the session In standalone mode, a transfer query likely failed and the cache may be wrong so always requery in that case.
|
static |
Load values from subtotals view into session. Essentially refreshes totals in the session.
9May14 Andy I belive this query is equivalent to the old subtotals => lttsubtotals => lttsummary I've omitted tax since those are already calculated separately. A few conditions here should obviously be more configurable, but first I want to get rid of or simply the old nested views
fsEligible is the complicated one. That's:
If FS eligible amount is greater than the current transaction total and total is positive, limit the eligible amount to the current total. This may not be technically correct but the resulting change causes a lot of headaches depending what kind of change is allowed for earlier tenders, if change is allowed for those tenders at all.
The other case is a refund to FS. Over-tendering on a refund doesn't make any sense.
|
static |
Get the next transaction number for a given cashier
$CashierNo | cashier number (emp_no in tables) |
|
static |
Calculate taxes using new-style taxView.
|
static |
Set new value in session.
$param | keycode |
$val | new value |
|
static |
Read globalvalues settings into session.
|
static |
Get a list of columns in both tables.
$connection | a SQLManager object that's already connected |
$table1 | a database table |
$table2 | a database table |
|
static |
Log a message to the lane log
$msg | A string containing the message to log. |
|
static |
Connect to the remote server database
|
static |
Connect to the operational database (local)
Add both local databases to the connection object
19Mar2015 Temporary measure to support failback using old, non-adodb SQLManager
Switch connection object to the requested database
|
static |
Rotate current transaction data Current data in translog.localtemptrans is inserted into:
Success or failure is based on whether or not the insert into translog.dtransactions succeeds. That's the most important query in terms of ensuring data flows properly to the server.
If store_id column is present in lane dtransactions table and the lane's store_id has been configured, assign that value to the column. Otherwise it may be handled but some other mechanism such as triggers or column default values.
|
static |
Sets TTLFlag and FntlFlag in globalvalues table
$value | value for both fields. |
|
static |
Update setting in globalvalues table.
$param | keycode |
$value | new value |
|
static |
Update many settings in globalvalues table and in session
$arr | An array of keys and values |
|
static |
Connect to the transaction database (local)
Add both local databases to the connection object
19Mar2015 Temporary measure to support failback using old, non-adodb SQLManager
Switch connection object to the requested database
|
static |
See if the remote database is available This function calls uploadtoServer() if the initial test works.
|
static |
Transfer credit card tables to the server. See uploadtoServer().
|
static |
Copy tables from the lane to the remote server The following tables are copied:
On success the local tables are truncated. The efsnet tables are copied in the uploadCCdata() function but that gets called automatically.