Commit graph

3398 commits

Author SHA1 Message Date
Lance Edgar 28475a1a22 Fix config references in datasync profile constructor 2021-05-13 13:10:35 -05:00
Lance Edgar 4fe7188918 Fix how cost diffs are checked for vendor catalog batch
bug was introduced in d0799432f1
2021-05-12 22:44:56 -05:00
Lance Edgar 4dc48c1dd8 Accept extra kwargs for util.capture_output() 2021-05-12 22:27:36 -05:00
Lance Edgar 7a257cc908 Require config and key args for ConfigProfile constructor 2021-05-12 22:27:08 -05:00
Lance Edgar c00025f049 Assume empty string means null, in datetime conversion for CSV import 2021-05-07 12:06:03 -05:00
Lance Edgar 9319b85bbb Update changelog 2021-04-28 17:51:23 -05:00
Lance Edgar 2f73378172 Delay some imports to avoid circular reference 2021-04-28 14:38:37 -05:00
Lance Edgar 05badbb7bc Add batch_id_str() convenience function 2021-04-28 13:59:42 -05:00
Lance Edgar bb650a9287 Add "has inventory" status for delete item batch (rows) 2021-04-28 13:59:38 -05:00
Lance Edgar 1ec7c2289d Only make batch data dir if it doesn't exist
this came up for a batch which had 2 input files
2021-04-27 18:29:35 -05:00
Lance Edgar 7340fcb226 Update changelog 2021-04-27 09:46:13 -05:00
Lance Edgar bb5d13348d Allow "batch importers" to avoid collecting changes for processing
this is for sake of memory consumption, in particular when product images are
exported to file system, when there is never a need for warning email etc.
2021-04-27 09:43:02 -05:00
Lance Edgar b7d494fade Fix tests for python 2.7 2021-04-12 12:24:45 -05:00
Lance Edgar 2a57cb197f Update changelog 2021-04-12 11:51:46 -05:00
Lance Edgar b3e227f5aa Add render_date() method for app handler 2021-04-07 12:29:51 -05:00
Lance Edgar ab90b0d114 Don't use log.warn()
b/c it is deprecated
2021-04-06 15:25:59 -05:00
Lance Edgar 4b664e089f Update changelog 2021-03-30 11:49:27 -05:00
Lance Edgar 4f703ba4ce Freeze version of SQLAlchemy to 1.3.x
we should support 1.4.x ASAP but for now tailbone still requires an older
zope.sqlalchemy which in turn can't handle SA 1.4.x
2021-03-19 12:50:46 -05:00
Lance Edgar a91723d5f5 Only cache departments which have a number
when setting up for delproduct batch activity
2021-03-19 10:38:11 -05:00
Lance Edgar 4059ad33bc Add Store.archived flag to schema 2021-03-19 10:37:36 -05:00
Lance Edgar 59a3f5e9ea Update changelog 2021-03-11 11:48:30 -06:00
Lance Edgar 953bab7d6a Add misc. more fields to base Trainwreck schema 2021-03-09 19:21:38 -06:00
Lance Edgar db0094c00a Add inactivity_months field for delete product batch 2021-03-09 11:43:27 -06:00
Lance Edgar 82fa2cdd73 Fix how rsync excludes are used as fallback for borg backup 2021-03-07 10:17:24 -06:00
Lance Edgar 0cdcef2b2e Better handle cost diff when old value is null, for catalog batch 2021-03-07 10:09:22 -06:00
Lance Edgar 22fafc7382 Create the data/uploads folder when making app dir 2021-03-07 10:08:40 -06:00
Lance Edgar 2d87b84a96 Add trainwreck alembic files to project manifest 2021-03-05 16:28:19 -06:00
Lance Edgar 94aca78c88 Fix preview for user_feedback emails 2021-03-05 15:23:17 -06:00
Lance Edgar 6802b16f68 Update changelog 2021-03-05 12:50:37 -06:00
Lance Edgar 7d88e2d0fc Add date_created field for "delete product" batch row
can help avoid deleting "new" items
2021-03-05 12:49:38 -06:00
Lance Edgar da73c89a2e Use rsync include/exclude config as fallback for borg
since up til now that was the only config used
2021-03-05 09:47:23 -06:00
Lance Edgar f81d6022eb Let include/exclude lists differ for rsync vs. borg, in backup command
also let rsync run before (default) or after borg
2021-03-05 09:30:55 -06:00
Lance Edgar e3b9b60269 Update changelog 2021-03-02 09:29:11 -06:00
Lance Edgar bff25170ad Add "pending customer orders" status for delete product batch row 2021-03-01 17:34:04 -06:00
Lance Edgar ed9e898734 Move some enum values to rattail-onager 2021-02-24 17:00:01 -06:00
Lance Edgar d54e7b7f6e Update changelog 2021-02-19 13:57:06 -06:00
Lance Edgar 14f12d0288 Add "full" support for Trainwreck <-> Trainwreck import/export commands 2021-02-19 13:55:11 -06:00
Lance Edgar 041cd8ef63 Add trainwreck enum entry for CORE-POS 2021-02-18 20:02:18 -06:00
Lance Edgar ee4a29bca0 Update changelog 2021-02-18 11:49:55 -06:00
Lance Edgar dd10594b9a Add proper "default" model for Trainwreck
custom app can still define a custom model but now they don't have to.  alembic
versions are managed for default model.  this also adds default model support
for basic trainwreck importers
2021-02-17 20:16:28 -06:00
Lance Edgar d0799432f1 Misc. tweaks for vendor catalog batch
- add vendor_id, vendor_name to allow for non-native vendor association
- make common logic for calculating cost diff, status per row
2021-02-15 12:53:37 -06:00
Lance Edgar b650766992 More improvements to "delete products" batch
to handle some common logic
2021-02-13 12:29:08 -06:00
Lance Edgar 6a5355b430 Describe execution for generic handheld batch 2021-02-12 16:26:34 -06:00
Lance Edgar 64ce890850 Describe execution for generic product batch 2021-02-12 15:57:07 -06:00
Lance Edgar 61e29b8076 Update changelog 2021-02-10 17:48:50 -06:00
Lance Edgar bc6e3344c1 Relax validation of phone numbers a bit
that old formencode logic is just not what we want apparently.  it was crying
foul for a string like '(xxx) yyy-zzzz' ..sheesh
2021-02-10 17:45:22 -06:00
Lance Edgar e47bd96e2b Update changelog 2021-02-10 11:52:26 -06:00
Lance Edgar da72619843 Fix some log messages
had mixed formatting styles in one of those...
2021-02-09 14:19:17 -06:00
Lance Edgar 8ccff33803 Always use versioning workarounds for vendor catalog batches
also stop setting "legacy" update status for rows
2021-02-09 13:45:19 -06:00
Lance Edgar 48dd7445c9 Fix execution description for purchase batches
we are rendering these as markdown, so whitespace matters
2021-02-09 13:36:15 -06:00