Commit graph

3270 commits

Author SHA1 Message Date
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
Lance Edgar ee2bc85c39 Add "invalid address" flags for primary contact types 2020-01-27 16:58:07 -06:00
Lance Edgar 3e8ef0f36e Remove versioning workarounds for core batch handlers
mustn't explicitly avoid versioning here, since custom handlers may have
different logic etc.
2020-01-27 16:11:58 -06:00
Lance Edgar d408209680 Allow populating a new pricing batch from products with "SRP breach"
i.e. where regular price > SRP
2020-01-23 10:47:43 -06:00
Lance Edgar 5b8d412438 Update changelog 2020-01-20 12:27:24 -06:00
Lance Edgar 3fe51070a4 Add ProblemReportHandler.progress_loop() convenience method 2020-01-20 12:25:06 -06:00
Lance Edgar f1550a9116 Improve "batch" awareness for datasync queue logic
always assign batch ID, sequence when writing changes to the queue normally.
and make sure changes from 'rattail' watcher honor the topographic sort
2020-01-15 19:01:54 -06:00
Lance Edgar 2891ac5a5f Explicitly avoid data versioning when executing import/export batch
guess we'll see if this is a good idea...
2020-01-14 11:45:33 -06:00
Lance Edgar 7926b45458 Add awareness of default "importer" batch handler 2020-01-14 11:43:03 -06:00
Lance Edgar 082290adfd Update changelog 2020-01-07 07:32:18 -06:00
Lance Edgar c8a0519c9f Fix how "current" price is set for Product importer 2020-01-07 07:31:22 -06:00
Lance Edgar ee970bde95 Update changelog 2020-01-06 10:59:43 -06:00
Lance Edgar a61898ad3b Fix handling of tpr/sale prices for rattail Product datasync
at least, for "old school" datasync?  not sure how widely this is used...
2020-01-06 10:58:41 -06:00
Lance Edgar 8bfadf35d2 Update changelog 2020-01-06 10:47:00 -06:00
Lance Edgar c52617ce09 Remove TPR, sale price refs from *simple* Product importer fields
for sake of rattail <-> rattail
2020-01-06 10:46:03 -06:00
Lance Edgar caf56c03c1 Update changelog 2020-01-06 08:02:51 -06:00
Lance Edgar a1c505c739 Add Product.tpr_price and sale_price, tweak model importer
this is somewhat of a breaking change!  previously `Product.current_price` was
set by the importer whenever a sale price was present; but now that must be
done via 'tpr_price_current' and 'sale_price_current' fields instead
2020-01-03 18:48:16 -06:00
Lance Edgar 43e3bccfbf Update changelog 2020-01-02 12:37:38 -06:00
Lance Edgar be0864fd6b Remove cascade settings for Person._customers relationship
not real sure why i'd added that in the first place?
(cf. 0e630e9ff2)  but SQLAlchemy started issuing
a warning about it, so better do what they say...
2020-01-01 06:19:58 -06:00
Lance Edgar 8fc8c86717 Mark a Product as dirty, when ProductCost is deleted
for sake of better datasync logic
2020-01-01 05:59:58 -06:00
Lance Edgar c2676ab9b2 Update changelog 2019-12-19 12:39:49 -06:00
Lance Edgar a6c632f2b5 Allow config to define datasync "batch" size limit
mostly to avoid "clogging the pipes" when processing a queue with data
versioning enabled
2019-12-18 13:38:46 -06:00
Lance Edgar 5dfe751db5 Update changelog 2019-12-02 08:38:17 -06:00
Lance Edgar 11f10d360b Add receiving_complete flag for PurchaseBatch
for better workflows, where applicable
2019-11-26 13:54:08 -06:00
Lance Edgar 3da80e537d Add logic for updating catalog cost for receiving batch row 2019-11-26 11:19:15 -06:00
Lance Edgar ce583a2373 Add catalog unit cost, confirmation flags for receiving batch rows 2019-11-22 20:10:20 -06:00
Lance Edgar d2e7bf20cc Add logic for updating row invoice cost/totals for receiving batch 2019-11-21 17:29:36 -06:00
Lance Edgar 027dd9ab59 Update changelog 2019-11-15 16:21:37 -06:00
Lance Edgar ffbb53d48d Fix some receiving row logic when null quantities present 2019-11-15 16:16:26 -06:00