Commit graph

2493 commits

Author SHA1 Message Date
Lance Edgar 9d5e332e81 Let caller decide whether to auto-create departments for category import 2018-09-20 17:51:51 -05:00
Lance Edgar 0fb20fdb16 Update changelog 2018-09-20 16:17:47 -05:00
Lance Edgar 41450bbe57 Add new "partially claimed" status for truck dump parent batch rows
row starts off with "no claims" then "partially claimed" then "fully claimed"
2018-09-20 15:52:32 -05:00
Lance Edgar 0d8587a53e Add app setting to show/hide product images for mobile purchasing
i.e. when viewing a row of a purchase batch
2018-09-19 16:41:20 -05:00
Lance Edgar 5c31927580 Prefer truck dump child row over parent, wrt case_quantity
i.e. when calculating how many units of the truck dump parent row have been
claimed by child row(s)
2018-09-19 15:19:40 -05:00
Lance Edgar 6dcdbe8921 Add locate_product() method for 'purchase' batch handler
to better allow override via subclassing
2018-09-19 14:28:44 -05:00
Lance Edgar e7a5e0867e Make sure we create unit item before the pack which references it
otherwise we have data integrity errors, yuck
2018-09-19 12:32:01 -05:00
Lance Edgar 204bdd35c6 Add docstring for Role.name 2018-09-19 12:20:30 -05:00
Lance Edgar 41565be32e Add some docs for Employee table columns 2018-09-10 18:24:35 -05:00
Lance Edgar 5f9d44978c Update changelog 2018-08-24 13:39:00 -05:00
Lance Edgar 5b1008a83e Increase size of Category.code to 20 chars
not real sure where the 8 chars came from, but this seems safe...
2018-08-24 12:50:31 -05:00
Lance Edgar a58ac92321 Add new "quick receive" settings for mobile receiving 2018-08-16 22:21:17 -05:00
Lance Edgar 097aba2cbc Update changelog 2018-08-14 17:01:34 -05:00
Lance Edgar 37b827f6e0 Claim 'expired' credits when adding child invoice to truck dump parent 2018-08-14 14:01:08 -05:00
Lance Edgar bc1a180639 Add support for product_item_id field in ProductCost importer
probably need to do more of this kind of thing yet, but this is enough to fix
at least one bug...
2018-08-13 14:24:08 -05:00
Lance Edgar 39d54e1e33 Add app setting for mobile products "quick lookup"
i.e. to just show UPC search box instead of normal "results grid"
2018-08-09 22:10:07 -05:00
Lance Edgar 6656eed556 Declare luigi as dependency when running tests with coverage 2018-08-09 13:55:16 -05:00
Lance Edgar f91ee526a5 Add OvernightTask for use with overnight automation via Luigi 2018-08-09 13:47:59 -05:00
Lance Edgar bbac02f098 Add backref for ProductCost._vendor_catalog_rows
just in case one needs quick access to those
2018-08-07 20:13:49 -05:00
Lance Edgar 670af5641c Add extra "claim" logic when refreshing truck dump parent or child batch
in an attempt to minimize steps required by user
2018-08-07 17:29:12 -05:00
Lance Edgar 4abe9d2523 Add PurchaseBatchRowClaim.is_empty() convenience method
also we now delete orphan records if "claiming row" is deleted
2018-08-07 15:18:06 -05:00
Lance Edgar fbddbf5f69 Tweak some code per python 3
make sure we have an actual list there, not iterator
2018-08-07 12:38:28 -05:00
Lance Edgar 0bda93afeb More tweaks for receiving batch status refresh 2018-08-02 18:54:35 -05:00
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