Lance Edgar
5952df82ff
Tweak flash msg, logging when batch population fails
2022-08-09 15:05:03 -05:00
Lance Edgar
fe4c3d4942
Make sure "configure" pages use AppHandler to save/delete settings
...
so that beaker config cache is invalidated, if in use
2022-08-07 18:23:15 -05:00
Lance Edgar
20aa6a3fbb
Expose the complete
flag for pricing batch
...
also update view config defaults per new convention
2022-07-19 16:36:21 -05:00
Lance Edgar
e9edf205d9
Make caching products optional, when creating vendor catalog batch
2022-07-19 15:50:57 -05:00
Lance Edgar
6b466bb90f
Add start date support for "future" pricing batch
2022-06-14 13:51:00 -05:00
Lance Edgar
10a801aa10
Flush early when populating batch, to ensure error is shown
2022-04-13 16:42:47 -05:00
Lance Edgar
b4d5d70e4c
Force session flush within try/catch, for batch refresh
2022-03-26 15:29:28 -05:00
Lance Edgar
f0b6b62791
Use common logic for fetching batch handler
2022-03-25 13:49:39 -05:00
Lance Edgar
0904cda2c6
Always show batch params by default when viewing
2022-03-15 22:53:24 -05:00
Lance Edgar
6037519fbe
Log error instead of warning, when batch population fails
...
user experience does not change but should help the admin to track
down the problem quicker..
2022-03-11 12:37:43 -06:00
Lance Edgar
b9fa324bb4
Cleanup view config syntax for vendor catalog batch
...
also make sure vendor autocomplete url exists, before using that
widget. this can be an issue when app deals "directly" with POS when
making the batch etc.
2022-03-09 18:26:27 -06:00
Lance Edgar
0a42ec77b2
Cleanup grid filters for vendor catalog batches
2022-03-08 16:35:11 -06:00
Lance Edgar
206d51f59b
Params should be readonly when editing batch
2022-03-01 15:03:48 -06:00
Lance Edgar
4d404cb20b
Add auto-filter hyperlinks for batch row status breakdown
2022-02-20 19:40:32 -06:00
Lance Edgar
66fd2ff5e6
Show SRP as currency for vendor catalog batch
2022-02-19 21:00:54 -06:00
Lance Edgar
b261e8bb9b
Add some autocomplete workarounds for new vendor catalog batch
...
when user selects a parser, it may auto-select the vendor, but keeping
that all in sync is complicated. this seems to be an improvement but
it could likely use more..
2022-02-05 21:41:05 -06:00
Lance Edgar
ea180ca107
Expose batch params for vendor catalogs
2022-02-01 19:14:16 -06:00
Lance Edgar
eb221417e5
Expose the Sale, TPR, Current price fields for label batch
...
still need to figure out how execution can print e.g. TPR prices...
2022-01-10 14:54:49 -06:00
Lance Edgar
cabe422508
Add progress support when deleting a batch
...
b/c we must delete all rows individually, and some batches can be
several thousand rows each
2022-01-09 19:25:18 -06:00
Lance Edgar
dc28b1337d
Add config for supported vendor catalog parsers
...
also explicitly set "native value" for all configuration checkbox
fields, since apparently it will send `'false'` by default...
2022-01-08 13:35:59 -06:00
Lance Edgar
2ce7c93aeb
Expose, honor "allow future" setting for vendor catalog batch
2022-01-08 12:19:35 -06:00
Lance Edgar
88b3279e63
Several disparate changes needed for vendor catalog improvements
...
- invoke vendor handler where appropriate, e.g. for parsers
- reverse "polarity" of dropdown chooser setting; rename it
- tweak autocomplete behavior yet again, for dynamic values
- auto-select vendor upon parser selection, when possible
2022-01-07 19:27:10 -06:00
Lance Edgar
ab61778d35
Some aesthetic improvements for vendor catalog batch
...
hopefully they're improvements...
2022-01-07 15:03:56 -06:00
Lance Edgar
f89dc88c0e
Add configurable template file for vendor catalog batch
2022-01-06 12:53:01 -06:00
Lance Edgar
c0db03bc28
Add basic "pending product" support for new custorder batch
2021-12-22 16:34:17 -06:00
Lance Edgar
30f95e2f08
Add common configuration logic for "input file templates"
...
just used in one batch so far but should be useful for many more..once
can get around to migrating them
had to rework the configuration logic to use HTML form instead of
JSON, to allow for the file uploads
2021-12-17 20:25:17 -06:00
Lance Edgar
bc7ccb6a9f
Render "pretty" UPC by default, for batch row form fields
2021-12-15 18:06:53 -06:00
Lance Edgar
f49fdebd98
Add some smarts when making batch execution form schema
...
in some cases `has_execution_options()` may return True but the base
view class may not need to provide any options itself (i.e. subclass
is responsible for declaring the view has options).
2021-12-15 15:02:28 -06:00
Lance Edgar
340a177a29
Overhaul desktop views for receiving, for efficiency
...
still could use even more i'm sure, but this takes advantage of buefy
to add dialogs etc. from the "view receiving batch row" page. this
batch no longer allows direct edit of rows but that's hopefully for
the better.
2021-12-13 18:37:47 -06:00
Lance Edgar
871dd35a3a
Add basic views to expose Problem Reports, and run them
...
not very sophisticated yet but heck better than we had yesterday
2021-12-07 18:01:07 -06:00
Lance Edgar
282185c5af
Add basic import/export handler views, tool to run jobs
2021-12-05 17:23:11 -06:00
Lance Edgar
67c1adcc75
Tweak how we fetch invoice parser
...
per changes in rattail
2021-11-07 14:12:06 -06:00
Lance Edgar
5ff57ae7d2
Add link to download generic template for vendor catalog batch
...
also let config restrict which parsers are "supported"
and auto-choose parser if there is only one
2021-11-05 18:40:46 -05:00
Lance Edgar
b34d88d704
Avoid exposing batch params when creating a batch
...
not sure how this never came up until now..?
2021-11-04 21:20:42 -05:00
Lance Edgar
7651efff9d
Highlight "cannot calculate price" rows for new product batch
2021-10-31 11:56:46 -05:00
Lance Edgar
54f1a52ed0
Add hover text for vendor ID column of pricing batch row grid
2021-08-29 19:52:44 -05:00
Lance Edgar
4addedef6e
Expose pack_size
for delproduct batch
2021-07-15 14:13:01 -05:00
Lance Edgar
8eee4a1cf0
Set UPC renderer for delproduct batch row
2021-07-15 13:29:31 -05:00
Lance Edgar
d1a35a4d58
Allow direct creation of new label batches
...
now technically this is allowed on desktop, but probably makes more
sense on mobile via api
2021-05-18 12:46:45 -05:00
Lance Edgar
661d536e9d
Highlight "has inventory" rows for delete item batch
...
also pass list of such rows to template context
2021-04-28 14:06:35 -05:00
Lance Edgar
7532dc5117
Add support for inactivity_months
field for delete product batch
2021-03-09 11:44:56 -06:00
Lance Edgar
97e1700cf9
Expose date_created
for delete product batches
2021-03-05 12:51:55 -06:00
Lance Edgar
492546d0f6
Add hover text for subdepartment name, in pricing batch row grid
2021-03-02 09:26:36 -06:00
Lance Edgar
ba790823ed
Highlight delete product batch rows with "pending customer orders" status
2021-03-01 17:34:24 -06:00
Lance Edgar
793022b92f
Misc. tweaks for vendor catalog batch
...
per rattail changes, in particular for sake of Corporal, to allow for
non-native vendor and product associations
2021-02-15 12:57:35 -06:00
Lance Edgar
ff904d840f
Tweaks per "delete products" batch
2021-02-13 12:29:43 -06:00
Lance Edgar
f58b065316
Make errors more obvious, when running batch commands as subprocess
...
admin still must consult logs to determine cause, but at least UI won't hang
2021-02-09 14:24:05 -06:00
Lance Edgar
e462e41ae1
Cleanup default display for vendor catalog batches
...
expose description, notes etc.
2021-02-09 14:22:07 -06:00
Lance Edgar
5969515f25
Render batch execution description as markdown
2021-02-09 14:21:07 -06:00
Lance Edgar
f93fd7aefa
Fix display of handheld batch links, when viewing label batch
2021-02-02 14:48:34 -06:00
Lance Edgar
0128690da8
Update references to vendor invoice batches
...
per table/model rename
2021-02-02 13:49:10 -06:00
Lance Edgar
9b76e23354
Update references to vendor catalog batches
...
per table/model rename
2021-02-02 13:28:56 -06:00
Lance Edgar
329e75ee82
Add initial "scanning" feature for Ordering Batches
2021-01-31 21:51:46 -06:00
Lance Edgar
708641a8f1
Purge things for legacy (jquery) mobile, and unused template themes
...
gosh it feels good to get rid of this stuff... fingers crossed that nothing
was broken, but am thinking it's safe
2021-01-30 15:52:47 -06:00
Lance Edgar
719e7c8441
Normalize naming of all traditional master views
...
such names should never use plural forms. for now what plural forms were
previously in use, should still work. ideally can remove those at some point
2021-01-28 16:32:25 -06:00
Lance Edgar
f480c046f6
Add views for "delete product" batch
2021-01-19 12:18:56 -06:00
Lance Edgar
3cd5fa7f4a
Misc. tweaks to vendor catalog views
...
for sake of titeship
2020-10-23 22:08:43 -05:00
Lance Edgar
711ed947a3
Add "worksheet file" pattern for editing batches
...
lets user download a worksheet, edit, then upload back to update the batch
2020-09-18 12:17:04 -05:00
Lance Edgar
d2d632092b
Add support for batch execution options in Buefy themes
...
i.e. from "view batch" page
2020-08-23 13:53:55 -05:00
Lance Edgar
58362ae858
Add buefy theme support for ordering worksheet
2020-08-20 17:56:19 -05:00
Lance Edgar
d0e7f7dda2
Improve rendering of true_margin
column for pricing batch row grid
2020-08-09 15:50:25 -05:00
Lance Edgar
cf8072e402
Use handler do_delete()
method when deleting a batch
...
even though it seems we have 2 calls to `session.delete(batch)` now, but things
are still working..fingers crossed
2020-07-29 21:58:31 -05:00
Lance Edgar
0dfe52a42d
Don't allow "execute results" for any batches by default
...
custom app must always explicitly opt-in to that feature
2020-07-07 19:23:52 -05:00
Lance Edgar
2139fea3d0
Expose "shelved" field for pricing batches
2020-05-18 14:42:02 -05:00
Lance Edgar
d9f6a7201e
Let config totally disable the old/legacy jQuery mobile app
2020-04-04 20:51:49 -05:00
Lance Edgar
e9fc9ccbf7
Use "quick entry" logic from batch handler, for mobile inventory
...
pretty sure desktop version still needs cleanup, but later...
2020-03-29 15:20:34 -05:00
Lance Edgar
71a9010579
Make handler responsible for locating product for inventory batch
2020-03-29 15:20:34 -05:00
Lance Edgar
0e7835e2d9
Make inventory batch handler responsible for finding row for product
2020-03-29 15:20:32 -05:00
Lance Edgar
069eac1cf6
Add temporary method for inventory batch view
...
calling code should invoke handler directly instead of using this method, but
for now we need it to exist
2020-03-29 14:30:48 -05:00
Lance Edgar
dc4531f545
Let inventory batch handler decide which count modes are available
2020-03-29 13:37:50 -05:00
Lance Edgar
6a58f5f5d3
Let inventory batch handler decide if products should be aggregated
2020-03-29 13:33:38 -05:00
Lance Edgar
12b567d3d2
Let inventory batch handler decide what to do about unknown product scan
2020-03-29 13:09:14 -05:00
Lance Edgar
2532fcbea2
Let inventory batch handler decide if case input is allowed
2020-03-29 13:04:11 -05:00
Lance Edgar
0704717ec5
Let inventory batch handler declare which count modes are allowed
...
preparing for API/mobile usage
2020-03-29 12:46:41 -05:00
Lance Edgar
242e14e8a9
Allow bulk-delete for Inventory Batches
2020-03-29 12:07:42 -05:00
Lance Edgar
35bef2c3dd
Move inventory batch view to its proper location
...
but keep "inventory adjustment reasons" where it was; that also is proper
2020-03-29 12:05:05 -05:00
Lance Edgar
af07b433ad
Fix rendering of batch ID in forms
2020-03-23 21:41:44 -05:00
Lance Edgar
13802c49a8
Add "generic" render_id_str()
method to MasterView
...
not sure how useful, but maybe
2020-03-23 21:25:43 -05:00
Lance Edgar
eaeda6ca36
Fix row status filter for Import/Export batches
...
per Buefy theme
2020-03-23 20:55:46 -05:00
Lance Edgar
297ca3fe11
Fix default row grid config logic for batches
...
make sure we don't overwrite configured row labels
2020-03-20 14:58:29 -05:00
Lance Edgar
0483f47b26
Add support for refreshing multiple batches (results) at once
2020-03-02 18:11:13 -06:00
Lance Edgar
2605f5ab79
Fix batch row status breakdown for Buefy themes
...
also, fix the "import batch from file" feature UI, per Buefy theme
2020-03-02 14:38:06 -06:00
Lance Edgar
6925c460c5
Add some custom display logic for "current price" in pricing batch
2020-02-07 18:12:44 -06:00
Lance Edgar
b633c91b66
Add red highlight for SRP breach, for generic product batch
2020-01-28 17:24:10 -06:00
Lance Edgar
132b2b9ec7
Fix vendor ID/name for Excel download of pricing batch rows
2020-01-28 16:33:23 -06:00
Lance Edgar
201f7cc21e
Add warning for "price breaches SRP" rows in pricing batch
2020-01-28 11:59:40 -06:00
Lance Edgar
e9533727db
Allow populate of new pricing batch from products w/ "SRP breach"
2020-01-23 10:48:21 -06:00
Lance Edgar
234fd8b2e1
Add support for Row Status Breakdown, for Import/Export batches
2020-01-14 11:54:00 -06:00
Lance Edgar
a96c5712ab
Use currency formatting for costs in vendor catalog batch
...
and related tweaks
2019-12-04 16:51:55 -06:00
Lance Edgar
c14cf3022c
Allow update of row unit cost directly from receiving batch view
2019-11-22 20:12:48 -06:00
Lance Edgar
e153e530a8
Use "warning" status for pricing batch rows, where product not found
2019-11-04 12:39:26 -06:00
Lance Edgar
7f94e3fc77
Tweak a method signature for batch views
...
sometimes executing a batch will involve an "action" kwarg, so we can't use
that or else a collision ensues
2019-11-01 21:09:15 -05:00
Lance Edgar
39b1a78b89
Allow bulk delete of New Product batch rows
2019-10-23 14:50:36 -05:00
Lance Edgar
3dd70926b9
Expose unit cost diff for vendor invoice batch rows
2019-10-09 15:58:16 -05:00
Lance Edgar
adf377c41d
Move module for vendor invoice batch views to a new home
2019-10-09 15:38:12 -05:00
Lance Edgar
9a35a31261
Expose the "is preferred vendor" flag for vendor catalog batches
2019-10-09 14:55:51 -05:00
Lance Edgar
b451f4af55
Move module for vendor catalog batch views to a new home
...
also, expose new "unit cost diff percent" field
2019-10-09 14:16:44 -05:00
Lance Edgar
18c30fcb05
Allow bulk-delete for some common batches
2019-10-09 11:26:26 -05:00
Lance Edgar
b14a4987d2
Move label batch views to tailbone.views.batch.labels
...
to better match the general pattern we have going on
2019-10-09 11:11:22 -05:00
Lance Edgar
ff9700e23a
Add core View.make_progress()
method
...
so callers no longer need to import `SessionProgress` and create directly
2019-09-25 00:32:41 -05:00