Commit graph

2205 commits

Author SHA1 Message Date
Lance Edgar
ec12d7f69b Update changelog 2019-01-28 15:47:43 -06:00
Lance Edgar
d24cec45cb Tweak logic for fetching "runas user"
previous logic was raising error sometimes, when user wasn't configured etc.
new logic tries to just return None if user can't be found for whatever reason
2019-01-25 16:26:22 -06:00
Lance Edgar
16e5d54c98 Update changelog 2019-01-24 14:09:56 -06:00
Lance Edgar
513025021d Fix invoice parser for Albert's, per python3 2019-01-24 14:05:16 -06:00
Lance Edgar
80c5465b2e Update changelog 2019-01-22 15:05:55 -06:00
Lance Edgar
7a75d9f06c Tweak contrib UNFI invoice parser, for python3 support 2019-01-22 13:45:57 -06:00
Lance Edgar
ef691ef0f6 Update changelog 2019-01-21 17:12:23 -06:00
Lance Edgar
81a2dfa1f4 Tweak some label printing logic to support python 3 2019-01-21 16:23:24 -06:00
Lance Edgar
c6329cded6 Add python3 support for contrib KeHE vendor invoice parser 2019-01-21 16:06:37 -06:00
Lance Edgar
eb37e0fb6d Accept hours as decimal instead of delta, for util.pretty_hours() 2019-01-18 17:34:38 -06:00
Lance Edgar
49faad909d Update changelog 2019-01-17 12:46:26 -06:00
Lance Edgar
64c747432c Add generic rattail run-n-mail command
for use when the default system behavior won't let us define mail recipients
for e.g. 'at' job output emails
2019-01-17 12:45:15 -06:00
Lance Edgar
c8c0947f82 Add app settings for restart commands, for datasync/filemon daemons 2019-01-15 15:58:22 -06:00
Lance Edgar
f286bbe088 Update changelog 2019-01-10 18:03:01 -06:00
Lance Edgar
c03376115b Always refresh TD parent batch row, when transforming pack to unit 2019-01-09 14:17:58 -06:00
Lance Edgar
6d6beb4d3d Add extra_data text column to all batch tables
meant for handler to arbitrarily store JSON, or whatever is useful
2019-01-09 12:34:36 -06:00
Lance Edgar
b5a5a59eae Update changelog 2019-01-08 12:44:29 -06:00
Lance Edgar
01ec1fee0a Grow markup field for pricing batch rows, ever so slightly
whoops, this should have happened with previous commit
2019-01-08 12:36:43 -06:00
Lance Edgar
a46f04ac74 Grow markup field for pricing batch rows, ever so slightly
ugh, this wasn't precise enough for one client (previously), hopefully this is
good enough now...
2019-01-08 12:32:29 -06:00
Lance Edgar
48625253be Update changelog 2019-01-05 22:02:28 -06:00
Lance Edgar
52ebb9c15f Always set "runas" user when making DB session for command
hopefully this doesn't break anything..!
2019-01-02 14:13:03 -06:00
Lance Edgar
633fa3f4a8 Update changelog 2019-01-01 22:27:34 -06:00
Lance Edgar
ff19cb8f70 Fix some ORM backrefs for Member 2018-12-20 13:47:19 -06:00
Lance Edgar
d571811ed0 Add basic Member table
plus contact info, via ORM magic
2018-12-19 23:04:49 -06:00
Lance Edgar
650a4cb367 Tweak logging if duplicate keys found when making cache
every little clue helps when that happens...
2018-12-19 18:58:44 -06:00
Lance Edgar
2cff81a8f3 Update changelog 2018-12-19 15:10:03 -06:00
Lance Edgar
7eeffc3376 Fix product version schema, for last migration 2018-12-19 15:07:33 -06:00
Lance Edgar
4e64e18f50 Update changelog 2018-12-19 13:08:23 -06:00
Lance Edgar
480be90b53 Grow Product.uom_abbreviation field to allow 10 chars 2018-12-19 13:07:47 -06:00
Lance Edgar
180188469f Update changelog 2018-12-19 11:34:13 -06:00
Lance Edgar
12f3d7bf2a Add way to declare label type for new label batch from data file
label code is now another field on the batch header.  also, label code now
allows 30 chars instead of just 3
2018-12-18 19:25:11 -06:00
Lance Edgar
61713a3e2f Add "label profile" field for label batches
do with it what you will..
2018-12-18 18:25:22 -06:00
Lance Edgar
5291479bdd Add subdepartment to core "product" batch row mixin schema
and populate that, for pricing batches
2018-12-18 16:49:49 -06:00
Lance Edgar
d7dce05990 Add basic support for making new pricing batch from input file
file must be Excel (xlsx) and have a 'upc' column
2018-12-17 22:34:55 -06:00
Lance Edgar
e778b28599 Update changelog 2018-12-12 12:34:49 -06:00
Lance Edgar
7d369df322 Refactor how we read some config values for datasync
in order to avoid the deprecated `RattailConfig.has_option()` call
2018-12-12 12:25:50 -06:00
Lance Edgar
8c78a2d870 Update changelog 2018-12-11 13:55:27 -06:00
Lance Edgar
3f2f2d8a36 Fix population logic when making batch from file via filemon
i.e. let handler to normal setup/teardown when populating batch
2018-12-11 13:54:26 -06:00
Lance Edgar
67504b4ae2 Update changelog 2018-12-05 12:12:23 -06:00
Lance Edgar
1d8083bc60 Add clue for checking perms, when pruning non-existing filemon folder 2018-12-05 11:25:16 -06:00
Lance Edgar
2db9d8359c Overhaul datasync consumer thread logic a bit
this does two things mainly:

 * loses the concept of "isolated" vs. "common" consumer threads (all threads
   in use thus far were isolated, now that's the only option)

 * consumer no longer processes "all" available changes, "batched up" by the
   'obtained' timestmap.  instead it now will only process that "first batch"
   in a given run.  that lets us use SQL to separate batches more simply, as
   well as ensures smaller processing times between DB commits, which leads to
   better progress transparency from the outside
2018-12-04 23:31:54 -06:00
Lance Edgar
01498a2a50 Add "sync me" flag to LabelProfile model, honor it within importers
meant to allow datasync of LabelProfile records, but only for those records
which have "opted in" to the sync
2018-12-04 18:55:20 -06:00
Lance Edgar
9657949a08 Add way to extend available types, for rattail make-config 2018-12-03 19:48:23 -06:00
Lance Edgar
cd941ae750 Add Object.setdefault() method
for use as 'env' object with fabric2
2018-12-03 00:49:33 -06:00
Lance Edgar
a8e3288026 Update changelog 2018-12-02 15:24:21 -06:00
Lance Edgar
562705d9ee Update sample config and new project template
various things encountered when making a new project
2018-12-01 19:36:43 -06:00
Lance Edgar
42047ffc87 Add old_price_margin column for pricing batch rows 2018-11-30 19:24:06 -06:00
Lance Edgar
750e0129ee Tweak some label batch logic per python3
regarding "batch from CSV file" logic
2018-11-30 18:30:32 -06:00
Lance Edgar
bebfe1b519 Allow override of decimal places when converting hours 2018-11-30 16:59:32 -06:00
Lance Edgar
af340c79f7 Fix "margin threshold" bug in pricing batch logic
also make sure to flush session once every 200 new rows when populating
2018-11-26 18:56:08 -06:00