Commit graph

2937 commits

Author SHA1 Message Date
Lance Edgar 113378dea2 Use common logic for basic product refresh in label batch 2021-12-02 14:40:01 -06:00
Lance Edgar 0bb3b4bd05 Make stale timeout configurable, change default for datasync/collectd 2021-11-30 16:33:27 -06:00
Lance Edgar b427eaeb3e Update changelog 2021-11-29 21:02:24 -06:00
Lance Edgar fef2d29a0c Always "require" config files when making config object
from there, those files may just "include" or may also "require" other
files.  but the initial ones seem to important not to require
2021-11-29 19:26:21 -06:00
Lance Edgar 46855c6c2a Add rattail datasync remove-settings command
mostly for use when cloning production database to stage/testing, so
you'd want to configure datasync via files only in those environments
2021-11-29 19:25:25 -06:00
Lance Edgar e6638df132 Allow loading "disabled" datasync profiles, if caller specifies
this is for sake of web app configuration tool, so it can show all
profiles enabled or not
2021-11-29 17:13:39 -06:00
Lance Edgar 6385cc948c Update changelog 2021-11-28 10:58:50 -06:00
Lance Edgar 3d8590230e Include current time in datasync/collectd output 2021-11-28 10:57:32 -06:00
Lance Edgar 66d7910770 Add some sale pricing logic for custorder batch 2021-11-27 19:07:33 -06:00
Lance Edgar e6356d9360 Add setting for receiving from PO w/ invoice 2021-11-27 17:42:24 -06:00
Lance Edgar fdaacdc4ac Update changelog 2021-11-27 15:16:39 -06:00
Lance Edgar 89783e0a0d Add basic stale queue detection for datasync/collectd 2021-11-27 15:15:29 -06:00
Lance Edgar 6a2454c212 Only specify interval if we receive one from collectd 2021-11-27 15:15:17 -06:00
Lance Edgar 6b35ca5ada Update changelog 2021-11-27 14:39:15 -06:00
Lance Edgar be24d23682 Add workarounds if collectd does not pass env variables (?)
not clear why it wouldn't do that, but was getting key errors when i
assumed the values were there...
2021-11-27 14:38:11 -06:00
Lance Edgar 958731e13c Update changelog 2021-11-27 14:01:32 -06:00
Lance Edgar 37a23bf35e Add rattail datasync collectd sub-sub-command
still just proving concepts, but this seems like the right direction..
2021-11-27 14:00:07 -06:00
Lance Edgar a0054d223a Move datasync command logic to its own module 2021-11-27 09:56:17 -06:00
Lance Edgar 0e295b5a1c Postpone import in case no sqlalchemy 2021-11-27 08:36:56 -06:00
Lance Edgar faea1411fd Update changelog 2021-11-26 15:58:37 -06:00
Lance Edgar 15d4254664 Only make app if we have config
which i guess we may not, at least in tests
2021-11-26 13:59:23 -06:00
Lance Edgar ccb641f7e4 Set Subcommand.app within constructor, for convenience 2021-11-26 12:56:01 -06:00
Lance Edgar 4eb29cc746 Only coerce logging timestamps if we have a timezone set
otherwise logging itself will fail, which is bad
2021-11-26 10:39:16 -06:00
Lance Edgar be4497e1f3 Add way to "require" included config files 2021-11-26 10:38:47 -06:00
Lance Edgar 6f25dab0b3 Update changelog 2021-11-25 19:00:35 -06:00
Lance Edgar 6ea529132e Add basic support for receiving from PO with invoice 2021-11-25 16:56:23 -06:00
Lance Edgar f788672654 Update changelog 2021-11-14 13:26:23 -06:00
Lance Edgar da4d4a7e1a Add Role.sync_users flag and make importer logic honor it 2021-11-13 15:02:06 -06:00
Lance Edgar ce57798160 Update changelog 2021-11-11 18:37:57 -06:00
Lance Edgar e1b21d9ce1 Add no-op parse_date() method for ExcelReaderXLSX class 2021-11-11 17:21:45 -06:00
Lance Edgar 2ed0c361d4 Update changelog 2021-11-11 12:10:17 -06:00
Lance Edgar 229f9ab5ed Add basic model, status enum for PendingProduct 2021-11-10 12:38:21 -06:00
Lance Edgar 7782555078 Update changelog 2021-11-08 18:31:56 -06:00
Lance Edgar 6836be425d Add simple ExcelInvoicParser class
doesn't do a whole lot but everything helps i guess
2021-11-07 17:55:21 -06:00
Lance Edgar f78c23ff16 Let purchase batch handler declare supported invoice parsers 2021-11-07 17:09:33 -06:00
Lance Edgar 5b38dc92b7 Tweak how we interpret template dir for invoice2data 2021-11-07 15:43:54 -06:00
Lance Edgar e9011c0275 Add basic support for invoice2data for InvoiceParser
also add `config` arg to InvoiceParser constructor - finally
2021-11-07 14:18:35 -06:00
Lance Edgar 331828e9ce Add support for finding past items, for new custorder
also misc. tweaks for new custorder feature
2021-11-06 20:31:02 -05:00
Lance Edgar c2e9fa513d Add get_past_products() method for custorder batch handler
also add more to `get_product_info()`
2021-11-06 19:58:27 -05:00
Lance Edgar dc0c65ea7b Add some "case price" logic for custorder batch 2021-11-06 17:35:51 -05:00
Lance Edgar c3487917ce Only show POD image if so configured; use "image not found" fallback
also update a random docstring
2021-11-06 17:35:15 -05:00
Lance Edgar 892668f7f1 Update changelog 2021-11-05 18:44:50 -05:00
Lance Edgar 8c58b14919 Add "generic" vendor catalog parser
we'll see how generic it really is once more people try to use it...
2021-11-05 18:40:02 -05:00
Lance Edgar 71e5ac4ef0 Add progress_loop() method for app and generic handlers 2021-11-05 16:00:04 -05:00
Lance Edgar bb1a9ab6a3 Fix class name in NotImplementedError msg 2021-11-05 15:09:37 -05:00
Lance Edgar a8fa544377 Update changelog 2021-11-04 21:23:43 -05:00
Lance Edgar d720f0f0ab Add setting for "product price may be questionable" for custorders 2021-11-03 20:19:23 -05:00
Lance Edgar b80cb4af94 Add some product info fetchers to custorder batch handler
for easier customization
2021-11-03 19:13:42 -05:00
Lance Edgar 2fa90aa41d Update changelog 2021-11-02 11:14:26 -05:00
Lance Edgar f4dd326d02 Add "cannot calculate price" row status for new product batch 2021-10-31 11:56:25 -05:00