Open Software


register

The register application is a till for an automated bank of dispensing droppers. It lists the dispensed items, maintaining the tally. An internal stock count of items in the droppers is maintained.

Payment can be made electronically via a bank.

Requires WIN, digilines, lwcomponents droppers

A settings file of the same path as the application file appended with .ini contains the following:

account=<bank account name>
retailer=<retailer's title>
printer=<channel>
banknetwork=<bank network>
bankname=<bank name>

The account must be specified or the application will issues an error message and drop out. The bank transfer dialog does not have a to field; it is taken from here.

If retailer is specified, it appears as the application's title and on printed receipts.

If printer is specified the printer on that digilines channel is used to print the receipts. If not specified no receipts are printed.

The bank's network (connection application id), if omitted defaults to mine_bank_network.

The bank computer's name, if omitted defaults to mineBank.

A data file of the same path as the application file appended with .dat contains the item information. The format is a table with a key of the digilines channel of each dropper in use. Each dropper key is a table with tree keys:item (string), price (number) and qty (number). These values are maintained by the application, but the dropper entries must be present to be recognized.

return {
   ["d1"] = { item = "", price = 0.0, qty = -1 },
   ["d2"] = { item = "", price = 0.0, qty = -1 },
   ["d3"] = { item = "", price = 0.0, qty = -1 },
   ["d4"] = { item = "", price = 0.0, qty = -1 },
   ["d5"] = { item = "", price = 0.0, qty = -1 },
   ["d6"] = { item = "", price = 0.0, qty = -1 },
   ["d7"] = { item = "", price = 0.0, qty = -1 },
   ["d8"] = { item = "", price = 0.0, qty = -1 },
}

The dropper channels can be as desired.

If the value of qty is less than zero, the item will tally but not decrement the stock level.


 Download register
 Download data file
 Download settings file


A part of Open Software