Commit graph

3860 commits

Author SHA1 Message Date
Lance Edgar de40a2169e Add beaker cache flag to config file templates 2022-08-03 16:25:39 -05:00
Lance Edgar ac64833556 Add initial support for Beaker caching of config values from DB
refs #8
2022-08-03 15:14:45 -05:00
Lance Edgar 68b3011ad9 Deprecate the old rattail.db.api.settings module
technically this is still being used here and there in the wild, but
that really needs to stop so that we can guarantee validity of beaker
cache when that is being used
2022-08-03 14:50:53 -05:00
Lance Edgar 721dadc131 Add "touch" logic for employee handler 2022-08-03 11:12:44 -05:00
Lance Edgar 3a7d5a6486 Update changelog 2022-08-02 19:12:23 -05:00
Lance Edgar e4efc6619b Use single comma-delimited To: header for multiple email recipients
apparently all this time we have often been sending messages which had
multiple To: headers, but that violates the standard

recently found a bounce in mail logs with the following warning:

    Our system has detected that this message is not RFC 5322 compliant: duplicate headers
2022-08-02 19:07:40 -05:00
Lance Edgar ffa1537d7a Remove unused module 2022-08-01 21:32:44 -05:00
Lance Edgar 58129232e6 Remove reference to old command 2022-08-01 21:29:25 -05:00
Lance Edgar 96ec45cd63 Remove unused command 2022-08-01 21:23:26 -05:00
Lance Edgar d006a6d4f3 Remove unused command 2022-08-01 21:16:57 -05:00
Lance Edgar ad5df3a662 Remove "basic db cache" for config from DB settings table
turns out that won't even work right

refs #8
2022-08-01 21:12:25 -05:00
Lance Edgar 0ce1f4ac85 Fix test 2022-07-31 20:45:30 -05:00
Lance Edgar 35e40b4c4e Add basic db cache mechanism for RattailConfig
refs #8
2022-07-31 20:31:38 -05:00
Lance Edgar 6edc9b10d0 Update changelog 2022-07-29 10:58:27 -05:00
Lance Edgar 8361148b2c Avoid more sessions in datasync, when fetching config from DB
ugh, there are probably even more somewhere..?
2022-07-27 14:02:53 -05:00
Lance Edgar 5e978e8f7b Update changelog 2022-07-27 10:20:13 -05:00
Lance Edgar e2e3900ea7 Add basic python3 support for rattail import-sample cmd 2022-07-26 14:25:04 -05:00
Lance Edgar 5685603721 Add --list-types arg for make-config cmd
also remove config templates for with[out]-versioning, since those are
no longer needed thanks to global cmd args of same name
2022-07-26 14:25:04 -05:00
Lance Edgar 6d8e1e9ffd Avoid extra sessions in datasync, when fetching config from DB
finally, tracked down why extra sessions were happening..i think.
there may be more instances of this problem elsewhere; will fix as
they're encountered

refs #6, #7
2022-07-26 14:24:59 -05:00
Lance Edgar 9820a0f0f4 Update changelog 2022-07-25 11:41:38 -05:00
Lance Edgar 033102807e Update invoice parser for KeHE, per new format 2022-07-25 11:13:55 -05:00
Lance Edgar d094569b0b Add can_auto_receive() method for purchase batch handler 2022-07-24 22:28:44 -05:00
Lance Edgar 2cbd84768e Add AppHandler.today() method 2022-07-24 21:09:01 -05:00
Lance Edgar c6756e8416 Improve how receiving batch is created from purchase 2022-07-24 21:08:46 -05:00
Lance Edgar e77ce7f536 Maybe omit rows w/ no qty when making purchase from ordering batch
probably this should be the default behavior, but for now i'm leaving
legacy behavior as default
2022-07-24 15:04:16 -05:00
Lance Edgar 1b69309698 Add primary flag for ContactMixin.add_email() and add_phone() 2022-07-24 13:21:01 -05:00
Lance Edgar 780f7813cf Update changelog 2022-07-22 15:46:09 -05:00
Lance Edgar ca503cefa4 Reverse default flags for auto-creating brand in product importers
this preserves former behavior by default, and probably makes more sense
2022-07-22 12:46:56 -05:00
Lance Edgar 032dcc3467 Update changelog 2022-07-22 12:40:27 -05:00
Lance Edgar f34703ea3d Add flags for auto-creating brand in product importers
if brands are tracked with foreign system key, then auto-create is
probably not suitable since new brand won't get the key
2022-07-22 12:38:16 -05:00
Lance Edgar dfadd3fbe2 Make caching products optional, when creating vendor catalog batch 2022-07-19 15:50:10 -05:00
Lance Edgar f97c452f8e Add upc_check_digits_needed() method for products handler 2022-07-19 13:18:53 -05:00
Lance Edgar 27d18c42c9 Update changelog 2022-07-19 10:40:36 -05:00
Lance Edgar c987be5b3e Add retry loop for starting transaction in datasync consumer 2022-07-19 10:39:41 -05:00
Lance Edgar 9e8fe47020 Add get_last_patronage_date() method for membership handler 2022-07-19 09:51:53 -05:00
Lance Edgar 5576664d1a We always want "unit name" for UOM choices 2022-07-18 22:50:16 -05:00
Lance Edgar da7eeb909e Update changelog 2022-07-18 22:30:01 -05:00
Lance Edgar f818af8e5f Stash data when generating report output 2022-07-18 22:27:31 -05:00
Lance Edgar 68a17f6d52 Only remove egg-info dir if it exists, when releasing 2022-07-18 12:39:46 -05:00
Lance Edgar 331a31b2b6 Update changelog 2022-07-18 12:38:19 -05:00
Lance Edgar 7c9153575a Properly encode output for str(Brand) 2022-07-18 12:21:56 -05:00
Lance Edgar b5688a09dd Add is_active_for_store() method to products handler
with some basic logic, which assumes a volatile cache table has
accurate data...
2022-07-08 14:02:17 -05:00
Lance Edgar 01b538ca90 Add basic pricing.calculate_markup() function 2022-07-08 12:48:39 -05:00
Lance Edgar a732a76c59 Add web app setting for default grid pagesize 2022-07-01 11:58:53 -05:00
Lance Edgar a45fe4b26f Update changelog 2022-06-24 14:19:26 -05:00
Lance Edgar 2e37e809b4 Add basic date parsing for ExcelReaderXLSX
at least *try* to parse, if given a string value
2022-06-24 14:18:01 -05:00
Lance Edgar f458072e24 Add basic autocompleter for subdepartments 2022-06-14 17:52:47 -05:00
Lance Edgar aca6ed6f97 Update changelog 2022-06-14 13:59:00 -05:00
Lance Edgar 72d1b070bd Add basic start date support for "future" pricing batch 2022-06-14 13:48:22 -05:00
Lance Edgar 03c3bdeda0 Use build module instead of invoking setup.py for release
cf. https://github.com/NeonGeckoCom/neon-messagebus-mq-connector/issues/16
2022-06-08 17:48:50 -05:00