Commit graph

3270 commits

Author SHA1 Message Date
Lance Edgar e7482acb9e Tweak how we set receiving batch status
add another status code, plus use "ok" for empty truck dump parent
2018-08-02 16:53:50 -05:00
Lance Edgar 976d7ffe8d Update changelog 2018-07-31 14:10:00 -05:00
Lance Edgar 3cc58fc8fb Configure data versioning within make_config()
really this change is for the sake of ad-hoc use within python shell or
scripts.  the idea being, "everything" should be configured whenever
`make_config()` is invoked; a separate call should not be required.
2018-07-31 14:05:58 -05:00
Lance Edgar d0dd46b5e9 Update changelog 2018-07-29 14:28:59 -05:00
Lance Edgar f701b51744 Fix str(Message) when subject contains unicode chars
guess we'll see if this is enough...
2018-07-29 14:26:57 -05:00
Lance Edgar 1f3443d6ea Update changelog 2018-07-26 13:47:56 -05:00
Lance Edgar 6dfb3b8ac1 Define some settings for purchasing / receiving 2018-07-24 22:59:58 -05:00
Lance Edgar 0e8a7b107c Allow consulting the db for core 'product_key' setting
already exposing that in App Settings page...
2018-07-24 21:43:45 -05:00
Lance Edgar 40e1c892ba Update changelog 2018-07-19 17:36:09 -05:00
Lance Edgar caf52c5206 Send email when upgrade is performed, whether success or failure 2018-07-18 21:04:51 -05:00
Lance Edgar 00ad3ded8f Tweak how we copy product key, do lookup for some receiving batches
i.e. those which are populated from Purchase object
2018-07-18 16:22:46 -05:00
Lance Edgar 5d649f3683 Add basic settings module
yay, this should be quite helpful...
2018-07-18 13:06:54 -05:00
Lance Edgar 3929ec93e3 Add PurchaseBatch.order_quantities_known and is_truck_dump_parent() etc.
the latter being just for improved code readability.  if order quantities are
known then some UI gets turned on to expose that info, otherwise not
2018-07-17 20:37:16 -05:00
Lance Edgar 1edc94807c Let config define a "not found" product image URL
specifically this is meant to address the case where `product.upc = None`
2018-07-17 19:42:50 -05:00
Lance Edgar 3a39c7caa3 Various tweaks to purchase batch handler logic
* add `allow_cases()` and `allow_expired_credits()` to control related UI etc.
* add `populated_from_purchase()` to indicate order quantities are (un)known
* don't fall back to "default" cost for product, use only if from batch vendor
* fix `po_total` when removing row from batch
* make consuming `on_order` counts optional for receiving batch execution
2018-07-17 19:38:30 -05:00
Lance Edgar 120a3e45ed Fix batch row count when removing row from batch 2018-07-17 19:37:01 -05:00
Lance Edgar 8e24dfa886 Add RattailConfig.product_key() and product_key_title()
hopefully this makes for some easier customization...
2018-07-12 21:03:05 -05:00
Lance Edgar b732e2b7bc Add api.get_product_by_item_id() convenience function 2018-07-12 21:02:47 -05:00
Lance Edgar 4476dad96b Update changelog 2018-07-11 10:25:28 -05:00
Lance Edgar 1ffaacb3d2 Add customization hook for datasync consumer when fetching local object 2018-07-11 10:08:29 -05:00
Lance Edgar 5416fdfdbe Increase size of source, consumer fields for datasync change 2018-07-11 10:07:08 -05:00
Lance Edgar 2562a34628 Don't allow execute of truck dump parent batch until fully claimed by children 2018-07-10 16:30:33 -05:00
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