Commit graph

2040 commits

Author SHA1 Message Date
Lance Edgar d40015c686 Defer some imports, to avoid errors when sqlalchemy not installed 2018-07-05 22:05:21 -05:00
Lance Edgar 56735e5f23 Skip mysql db dumps if no mysql binary 2018-07-05 16:51:26 -05:00
Lance Edgar b9b66f636e Fix bug when constructing pg_dump command 2018-07-05 03:18:51 -05:00
Lance Edgar f185169c43 Add generic silent.conf
i.e. to stop using cron.conf, since this lets us avoid specifying log file
2018-07-05 02:18:25 -05:00
Lance Edgar e0295ed817 Fix how verbosity is handled for db dump commands
i.e. don't include empty string as arg
2018-07-05 02:15:03 -05:00
Lance Edgar f2377be261 Suppress verbosity for db dump commands, for rattail backup
for now, until we figure out how we want to handle verbosity...
2018-07-05 02:09:16 -05:00
Lance Edgar 08730f10e2 Add new backup command
i.e. `rattail backup`, meant to (hopefully) handle the common use cases...
2018-07-05 00:39:52 -05:00
Lance Edgar 3224f2d607 Always upgrade pip when running tox 2018-07-03 20:54:08 -05:00
Lance Edgar f985d83403 Update changelog 2018-07-03 20:50:59 -05:00
Lance Edgar 204566187a Add Product.default_pack, plus is_unit_item() and is_pack_item() 2018-07-03 20:46:45 -05:00
Lance Edgar b11ff75638 Update changelog 2018-07-03 18:55:38 -05:00
Lance Edgar f6775f5d8b Add setup/teardown handler hooks when cloning a batch
also fix a small rowcount bug
2018-07-03 18:53:24 -05:00
Lance Edgar 3f924b14f0 Add basic support for "command line" filemon action 2018-07-01 22:02:13 -05:00
Lance Edgar eb08988c79 Add customization flags for rattail's Product importer, category fields
wrt how an "unknown" category code/number should be handled
2018-07-01 16:51:04 -05:00
Lance Edgar 7cfd48bb08 Update changelog 2018-07-01 14:50:44 -05:00
Lance Edgar a41029d37e Add some customization flags for rattail's Product importer
wrt how an "unknown" report code should be handled
2018-07-01 14:46:35 -05:00
Lance Edgar 159dd9cddb Update changelog 2018-06-28 15:13:43 -05:00
Lance Edgar 2cb5838f8a Allow refresh for 'completed' batch, by default
handlers are welcome to override this, but it seems the most pragmatic default
2018-06-27 20:02:17 -05:00
Lance Edgar ff9b2593d5 Add "non-creditable" status for purchase credit 2018-06-27 16:47:25 -05:00
Lance Edgar 938c29d5b7 Add credit_total field for (batch) purchase credits 2018-06-27 15:19:18 -05:00
Lance Edgar 78a2e6a01e Whoops, only show subcommand help if we know user asked for it 2018-06-27 14:12:55 -05:00
Lance Edgar adb85b8b19 Show subcommand help as early as possible
e.g. `rattail import-rattail -h' was causing logging to be configured, which
can often fail if no config file is given
2018-06-27 14:09:16 -05:00
Lance Edgar abbce277cd Allow user to overwrite unit cost for inventory batch rows
also, allow unit cost to be zero
2018-06-27 13:55:32 -05:00
Lance Edgar e44e830d98 Fix bug when setting status text for vendor catalog row 2018-06-27 12:19:01 -05:00
Lance Edgar c83715706e Update changelog 2018-06-18 17:16:56 -05:00
Lance Edgar 9177915191 Add --max-diffs arg for importer commands
to affect how many diffs are rendered for warning emails
2018-06-18 17:07:05 -05:00
Lance Edgar e8b946cb48 Update changelog 2018-06-18 15:24:52 -05:00
Lance Edgar bc2fa5044f Add index on upload_time for Trainwreck transaction table 2018-06-18 15:23:45 -05:00
Lance Edgar 82afc53fb8 Add rattail.time.get_monday() convenience function 2018-06-18 15:22:20 -05:00
Lance Edgar 8711c331bf Update changelog 2018-06-14 12:17:40 -05:00
Lance Edgar 1d8ca3bce3 Add exempt_from_gross_sales flag for department and trainwreck line item 2018-06-14 12:03:59 -05:00
Lance Edgar 2f78be1d38 Add ExcelWriter.auto_resize() method
tries to auto-size all column widths according to simple data length
2018-06-13 20:59:35 -05:00
Lance Edgar 790c41165d Add docstrings for Category table 2018-06-13 20:37:13 -05:00
Lance Edgar 870fac5798 Cache categories by code instead of number
only one place which i know is affected... most code should just cache their
own data instead of using these classes anyway
2018-06-13 20:30:14 -05:00
Lance Edgar 2bf88727c5 Fix bug when --max-delete used for importer commands
when limit is reached, command should stop but should not fail
2018-06-11 12:42:03 -05:00
Lance Edgar 1bb58ce571 Update changelog 2018-06-09 16:57:48 -05:00
Lance Edgar cc5e1c9b8d Add Customer.one_person() convenience method 2018-06-09 16:38:39 -05:00
Lance Edgar 1a786c6557 Add update-costs command for making future costs become current
this just assumes any future cost which starts "before now" is game
2018-06-07 16:47:03 -05:00
Lance Edgar 99787d19c8 Update changelog 2018-06-07 14:31:03 -05:00
Lance Edgar 065b0312bb Add versioning workaround support for batch actions
* commands accept `--versioning`, `--no-versioning` args
* use `finish()` progress method when ending a loop
* add `SocketProgress` (and `FileProgress`)
* commands accept `--progress-socket` arg
* add `do_*()` handler methods, for wrapping main actions
* populate, refresh, execute of batch may be done via command line
* handler declares which action(s) may (not) be done with versioning
* handler declares which version models to catch-up after execute
2018-06-07 12:37:39 -05:00
Lance Edgar bac7ebab7e Don't record changes for any model ending in 'Version' 2018-06-07 12:35:00 -05:00
Lance Edgar 0effd0b3b8 Allow config to force the To: address for all generated emails
useful for demo, dev etc.
2018-06-04 19:07:17 -05:00
Lance Edgar 38d0f10ad9 Set continuum username for all datasync watchers, if present 2018-06-04 18:23:34 -05:00
Lance Edgar 175a5ff330 Update changelog 2018-06-04 14:07:53 -05:00
Lance Edgar 17f61dec13 Make some importers smarter when dealing with NULL primary key values 2018-06-01 15:03:21 -05:00
Lance Edgar 35e05d385b Add normalize_lastrun() convenience method for datasync watchers 2018-06-01 15:02:59 -05:00
Lance Edgar d6c8aff9e7 Add "null" datasync consumer
can sometimes be useful for testing new watchers...
2018-06-01 15:02:35 -05:00
Lance Edgar 5230d38176 Add Vendor.abbreviation to schema 2018-06-01 15:02:21 -05:00
Lance Edgar 9683d4d978 Add 'hidden' flag for inventory adjustment reasons
don't show those when prompting user for a reason
2018-06-01 13:00:42 -05:00
Lance Edgar 579ef8b519 Update changelog 2018-05-30 16:34:39 -05:00