Commit graph

2622 commits

Author SHA1 Message Date
Lance Edgar b6daf4e853 Update changelog 2018-10-24 19:18:02 -05:00
Lance Edgar 0e167470e3 Add transform_pack_to_unit() method for purchase batch handler
this is really just for truck dump parent receiving batches, for now..?
2018-10-24 18:49:18 -05:00
Lance Edgar aca85830f3 Add required flag for app settings
mostly this is to make them *not* required, i.e. optional
2018-10-23 10:19:26 -05:00
Lance Edgar 7f64b617e5 Update changelog 2018-10-19 20:28:06 -05:00
Lance Edgar b955a25eb4 Add probe status for "critical low temp"
as opposed to "critical high temp"
2018-10-19 14:38:51 -05:00
Lance Edgar 0bd78e0afc Preserve "raw" data record when parsing KeHE invoice file
just in case caller finds it useful
2018-10-18 17:06:04 -05:00
Lance Edgar 0fc4bf49a1 Update release task to use twine for upload 2018-10-17 19:55:35 -05:00
Lance Edgar e130f00961 Update changelog 2018-10-17 19:29:18 -05:00
Lance Edgar d3278af93d Add link to the upgrade, within upgrade success/failure emails
just for convenience
2018-10-17 13:48:37 -05:00
Lance Edgar 01ff841c4e Add cache_permissions() function to db.auth module
for the sake of web app, to avoid repeated SQL queries when checking permissions
2018-10-17 12:43:54 -05:00
Lance Edgar ef4c30998b Use builtin csv.DicReader if running on python3
i.e. instead of custom `UnicodeDictReader`
2018-10-16 18:54:46 -05:00
Lance Edgar a0f8925bbf Update changelog 2018-10-11 17:24:22 -05:00
Lance Edgar f24f954f6c Use built-in csv.writer instead of custom one, for python3
this may still need a bit more work yet, we'll see...
2018-10-11 17:22:14 -05:00
Lance Edgar fd5bb8b8bc Fix "off by one" error in SIL writer
dang it!
2018-10-11 17:20:26 -05:00
Lance Edgar 521eab3333 Update changelog 2018-10-09 16:30:07 -05:00
Lance Edgar 79457d5af3 Refactor SIL writer a bit, per newer conventions 2018-10-07 23:13:28 -05:00
Lance Edgar 5e58644eba Move the filename_column() function to rattail.db.core module
this seems to be generally useful, might as well standardize some more
2018-10-07 16:29:05 -05:00
Lance Edgar 2e49603fd6 Never record change for EmailAttempt
i.e. it's assumed that datasync would never be interested in such things
2018-10-06 17:40:41 -05:00
Lance Edgar ce536700da Update changelog 2018-10-03 14:17:54 -05:00
Lance Edgar b6a506bee0 Rewrite truck dump claiming logic for purchase batch
this new logic seems fairly verbose, but also seems more straightforward.
hopefully we have done a good thing here...
2018-09-29 14:22:59 -05:00
Lance Edgar e6c7a3c958 Add enum for tempmon disk type 2018-09-28 19:14:07 -05:00
Lance Edgar 30065c3970 Update changelog 2018-09-26 16:59:48 -05:00
Lance Edgar 88b089c084 Add basic "out of stock" awareness for vendor invoices, receiving
this probably needs some work yet, we'll see
2018-09-25 19:11:34 -05:00
Lance Edgar f287636794 Add locate_product_for_entry() method for purchase batch handler
this logic needs to be customized for a client, so breaking it out from the
tailbone view code
2018-09-25 17:48:36 -05:00
Lance Edgar 0d0125f0a8 Try to locate product by vendor item code before alt code, for purchase batch 2018-09-22 20:34:33 -05:00
Lance Edgar 14800ef1ce Add item_entry field to all product-related batch rows
this is meant to capture the initial value from source data, which is then to
be used for product lookup / identification.  useful for doing subsequent
lookups, i.e. during batch refresh, after product master is updated
2018-09-22 20:17:39 -05:00
Lance Edgar 314186bd5c Remove unwanted sanity check
this was preventing us from deleting a row from truck dump child batch, which
was created from invoice file but had no `po_total`
2018-09-22 19:26:00 -05:00
Lance Edgar 020d2f06b5 Don't allow NULL for batch complete flags
the purist in me wants to allow null, but it seems more practical to assume all
flags are either true or false
2018-09-22 19:08:58 -05:00
Lance Edgar dbfb59826c Update changelog 2018-09-20 18:02:10 -05:00
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