Commit graph

3431 commits

Author SHA1 Message Date
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
Lance Edgar e71117da5d Use OrderedDict for configured db engines
so we preserve sequence of defined 'keys'
2019-10-12 13:33:19 -05:00
Lance Edgar 533b12cc10 Pre-load some data for "pending upgrade" problem report email 2019-10-10 21:37:58 -05:00
Lance Edgar f177e8e36e Do not provide a db session for problem reports
at least, the default handler no longer does that...not sure yet if it would
ever be useful for some handlers to or not
2019-10-10 21:32:45 -05:00
Lance Edgar de0c6a7100 Add problem report for "pending upgrades"
mostly just some proof-of-concept stuff, not sure if useful
2019-10-10 18:36:12 -05:00
Lance Edgar 45ad1d16c7 Add initial "problem report" framework 2019-10-10 16:07:27 -05:00
Lance Edgar 475cdf6450 Add unit cost diff, related status for vendor invoice batch rows
i.e. diff between invoice cost vs. whatever we currently have on file
2019-10-09 15:57:31 -05:00
Lance Edgar f0535b84c0 Efficiency tweaks for vendor catalog batch creation 2019-10-09 15:13:29 -05:00
Lance Edgar 24d4ca6144 Add "preferred vendor" flags for vendor catalog batch rows
we can set the `is_preferred_vendor` flag, but handler logic must be
responsible for `make_preferred_vendor`
2019-10-09 14:55:10 -05:00
Lance Edgar fe31e594d9 Add unit cost diff percentage for vendor catalog batch rows 2019-10-09 14:15:12 -05:00
Lance Edgar 3b895179b1 Make pricing batch population more robust for UPC/product 2019-10-08 21:58:55 -05:00
Lance Edgar d7f0b612c2 Add generic JSON params field to core batch schema
handlers can do with it what they will, but hopefully cuts down on need for
some other schema changes for custom batch types
2019-10-08 18:02:18 -05:00
Lance Edgar 874cf594c1 Improve importer logic for "Global" objects, for sake of datasync
specifically, we must (again) check the `local_only` flag when normalizing the
host object, since datasync will see "all" objects
2019-10-07 17:38:50 -05:00
Lance Edgar 1031d6b744 Update changelog 2019-10-07 11:55:54 -05:00
Lance Edgar 1eb412e443 Add local_only flag for Person, User, plus "Global" importers 2019-10-04 22:30:43 -05:00
Lance Edgar 6a2884864d Tweak Luigi summary filter logic for detecting "all good" message 2019-10-04 14:59:00 -05:00
Lance Edgar fe6abdc452 Update changelog 2019-10-04 14:31:15 -05:00
Lance Edgar 32f95a78e4 Provide default/fallback node title for importers' sake 2019-10-04 14:11:59 -05:00