Commit graph

3398 commits

Author SHA1 Message Date
Lance Edgar e989521d85 Misc. tweaks for new integration project templates 2022-12-08 18:18:54 -06:00
Lance Edgar e4fbe887ff Write simple error to stdout, when batch command fails
hopefully this works out, but it seems a bit hacky..
2022-12-08 14:13:23 -06:00
Lance Edgar aa57fcd7ab Update changelog 2022-12-06 10:32:44 -06:00
Lance Edgar bab66fb250 Fallback to product master for case size, in vendor invoice batch 2022-12-06 10:14:24 -06:00
Lance Edgar c848c3a185 Add flag for editing invoice cost, in receiving batch 2022-12-05 16:24:37 -06:00
Lance Edgar b9a1ffdb8c Add receiving workflow as param, when making receiving batch 2022-12-05 15:22:32 -06:00
Lance Edgar 5abe919ebe Add flag for receiving batch, if editing catalog cost is allowed 2022-12-05 14:01:41 -06:00
Lance Edgar bc94f5a7db Avoid "cost confirmed" data when cloning purchase batch 2022-12-05 11:25:13 -06:00
Lance Edgar 618b5ec983 Add way to preserve exit code when executing upgrade
e.g. so luigi knows when upgrade fails
2022-12-04 10:29:50 -06:00
Lance Edgar 15e4893448 Add get_email_address() method for AuthHandler 2022-12-04 09:38:32 -06:00
Lance Edgar d4c08b47d1 Update changelog 2022-12-02 16:42:57 -06:00
Lance Edgar b3ab2dfd01 Fix the % price diff status logic for pricing batch
sheesh, the bug finally surfaced
2022-12-02 12:39:37 -06:00
Lance Edgar f25391fe23 Add populate_from_query() method for pricing batch handler
just for clarity, and makes for easier inheritance/override
2022-12-02 12:37:15 -06:00
Lance Edgar 382265277a Update changelog 2022-12-01 13:13:12 -06:00
Lance Edgar 3a8a48c187 Add option to launch overnight task with `silent.conf`
specifically for sake of launching from web app, which has "noisy"
logging config
2022-12-01 09:35:43 -06:00
Lance Edgar f9878a216e Use --glob-archives instead of --prefix for borg prune
per deprecation warnings in borg 1.2 - AFAIK this is still safe for
borg 1.1 as well though..
2022-11-28 16:36:17 -06:00
Lance Edgar f830956418 Update changelog 2022-11-28 12:32:04 -06:00
Lance Edgar 9b27ea3df5 Fix logic for rendering percentage value, when null 2022-11-28 11:50:05 -06:00
Lance Edgar 49f0fb800f Normalize percentage values in vendor catalog batch
whoops, missed this one..
2022-11-28 11:49:44 -06:00
Lance Edgar 9f201f61a8 Update changelog 2022-11-28 10:53:26 -06:00
Lance Edgar 731a7e9629 Remove the 'backup' extra from setup.py
no reason for rattail proper to get involved with those details
2022-11-27 20:39:07 -06:00
Lance Edgar c7e61ec4c2 Fix how failed command output is shown for luigi
this is python2-compatible, but probably makes more sense anyway
2022-11-27 12:42:32 -06:00
Lance Edgar 151f92c00a Keep current rattail config, when launching overnight task
at least i think this makes the most sense..?
2022-11-27 12:33:44 -06:00
Lance Edgar 2e4bb53d67 Auto-record last run date when overnight task completes okay 2022-11-23 13:46:51 -06:00
Lance Edgar c8c57b9629 Update changelog 2022-11-21 14:29:46 -06:00
Lance Edgar 17d4023dc0 Add way to purge overnight luigi settings
useful when cloning production DB to dev/stage environment, where
local config file can have custom settings
2022-11-21 14:00:06 -06:00
Lance Edgar 65d4b6ea5e Update changelog 2022-11-21 12:46:07 -06:00
Lance Edgar 4e2a8f8908 Wrap script with run-n-mail too, for overnight luigi tasks
don't just wrap if invoking luigi directly
2022-11-21 12:36:27 -06:00
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