Commit graph

2879 commits

Author SHA1 Message Date
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
Lance Edgar
46d129d868 Add "did not receive" status for purchase batch rows
we set this within a costing batch, when received quantities are zero
2021-10-22 21:53:05 -05:00
Lance Edgar
ae2a60183f Update changelog 2021-10-22 19:28:52 -05:00
Lance Edgar
9933887039 Assign app and model attributes when ProblemReport instantiates 2021-10-22 19:27:10 -05:00
Lance Edgar
6dbf1eb4af Update changelog 2021-10-21 17:08:13 -05:00
Lance Edgar
999a42a43f Record 'lastrun' time when mailmon watcher succeeds
so we can monitor that and restart the daemon when it stops
working..which it does sporadically although we don't yet know exactly
why/when that happens..
2021-10-21 17:06:04 -05:00
Lance Edgar
6441e89561 Update changelog 2021-10-20 16:13:56 -05:00
Lance Edgar
28c9d50914 Add new 'products.neworder' autocompleter; refactor a bit
also improve `ProductsHandler.get_image_url()` to give a tailbone url
pointing to the product image in rattail DB, if possible
2021-10-19 18:11:55 -05:00
Lance Edgar
49a2ddc7f5 Make product the first kwarg to get_image_url()
for ProductsHandler
2021-10-19 13:57:37 -05:00