Commit graph

2610 commits

Author SHA1 Message Date
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
Lance Edgar 2801872c02 Add proper "quick entry" logic for purchase batch
copied from tailbone
2019-11-13 14:03:20 -06:00
Lance Edgar 761a2bee04 Add get_eligible_purchases() method for 'purchase' batch handler
for use when selecting PO to receive, etc.
2019-11-12 17:44:49 -06:00
Lance Edgar 470b1d8a4c Add very basic "quick entry" logic for purchase batch
this will need to be improved soon, surely
2019-11-12 11:53:57 -06:00
Lance Edgar 76446d801f Try to assign configured store when making new purchase batch
so the UI logic doesn't need to do anything special for that
2019-11-12 11:53:03 -06:00
Lance Edgar 344edad06c Try to set creator of new batch, if user is specified 2019-11-12 11:52:11 -06:00
Lance Edgar f8c9408640 Add quick_entry() method signature for batch handlers
this should hopefully be useful for several types, e.g. Labels, Receiving etc.
2019-11-11 11:20:43 -06:00
Lance Edgar aa68068d26 Update changelog 2019-11-08 16:17:38 -06:00
Lance Edgar 96e5de0d15 Add finalize_session() convenience method for Subcommand
we need a dry run, with rollback/commit, way too often not to have this
2019-11-04 12:38:45 -06:00
Lance Edgar 9b86a00ac9 Add rattail make-batch command
so that we can make new batches via filemon, but shell out to avoid versioning
2019-11-01 20:53:45 -05:00
Lance Edgar 0d9d6ad088 Cascade delete for ProductStoreInfo 2019-10-30 22:38:56 -05:00