Commit graph

3398 commits

Author SHA1 Message Date
Lance Edgar e3dadcf32b Add "customer fields" for Person importer
to allow a simple "one to one" association for Customer/Person
2020-03-16 19:43:10 -05:00
Lance Edgar 10230aa5fe Stash a reference to handler instance, when creating datasync consumer
at least, i can't see why not to do that...
2020-03-15 14:26:19 -05:00
Lance Edgar 4c0af99baf Fix the Subdepartment importer per real-time datasync use 2020-03-15 14:24:56 -05:00
Lance Edgar 50924da9d6 Add revoke_permission() convenience auth function 2020-03-15 11:38:39 -05:00
Lance Edgar a7e79c9062 Add setting for display of POD images in Tailbone 2020-03-14 16:37:28 -05:00
Lance Edgar e7c34cb9e1 Tweak to fix a test 2020-03-13 16:26:11 -05:00
Lance Edgar dc6ef1f214 Sever the "backref" tie for Person._customers
per latest SQLAlchemy which warns of deprecation, and since i don't believe the
backref was specifically needed in this case

cf. https://docs.sqlalchemy.org/en/13/changelog/changelog_13.html#change-7fb56b0269d9a13d31cc33857913a961
2020-03-13 16:13:41 -05:00
Lance Edgar 1406eec4ca Add some logging when running an upgrade command
need some warning/clue when the upgrade fails during EOD
2020-03-12 12:36:33 -05:00
Lance Edgar d0f4993985 Update changelog 2020-03-11 13:31:16 -05:00
Lance Edgar 11ffde2c49 Add logic for Order Form worksheet, in purchase batch handler
i.e. get this out of Tailbone!
2020-03-06 19:49:38 -06:00
Lance Edgar fad875c3cf Update changelog 2020-03-05 13:02:59 -06:00
Lance Edgar 19359842a9 Fix some math/logic for calculating "pending" amounts in purchase batch
refs #5751
2020-03-05 12:51:26 -06:00
Lance Edgar 7ffa44f0a8 Add default implementation logic for Importer.cache_local_data()
subclass must define `get_local_objects()`
2020-03-04 12:58:36 -06:00
Lance Edgar 57a58f4403 Raise explicit error in data_diffs() to tell which side is missing data 2020-03-04 12:57:33 -06:00
Lance Edgar 2cbbbfdb37 Add refresh_many() method for batch handlers 2020-03-02 18:08:17 -06:00
Lance Edgar 20a14ca39f Update changelog 2020-03-02 11:49:58 -06:00
Lance Edgar aebc82ff20 Grow item_entry field for batches, to accommodate product_uuid 2020-03-01 16:37:40 -06:00
Lance Edgar 30315c53a5 Update changelog 2020-03-01 12:23:21 -06:00
Lance Edgar 180064b9d3 Implement GPC.__lt__() rich comparison
since `__cmp__()` is no longer used in python3.  probably should implement more
of these at some point, but this was the only one i needed so far
2020-02-28 13:17:11 -06:00
Lance Edgar 97f22e62df Add Employee.sorted_history() and improve get_current_history()
to better handle case of missing dates
2020-02-28 13:08:48 -06:00
Lance Edgar 5da66e67de Delete each row in batch, one by one, when deleting batch
to avoid FK constraint issues in some cases
2020-02-28 12:29:00 -06:00
Lance Edgar badc3782cc Stop breaking on bad input, for purchase batch update_row_quantity() 2020-02-26 17:44:36 -06:00
Lance Edgar faaf23d04a Update changelog 2020-02-26 15:03:14 -06:00
Lance Edgar 06b9741346 Add 60-second delay for "datasync wait" logic in Luigi overnight tasks 2020-02-26 15:01:52 -06:00
Lance Edgar a08808c620 Split docs into 2 primary sections, "narrative" and "API" 2020-02-25 14:53:53 -06:00
Lance Edgar 76811ef387 Update the *calculated* PO total when removing row from ordering batch
i.e. instead of the "official" PO total.  plus more docs!
2020-02-24 11:41:45 -06:00
Lance Edgar f1b0342578 Fix PO total calculation when cases_ordered is updated 2020-02-24 11:04:01 -06:00
Lance Edgar cf8b0282a5 Add update_row_quantity(), order_row() methods for purchase batch handler 2020-02-23 20:12:17 -06:00
Lance Edgar a39c095543 Update API docs for "purchase" batch handler 2020-02-23 19:04:31 -06:00
Lance Edgar 421416cadc Add basic glossary to docs 2020-02-23 19:02:20 -06:00
Lance Edgar 7ceeb369c1 Update API docs for batch handlers 2020-02-22 20:25:03 -06:00
Lance Edgar 470ec11d1e Update changelog 2020-02-21 14:29:21 -06:00
Lance Edgar 4ebd4b31d6 Tweak how output of rattail runsql command is handled
to avoid "scientific notation" formatting for UPC
2020-02-20 16:54:05 -06:00
Lance Edgar abf9f95478 Update changelog 2020-02-19 10:48:12 -06:00
Lance Edgar 6adf3b6282 Use progress when writing rows to Excel 2020-02-18 19:45:20 -06:00
Lance Edgar 3e342f798a Fix default --keep args for borg prune command
whoops, those must be strings
2020-02-13 11:42:02 -06:00
Lance Edgar b906c463b2 Let config define --keep args for borg prune command 2020-02-12 17:04:54 -06:00
Lance Edgar 8599ac1a79 Update changelog 2020-02-12 14:47:12 -06:00
Lance Edgar 213a736e23 Restructure the KeHE invoice parser some more, to add yet another format
i guess they have 2 new formats, and 1 old one.  they all are pretty dang
similar but have some syntax differences
2020-02-11 16:08:12 -06:00
Lance Edgar 3004172893 Add support for newer file format, in KeHE invoice parser 2020-02-11 15:42:11 -06:00
Lance Edgar 04e1f58194 Add "current price" to schema for pricing batch; populate on refresh 2020-02-07 18:13:06 -06:00
Lance Edgar 4c78223eb9 Add new ProblemReportEmail base class, for simpler email previews
just so some of the template context can be provided automatically.  although,
this *is* a bit heavy currently - should let caller pass in email handler etc.
2020-02-07 16:21:14 -06:00
Lance Edgar 736bab2c7d Update changelog 2020-02-03 18:45:28 -06:00
Lance Edgar 7cc2a27213 Don't consult the DB when fetching configured enum module
at least by default; but can be overridden if anyone actually thinks that's
necessary i guess...
2020-01-30 14:40:21 -06:00
Lance Edgar 220d338516 Add custom table views, for new project template
also set default app title in config
2020-01-29 23:54:37 -06:00
Lance Edgar ffc0e58081 Add some custom tables, model importers, for new project template 2020-01-29 21:26:38 -06:00
Lance Edgar 17e2184536 Fix some password prompts, for python 3 2020-01-29 21:12:30 -06:00
Lance Edgar d22f2b88cb Remove "__future__" imports from project scaffold template 2020-01-29 21:12:06 -06:00
Lance Edgar 6d82a73f2d Update changelog 2020-01-28 15:10:17 -06:00
Lance Edgar 98ad931378 Add "price breaches SRP" status for pricing batch rows 2020-01-28 11:59:25 -06:00