Commit graph

2398 commits

Author SHA1 Message Date
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
Lance Edgar b63ae110c3 Update changelog 2019-10-30 15:46:18 -05:00
Lance Edgar 0c9e9b7245 Only retain "used importers" if instructed, in import handler
apparently retaining those will prevent garbage collection! so caller must opt
in to that kind of behavior, sheesh
2019-10-29 22:38:54 -05:00
Lance Edgar 5128e3f2fe Fix issue with import diff email template, when extra fields present 2019-10-28 18:09:42 -05:00
Lance Edgar 1237ec1698 Update changelog 2019-10-25 13:26:15 -05:00
Lance Edgar 32eda999e7 Add rattail purge-versions command
for those times when you need to start fresh on that
2019-10-23 20:35:43 -05:00
Lance Edgar ec5571fa29 Update changelog 2019-10-23 12:41:07 -05:00
Lance Edgar 821dd6ee42 Add "generic" sequence for customer numbers
but don't actually "use" it, just make sure it's there in case an app does want
to use it
2019-10-22 16:51:40 -05:00
Lance Edgar b6b8d1d8fc Add setting to "force unit item" for inventory batch 2019-10-21 15:35:15 -05:00
Lance Edgar 32c8da6d2c Update changelog 2019-10-15 16:56:32 -05:00
Lance Edgar 2eeff3a9f2 Add -m flag option for rattail import-versions --comment 2019-10-15 16:53:25 -05:00
Lance Edgar 3a9f3b7cc3 Add way for callers to assign "comment" for versioning transaction 2019-10-14 19:06:48 -05:00
Lance Edgar ed1c0d0748 Update changelog 2019-10-12 13:38:52 -05:00