sde1000 / quicktill

Figure out where all the money and stock went to
GNU General Public License v3.0
43 stars 8 forks source link

Configuration table #216

Closed sde1000 closed 3 years ago

sde1000 commented 3 years ago

More configuration could be moved into the database. Things that are reasonably static could be cached client-side and a database notification sent by a trigger could be used to invalidate the cache.

The configuration can be a simple key->value store, although it might be useful to split keys into "section" and "name" to make it easier to group keys for any plugins that use this mechanism.

Core config this could be used for:

Xero integration config this could be used for:

How would we make a nice user interface for this, to make keys discoverable and ensure they are set to appropriate things? Something like the permissions system, where missing keys and default values are added to the database when the till is started up?

sde1000 commented 3 years ago

Tillweb interface for editing configuration is in commit f553da65d8605240a813dcf6c4bddbc82e3b84c3