Commit graph

3398 commits

Author SHA1 Message Date
Lance Edgar
9e3817d299 Add handler methods to add/update address for person 2022-10-18 10:54:24 -05:00
Lance Edgar
53c4227ace Update changelog 2022-09-09 14:52:47 -05:00
Lance Edgar
e50f1e0ebf Add get_unconfirmed_counts() method for receiving batch handler
so that can inform the default receiving options e.g. in mobile app
2022-09-07 20:43:10 -05:00
Lance Edgar
8b5336eb4c Specify stacklevel for some deprecation warnings 2022-09-07 09:10:51 -05:00
Lance Edgar
964060f6d9 Make past item lookup optional for custorders 2022-09-06 16:43:27 -05:00
Lance Edgar
1c02325bc4 Add basic per-item discount support for custorders 2022-09-06 16:32:19 -05:00
Lance Edgar
110c684682 Update changelog 2022-09-06 13:20:22 -05:00
Lance Edgar
130d9b2ea4 Add generic-ish rattail.db.util.get_fieldnames() function
need to standardize on some logic for that
2022-08-30 21:55:04 -05:00
Lance Edgar
f69df777a4 Add WorkOrder.estimated_total to schema 2022-08-30 21:13:39 -05:00
Lance Edgar
1df93fe921 Update changelog 2022-08-30 14:17:54 -05:00
Lance Edgar
a5e6f6e7bb Consider 'Y' (or 'y') as true when parsing bool value 2022-08-30 13:56:44 -05:00
Lance Edgar
40086f7905 Add more attrs for new product batch row 2022-08-30 13:56:29 -05:00
Lance Edgar
7822e32fec Fix how newline chars are handled for UNFI invoice parser
newer invoice file is suddenly coming with unix line endings, whereas
previous files all had DOS line endings
2022-08-30 12:05:27 -05:00
Lance Edgar
97fcd98032 Do not run tests unless requested, for release task 2022-08-30 11:02:43 -05:00
Lance Edgar
c02f0e0c08 Update changelog 2022-08-30 11:02:08 -05:00
Lance Edgar
9c695e57be Add unit_size, uom, cleanup refresh logic for newproduct batch 2022-08-30 10:55:04 -05:00
Lance Edgar
8f19e5b2a0 Do not deprecate BatchHandler.locate_product_for_entry()
leave it for now, it seems rather convenient to call from e.g. within
a `refresh_row()` method of batch handler
2022-08-27 22:20:14 -05:00
Lance Edgar
2ae7a051ce Ugh, fix calculate_price_from_margin() 2022-08-26 15:48:42 -05:00
Lance Edgar
1726da1160 Add pricing.calculate_price_from_margin() function 2022-08-26 15:33:05 -05:00
Lance Edgar
50d735b82c Add pricing.calculate_variance() function 2022-08-26 15:24:51 -05:00
Lance Edgar
d9bbedfb95 Fix import in backfill runner script 2022-08-24 21:10:56 -05:00
Lance Edgar
2562d7ca28 Update changelog 2022-08-24 18:23:55 -05:00
Lance Edgar
c993805029 Add basic support for backfill Luigi tasks
idea being, sometimes you must import many days worth of data into
Trainwreck or what-not, and it must be split up b/c e.g. it would take
too long to import all at once (i.e. might interfere with overnight
tasks)
2022-08-23 23:25:47 -05:00
Lance Edgar
f39cbcc17a Fix how we parse collectd interval 2022-08-21 23:58:55 -05:00
Lance Edgar
d2c0c2661f Update changelog 2022-08-21 20:40:30 -05:00
Lance Edgar
f6207df783 Add collectd helper methods to AppHandler 2022-08-21 20:38:58 -05:00
Lance Edgar
8e9f90d5bd Add "admin-ish" flag for roles
to better protect certain roles from users who otherwise might be
allowed to edit and/or (un)assign users
2022-08-21 19:34:47 -05:00
Lance Edgar
51b7abf045 Let datasync watcher kwargs be configured via DB settings table 2022-08-21 15:21:37 -05:00
Lance Edgar
9c3f99e8e5 Allow config to force hostname for use with collectd output 2022-08-21 11:40:55 -05:00
Lance Edgar
3ef03a48b5 Couple of datasync tweaks 2022-08-21 11:31:56 -05:00
Lance Edgar
07706cb273 Add --system arg for rattail upgrade command 2022-08-21 10:07:51 -05:00
Lance Edgar
c4bdc36a43 Avoid deprecated calls when running datasync checks 2022-08-21 09:46:56 -05:00
Lance Edgar
740a6704f0 Use custom "system title" for upgrade success/failure emails 2022-08-20 23:06:30 -05:00
Lance Edgar
aca523697c Allow an "upgrade" to target "any" system
some more polish needed yet i'm sure, but this is the gist

also added `AppHandler.get_upgrade_handler()`

also added `AppHandler.short_session()`
2022-08-20 17:35:00 -05:00
Lance Edgar
75ea593d06 Update changelog 2022-08-18 17:28:15 -05:00
Lance Edgar
17b86cbfec Add logic to auto-correct unit vs. case when receiving from invoice 2022-08-18 17:27:02 -05:00
Lance Edgar
f7718fe59f Add basic Luigi handler logic 2022-08-18 15:11:01 -05:00
Lance Edgar
b42b139e3f Update changelog 2022-08-17 21:28:26 -05:00
Lance Edgar
3e03dfcee7 Require supervisor process name, if fetching info 2022-08-17 21:27:22 -05:00
Lance Edgar
f0ce975bc2 Add setting etc. for user feedback to request reply email 2022-08-17 21:07:28 -05:00
Lance Edgar
7fc606903f Add datasync handler class; let it talk to supervisor
seems like we maybe shouldn't assume presence of (or access to)
supervisor, but in practice so far it's a safe bet...
2022-08-15 21:01:57 -05:00
Lance Edgar
b28d21ef05 Detect when output path is a folder, for rattail make-config 2022-08-14 13:55:09 -05:00
Lance Edgar
90d1a7f086 Update changelog 2022-08-14 13:29:49 -05:00
Lance Edgar
936675fa95 Fix regression bug 2022-08-14 13:29:10 -05:00
Lance Edgar
b1b058a5b3 Update changelog 2022-08-14 10:16:44 -05:00
Lance Edgar
7c76a7839e Refactor usage of get_vendor() lookup 2022-08-13 23:55:30 -05:00
Lance Edgar
4607425f40 Remove unique constraint for Brand.name
i believe i only ever added that b/c of the simple assumption that it
would hold true.  but it can cause problems with some types of
datasync / import operations, e.g. when a brand is renamed in another
system etc.

i could not think of any practical *benefit* of the unique constraint
and so it now goes away.  in practice then some brand records may have
"duplicate" names for brief periods of time, while datasync is
catching up some types of changes.
2022-08-12 19:47:58 -05:00
Lance Edgar
79a21ddabc Add process_changes_proper() method for datasync consumers
to allow for better inheritance / overriding as needed
2022-08-12 19:06:27 -05:00
Lance Edgar
2488c84bd8 Update changelog 2022-08-12 18:28:59 -05:00
Lance Edgar
cc936c845b Allow for case where none of importer's fields are "simple" 2022-08-12 16:19:21 -05:00