Lance Edgar
973d2bc06d
Fix the shlex_join()
workaround for python2
2022-11-21 12:36:11 -06:00
Lance Edgar
23318f270b
Update changelog
2022-11-20 20:26:09 -06:00
Lance Edgar
5c879a82e6
Add luigi module/class awareness to overnight task launcher
...
so we can invoke luigi directly instead of relying on script
this also improves logic for how `run-n-mail` and/or `at` are used
2022-11-20 19:35:41 -06:00
Lance Edgar
8cda194a14
Tweak fallback for backfill task settings
2022-11-20 16:55:58 -06:00
Lance Edgar
3e17fc4146
Update changelog
2022-11-20 15:59:08 -06:00
Lance Edgar
aa734cb02e
Add basic rattail overnight
command, for running luigi tasks
...
although at this stage, it isn't very aware of luigi, and just knows
to run the "script" associated with given task defined in config
2022-11-20 15:30:25 -06:00
Lance Edgar
bea5278289
Fix how keys are stored for luigi overnight/backfill tasks
2022-11-20 13:56:54 -06:00
Lance Edgar
c8597434a0
Add enabled
and per-day scheduling flags for problem reports
...
report should only run (via `rattail problems` command) if it's
enabled generally, but also for the current day of week. all such
flags should be effectively ON by default.
also adds the `--force` command arg, to run a report no matter what
its flags happen to be
nb. manually running a report from tailbone also uses "force" logic
2022-11-19 17:38:02 -06:00
Lance Edgar
ec059ba8ec
Update changelog
2022-11-17 19:23:09 -06:00
Lance Edgar
2c0abe99b3
Ignore bad date parsing for vendor invoice batch
2022-11-15 17:21:05 -06:00
Lance Edgar
4130df361f
Allow misc. date formats for certain versions of KeHE invoices
2022-11-15 17:00:34 -06:00
Lance Edgar
b89af59d6d
Update changelog
2022-11-15 13:38:38 -06:00
Lance Edgar
9f580fcd62
Add merge logic for users, to AuthHandler
2022-11-15 13:36:43 -06:00
Lance Edgar
606b3f7c4d
Update changelog
2022-11-03 11:33:13 -05:00
Lance Edgar
4868a32549
Include make_filename()
method for new poser report
2022-11-02 14:25:42 -05:00
Lance Edgar
590003560c
Fix config prefix for Luigi service info
...
this now matches what tailbone exposes as settings
2022-10-31 21:39:51 -05:00
Lance Edgar
a2e54d91cd
Add workaround for shlex.join()
prior to python 3.8
2022-10-31 20:52:06 -05:00
Lance Edgar
5bcc3ba07a
Make some behavior optional, for writing Excel reports
2022-10-30 16:56:02 -05:00
Lance Edgar
0189de23bf
Don't convert percentage values for batch_pricing_row
...
turns out those were being stored in 0 - 100 range already?
2022-10-29 13:50:52 -05:00
Lance Edgar
664efb0e35
Convert all percentage values to assume 0 - 100 range
...
and update logic accordingly, to standardize
previously some things were using the 0.0 - 1.0 range instead but that
has proved to be more of a headache
2022-10-29 13:38:58 -05:00
Lance Edgar
b6803ce301
Update logic for calculating markup from margin
...
to assume margin value is between 0 - 100 by default, instead of
assuming it's between 0.0 - 1.0
part of a broader effort to standardize how we handle percentage values
2022-10-28 19:30:50 -05:00
Lance Edgar
8fb67c2ce2
Assume XLSX for pricing batch upload
2022-10-19 16:25:22 -05:00
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