Commit graph

3398 commits

Author SHA1 Message Date
Lance Edgar 7ab16a07ad Fix logic for purchase batch calc_best_fit() 2018-07-10 14:02:58 -05:00
Lance Edgar 4db05e9706 Refactor truck dump "claiming" a bit, add "case quantity differs" status 2018-07-10 12:38:23 -05:00
Lance Edgar 5100eede5e Add modified timestamp to all batch rows 2018-07-10 09:04:53 -05:00
Lance Edgar 388c230c69 Add generic --verbose arg for all commands
each subcommand is free to use or ignore it
2018-07-09 21:23:52 -05:00
Lance Edgar b55e2b8ae4 Allow sync of unit_uuid for Rattail -> Rattail ProductImporter 2018-07-09 15:38:41 -05:00
Lance Edgar 5f773ecfce Update changelog 2018-07-09 14:26:20 -05:00
Lance Edgar 88cd7eff3f Grow size of total_cost field for inventory batch rows
hopefully this is plenty big..?
2018-07-09 13:47:49 -05:00
Lance Edgar 8868f34880 Update changelog 2018-07-06 13:12:19 -05:00
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