Lance Edgar
0d2f6e060f
Use simple_error()
from rattail, for showing some error messages
...
just trying to standardize a little
2019-09-19 20:19:26 -05:00
Lance Edgar
43a210cac4
Fix "edit row" icon for batch row grids, for Buefy themes
2019-06-21 15:47:30 -05:00
Lance Edgar
cc79fe76fd
Refactor form/page component structure for Buefy/Vue.js
...
this also moves Execute Batch from the form buttons area, to object helper
2019-06-17 15:07:19 -05:00
Lance Edgar
26137ec81e
Add Buefy support for "execute results" from core batch grid view
2019-06-16 15:50:40 -05:00
Lance Edgar
d51fe8483a
Buefy support for "mark batch as (in)complete"
2019-06-15 20:47:45 -05:00
Lance Edgar
bbe2efa4b3
Allow bulk row delete for generic products batch
2019-05-30 13:25:42 -05:00
Lance Edgar
9d6cc86e60
Add basic Buefy support for row grids
...
possibly even "complete" support...guess we'll see
2019-05-06 19:53:59 -05:00
Lance Edgar
06bedf6cb4
Pass batch execution kwargs when doing that via subprocess
...
i.e. instead of the normal in-app method
2019-04-29 09:06:54 -05:00
Lance Edgar
a5f04b6c7f
Add filter for Vendor ID in Pricing Batch row grid
2019-04-25 21:29:10 -05:00
Lance Edgar
798a9893e9
Add category, family, report code support for generic product batch
2019-04-23 22:50:58 -05:00
Lance Edgar
f8d26b4f8f
Fix some issues with progress "socket" workaround for batches
2019-04-19 17:28:45 -05:00
Lance Edgar
2c1985bef3
Add support for generic "product" batch type
2019-04-19 13:23:21 -05:00
Lance Edgar
ea54ca6c11
Expose new code fields for pricing batch
2019-04-18 18:21:32 -05:00
Lance Edgar
1016b46243
Add "created by" and "executed by" grid filters for all batch views
2019-04-18 17:51:22 -05:00
Lance Edgar
6d68b56c56
Add views for "new product" batches
2019-04-17 21:48:41 -05:00
Lance Edgar
c869516449
Add basic "receive row" desktop view for receiving batches
...
not terribly polished yet, but works
2019-03-13 18:31:57 -05:00
Lance Edgar
d0b1cb527e
Tweak how batch handler is invoked to remove row
...
also, removes some related logic which now lives in handler
2019-03-11 19:32:41 -05:00
Lance Edgar
a5df9a2b3d
Invoke handler when marking batch as (in)complete
2019-02-26 18:01:27 -06:00
Lance Edgar
a45ce2ced2
Introduce support for "children first" truck dump receiving
...
still needs more testing to see what's left...
2019-02-06 16:50:40 -06:00
Lance Edgar
6cfc72c875
Add support for downloading batch rows as XLSX file
2019-02-05 18:18:02 -06:00
Lance Edgar
051cb71956
Let batch view customize logic for marking batch as (in)complete
2019-01-09 14:18:30 -06:00
Lance Edgar
1e42fe9de5
Only allow POST method for executing "results" for batch grid
2019-01-02 17:07:43 -06:00
Lance Edgar
c064bb275f
Expose vendor_id
column in pricing batch row grid
2019-01-02 16:38:38 -06:00
Lance Edgar
2ed34dda15
Make sure custom field labels are shown for batch execution dialog
2018-12-18 20:23:13 -06:00
Lance Edgar
3e9fdbacad
Expose subdepartment for pricing batch rows
2018-12-18 16:50:49 -06:00
Lance Edgar
c7496d7018
Clean up some inventory batch UI logic; prefer units by default
2018-12-18 15:13:01 -06:00
Lance Edgar
d61d9cc574
Add ability to make new pricing batch from input data file
2018-12-17 22:35:56 -06:00
Lance Edgar
fe35986432
Expose old_price_margin
field for pricing batch rows
2018-11-30 19:24:23 -06:00
Lance Edgar
23ce2fb33c
Add description, notes to default form_fields for batch views
2018-11-28 18:15:48 -06:00
Lance Edgar
25e61cc8d5
Use empty string instead of null as fallback value, for pricing rows CSV
2018-11-26 19:25:32 -06:00
Lance Edgar
3b54ab3e0b
Add "min % diff" option for pricing batch from products query
...
refactor the "batch from query" a bit also, to allow for multiple batch type
options which represent the same underlying batch type. (thought i needed
that, then realized i didn't, but seems safe to include.)
2018-11-25 20:14:49 -06:00
Lance Edgar
4fa9ab3c6e
Add better support for "make import batch from file" pattern
2018-11-22 20:26:28 -06:00
Lance Edgar
4806d7e5fe
Expose price_diff_percent
, margin_diff
for pricing batch row
2018-11-18 21:12:08 -06:00
Lance Edgar
342c7c3854
Move some label definitions for pricing batch rows
2018-11-18 20:47:24 -06:00
Lance Edgar
4a36ab827c
Expose "suggested price" for pricing batch row view
2018-11-18 20:02:43 -06:00
Lance Edgar
fded97d586
Don't add values to CSV row for undefined fields
2018-11-18 20:02:14 -06:00
Lance Edgar
de6275003e
Add vendor id, name to row CSV download for pricing batch
2018-11-18 19:36:28 -06:00
Lance Edgar
bdbb8e2a7d
Make sure status field is readonly when creating new batch
2018-11-07 16:47:51 -06:00
Lance Edgar
e4a518c444
Remove some unwanted row grid labels
...
doing it that way makes customization harder..still need to revisit how best to
do that i guess
2018-11-02 18:59:46 -05:00
Lance Edgar
2bd107056c
Add MasterView.render_product()
, fix edit for pricing batch row
2018-10-23 17:20:47 -05:00
Lance Edgar
fb3105c099
Fix batch row status breakdown, for rows with no status
2018-09-20 18:22:36 -05:00
Lance Edgar
0b9fe2dfe7
Add simple row status breakdown when viewing batch
2018-09-20 15:58:45 -05:00
Lance Edgar
950af8b5e0
Add "quick lookup" for mobile Products page
...
only if enabled, otherwise just shows the normal grid
2018-08-09 22:11:44 -05:00
Lance Edgar
d8b45db331
Improve support for "receive from scratch" workflow, esp. for mobile
...
also try harder to make certain aspects easier to enable/disable via handler,
e.g. whether cases should be allowed as quantity input, or expired credits
should be a thing etc.
2018-07-17 19:55:15 -05:00
Lance Edgar
935a6b2a68
Add basic autocomplete support for "quick row" feature
2018-07-13 19:12:39 -05:00
Lance Edgar
68bd3047c4
Add initial support for mobile "quick row" feature, for ordering
...
at least for now, ordering only, but hopefully much more soon...
2018-07-12 22:53:29 -05:00
Lance Edgar
3cc789dda9
Fix batch action kwargs, so 'action' can be a handler kwarg
...
i.e. at least the handheld batch handler, accepts an 'action' kwarg for its
execute() method. we had apparently broken that
2018-07-03 18:32:03 -05:00
Lance Edgar
ac5a6c011b
Fix batch file download link URL
2018-07-03 18:25:34 -05:00
Lance Edgar
edbf7e6723
Fix bug when populating new batch
2018-06-27 12:19:34 -05:00
Lance Edgar
df9141ec4e
Let config override sys.prefix when launching batch commands in subprocess
2018-06-08 11:41:40 -05:00
Lance Edgar
44ff02b7af
Add versioning workaround support for batch actions
...
* add `can_cancel` flag for progress page, hide button if set
* overhaul populate/refresh/execute to launch socket/subprocess if necessary
2018-06-07 12:40:25 -05:00
Lance Edgar
57c2a7981f
Fix some things for inventory batch views
2018-05-23 14:13:28 -05:00
Lance Edgar
62dca3d0b0
Only show "toggle complete" buttons when viewing batch
...
i.e. just show simple value for e.g. delete batch page
2018-05-23 13:28:11 -05:00
Lance Edgar
6d27d0cfba
Hide "create new row" link for batches which are marked complete
2018-05-23 13:11:32 -05:00
Lance Edgar
218ac221e5
Add buttons to toggle batch 'complete' flag when viewing batch
2018-05-23 13:06:49 -05:00
Lance Edgar
ecf7acc800
Fix handling of 'filename' field when making new batch
2018-05-22 15:31:31 -05:00
Lance Edgar
cd7922f204
Add "most of" support for truck dump receiving
...
still not complete, but conceptually it sort of is...
2018-05-18 15:51:47 -05:00
Lance Edgar
630ffe0cf8
Don't allow row deletion if batch is marked complete
2018-02-22 12:26:21 -06:00
Lance Edgar
3d79f9fd7d
Add support for executing batch with options, via mobile
2018-02-22 11:20:12 -06:00
Lance Edgar
2a2ff721c1
Bind batch to its execution options schema, when applicable
...
so the batch can provide default values, etc. this also tweaks logic for using
defaults from session storage, so that they don't take priority over batch values
2018-02-22 11:18:11 -06:00
Lance Edgar
a8a4e362a0
Add basic mobile support for executing batches
...
no progress, or options, yet..
2018-02-21 18:55:16 -06:00
Lance Edgar
6ca69802f5
Add download path for batch master views
2018-02-19 19:59:01 -06:00
Lance Edgar
2ab00bfd78
More python 3 tweaks
2018-02-12 22:17:38 -06:00
Lance Edgar
b0821e8011
More tweaks for python 3
2018-02-12 15:32:54 -06:00
Lance Edgar
ee35cc6f22
Misc. cleanup for Python 3
2018-02-12 14:41:40 -06:00
Lance Edgar
cdaf36f346
Rename 'forms2' package, templates to 'forms'
2018-02-11 22:57:33 -06:00
Lance Edgar
dd04459748
Refactor batch execution options to use colander/deform
2018-02-11 22:37:17 -06:00
Lance Edgar
2cbacd6187
Remove legacy fieldset configuration logic
2018-02-11 16:25:09 -06:00
Lance Edgar
4191a56bfb
Fix some bugs with importer batch views
2018-02-10 17:14:32 -06:00
Lance Edgar
9387ef7116
Fix missing import bug
2018-02-06 10:31:36 -06:00
Lance Edgar
2219315ccc
Collapse all master4 views back to just 'master'
2018-02-05 21:23:23 -06:00
Lance Edgar
dfc5e0f50e
Refactor importer batch views per master4
2018-02-05 13:00:34 -06:00
Lance Edgar
38afb35b65
Refactor pricing batch views per master4
2018-02-05 13:00:34 -06:00
Lance Edgar
410ee8eb65
Add base master4 batch view
2018-02-05 13:00:31 -06:00
Lance Edgar
aded59d7ff
Don't process file for new batch unless field is present
2018-02-03 14:49:49 -06:00
Lance Edgar
33931b4bf2
Refactor vendor invoice batch views to use master3
2018-02-03 12:37:24 -06:00
Lance Edgar
c74bce2fdb
Fix bugs when making inventory batch on mobile
2018-02-01 14:28:24 -06:00
Lance Edgar
8d62960548
Refactor importer batch views to use master3
2018-01-27 13:04:07 -06:00
Lance Edgar
2cbe1b0049
Refactor pricing batch view to use master3
2018-01-27 12:53:32 -06:00
Lance Edgar
8eab3c5b36
Refactor handheld batch views to use master3
2018-01-27 12:23:47 -06:00
Lance Edgar
eac59ba5c8
Refactor purchasing batch views to use master3
2018-01-27 11:59:52 -06:00
Lance Edgar
d20601c359
Refactor label batch view to use master3
2018-01-26 19:14:15 -06:00
Lance Edgar
efdbc3c5b5
Show "buttons" when viewing an object, with forms2
...
also tweak logic when creating a batch..we'll see if it works..
2018-01-26 19:04:34 -06:00
Lance Edgar
e2cdb4387a
Fix row query bug when deleting batch row
2018-01-11 12:25:25 -06:00
Lance Edgar
acb4a77032
Add first attempt at master3 for batch views
2018-01-08 22:49:45 -06:00
Lance Edgar
fb140f24c1
Add basic UI support for "importer batch" feature
2018-01-06 20:28:59 -06:00
Lance Edgar
46d0e96321
Stop setting execution details when multiple batches executed
...
that's now the handler's job
2018-01-05 20:39:38 -06:00
Lance Edgar
4902fab187
Refactor views to use Grid.set_sort_defaults()
method
2017-12-04 22:40:10 -06:00
Lance Edgar
a7d8cfcdbb
Let batch views allow or deny "execute results" option
2017-12-02 17:08:17 -06:00
Lance Edgar
70a34615a3
Expose description and notes for label batches
2017-12-02 14:20:02 -06:00
Lance Edgar
11a63ab2ef
Fix batch row count when bulk-deleting rows
2017-12-02 13:24:38 -06:00
Lance Edgar
9cf5c9385d
Add batch description to page body title
2017-11-30 11:22:54 -06:00
Lance Edgar
6decabb369
Various batch tweaks, for better execution options etc.
2017-11-29 18:26:55 -06:00
Lance Edgar
df3623b663
Add more "manually priced" awareness to pricing batch UI
2017-11-29 18:25:47 -06:00
Lance Edgar
2cba0ade84
Accept None
as valid arg for Grid.set_filter()
...
i.e. to effectively remove the filter
2017-11-11 09:52:11 -06:00
Lance Edgar
c7855f2ca5
Add description, notes for pricing batches
2017-10-30 21:33:25 -07:00
Lance Edgar
c95e2dbb06
Add "download row results as CSV" feature to master view
2017-10-14 14:14:24 -07:00
Lance Edgar
3bcec30a4c
Don't set batch input file on creation, if no file exists
2017-09-23 13:32:12 -05:00
Lance Edgar
e1384c2ab1
Tweak default labels for created(by) batch form fields
2017-09-23 11:48:38 -05:00
Lance Edgar
3477637c74
Allow batch execution to require options on a per-batch basis
...
plus some other changes i think..
2017-08-16 23:27:27 -05:00
Lance Edgar
0ad2113b81
Various tweaks to inventory batch logic
...
really to support zero-all mode, but several generic changes too
2017-08-10 11:10:42 -05:00
Lance Edgar
4f2bf5431d
Fix clone config bug for label batches
2017-08-09 23:15:38 -05:00
Lance Edgar
18f4b4ff5c
Various changes to support a certain new app
...
improve inventory support, plus "hiding" person data but still using it
2017-08-09 21:41:42 -05:00
Lance Edgar
2dc539c357
Fix bulk-delete for batch rows, allow it for pricing batches
2017-08-08 16:57:05 -05:00
Lance Edgar
f46e20c119
Refactor progress bars somewhat to allow file-based sessions
...
hoping this solves issue of Apache restart at end of upgrade
2017-08-07 18:19:29 -05:00
Lance Edgar
f5688f1f90
Add basic support for performing / tracking app upgrades
...
also add `MasterView.executable` and friends
2017-08-05 22:07:49 -05:00
Lance Edgar
65c63dad3e
Initial support for mobile ordering
...
plus various other changes required for that
2017-08-02 12:08:23 -05:00
Lance Edgar
61d504afb8
Various tweaks for support of native inventory
...
certaianly some other things made it in here too..
2017-07-19 01:42:18 -05:00
Lance Edgar
69778a4682
Fix import bug
2017-07-18 13:26:04 -05:00
Lance Edgar
965dac9f43
Refactor (coalesce) all batch-related templates
2017-07-14 22:08:48 -05:00
Lance Edgar
951057d8c2
Refactor / cleanup v2 batch master
...
also remove old/unused logic from v1 batch master
2017-07-14 21:55:35 -05:00
Lance Edgar
55ca7d5117
Remove references to master2 templates
2017-07-14 21:38:46 -05:00
Lance Edgar
c57e2e17cc
Final grid refactor; we now have just 'grids' :)
...
this also removes some old UI stuff for the first attempt at continuum
versioning..among other cruft
2017-07-14 20:30:00 -05:00
Lance Edgar
c18774e5e5
Fix template/styles for v3 grid views, add purchasing batch status
2017-07-14 15:45:31 -05:00
Lance Edgar
5b1ae27a10
Add new "v3" grids, refactor all views to use them
...
or at least that's the idea..hopefully we caught them all
2017-07-14 03:57:36 -05:00
Lance Edgar
1791bd745b
More tweaks to support mobile inventory batches
2017-07-11 21:59:12 -05:00
Lance Edgar
32d256932e
Various tweaks to support mobile inventory batches
...
still not fully there I think, but pretty close..
2017-07-11 20:57:52 -05:00
Lance Edgar
452cb99349
Add basic support for viewing inventory batches on mobile
2017-07-11 16:23:11 -05:00
Lance Edgar
60104f05c7
Make all batches support mobile by default
...
with default pending/etc. filter also
2017-07-11 15:25:05 -05:00
Lance Edgar
581ced2990
Switch license to GPL v3 (no longer Affero)
...
refs #2
2017-07-06 23:47:56 -05:00
Lance Edgar
8014e60d14
Add webhelpers2 dependency, use it for most things
...
still using webhelpers for certain things yet, hopefully can get rid of that soon
2017-07-06 20:13:42 -05:00
Lance Edgar
91a14c81a9
Remove all old-style CRUD views
2017-07-06 15:46:05 -05:00
Lance Edgar
53d69acbcc
Remove all old-style batch CRUD views
2017-07-06 15:44:37 -05:00
Lance Edgar
62fa0f9fcb
Remove all "old-style" (aka. version 1) grids
2017-07-06 15:23:33 -05:00
Lance Edgar
b9a96f306b
Add row count to inventory and label batch views
2017-06-22 01:17:34 -05:00
Lance Edgar
17017adde8
Tweak behavior when executing handheld batch results
...
redirect to final batch when done, try to warn user a bit
2017-06-22 01:02:03 -05:00
Lance Edgar
0d448fe6c5
Fix batch row count when deleting a row
2017-06-22 00:52:41 -05:00
Lance Edgar
5a0fa20e03
Add way to execute multiple handheld batches at once
2017-06-21 17:29:06 -05:00
Lance Edgar
1fc3133f8e
Try to keep batch status updated; display it for handheld batches
...
seems a little hacky but hoping it's safe at least
2017-06-21 13:24:27 -05:00
Lance Edgar
83dbf405f6
Add row count as available column to batch header grids
2017-06-21 12:59:13 -05:00
Lance Edgar
da0f5cb63c
Fix bug where batch notes weren't saved upon creation
2017-05-25 12:20:37 -05:00
Lance Edgar
b841ce664e
Make 'notes' field use textarea renderer by default, for all batches
2017-05-24 20:11:53 -05:00
Lance Edgar
cf8df76788
Add support for bulk-delete of Pricing Batches
2017-05-24 18:10:38 -05:00
Lance Edgar
d93b91f491
Various tweaks for mobile receiving batches
...
this is temporary, soon will refactor all that again..
2017-05-22 13:13:44 -05:00
Lance Edgar
242bcd7603
Remove references to deprecated batch handler methods
2017-05-18 11:57:30 -05:00
Lance Edgar
f0feefc7e5
Tweak how purchase batch is created via mobile
...
to let custom apps override args etc.
2017-05-18 11:33:01 -05:00
Lance Edgar
56695d0c20
Allow batch view to override execution failure message
2017-05-11 09:49:15 -05:00
Lance Edgar
72ae1191a0
Let a batch disallow bulk-deletion of its rows
2017-05-04 16:34:48 -05:00
Lance Edgar
abb82c91f3
Add BatchMasterView.add_file_field()
convenience method
2017-03-21 13:19:38 -05:00
Lance Edgar
581a21bd9d
Add basic "mobile index" master view, plus support for demo mode
2017-03-19 11:21:00 -05:00
Lance Edgar
49c9bbbbee
Be explicit about fieldset for pricing batch rows
...
Seems helpful to investigate these sometimes...
2017-02-02 15:34:32 -06:00
Lance Edgar
12545c6a20
Add way for batch views to hide rows with given status code(s)
...
This seems like it would often be useful...though maybe belongs in the handler?
2017-01-30 17:08:05 -06:00
Lance Edgar
e452ea1ae9
Add min diff threshold param when making price batch from product query
...
Hopefully this sets the stage for arbitrary batch params here..
2017-01-30 16:11:29 -06:00
Lance Edgar
25492cc0e8
Add warning highlight for pricing batch row if can't calculate price
2017-01-29 11:29:53 -06:00
Lance Edgar
3e98b24492
Add price diff column to pricing batch row grid
2017-01-29 11:22:20 -06:00
Lance Edgar
c2a189cb40
Add basic support for cloning batches
...
For now only label batches support this by default
2017-01-24 21:36:58 -06:00
Lance Edgar
1da898c9cf
Tweak default filter label for Batch ID
2016-12-28 16:43:07 -06:00
Lance Edgar
c8ec13d130
Add permission for bulk-delete of batch data rows
2016-11-26 21:22:57 -06:00
Lance Edgar
668191b2e9
Add support for pricing batches
2016-11-21 19:36:57 -06:00