Lance Edgar
de8751b86c
Try to return JSON error when receiving API call fails
...
although in my testing, the error still got raised somehow in the
tweens or something? client then sees it as a 500 response and gets
no JSON
2024-04-11 14:14:27 -05:00
Lance Edgar
a1b05540be
Avoid uncaught error when updating order batch row quantities
2024-04-10 12:24:13 -05:00
Lance Edgar
97e7026cc9
Avoid outright error if user scans barcode for inventory count
2023-11-15 09:46:23 -06:00
Lance Edgar
b13fc99e95
Use shared logic to get batch handler
2023-11-01 19:43:46 -05:00
Lance Edgar
5e8ea67773
Include invoice number for receiving batch row API
2023-10-19 14:57:06 -05:00
Lance Edgar
6d7754cf2a
Add back-end support for multi-column grid sorting
...
or very nearly, anyway. front-end still just supports 1 column yet
2023-10-08 14:29:01 -05:00
Lance Edgar
4d8c8b199c
Fix bug for new receiving from scratch via API
2023-09-18 18:37:41 -05:00
Lance Edgar
d1d69e9488
Show user warning if receive quick lookup fails
...
just b/c a UPC doesn't exist yet doesn't prevent the batch from (in
some cases) adding a row for "unknown product" - but if the UPC is
sufficiently invalid, that can't happen
2023-09-18 18:28:11 -05:00
Lance Edgar
70956a2c47
Tweaks to improve handling of "missing" items for receiving
2023-09-17 18:30:38 -05:00
Lance Edgar
e894d1d1f4
Include PO number for receiving batch details via API
2023-09-17 18:03:30 -05:00
Lance Edgar
cc7b9ccb86
Avoid error when history has blanks for ordering worksheet
2023-09-17 17:23:59 -05:00
Lance Edgar
75caface6b
Add products API route to fetch label profiles for use w/ printing
2023-09-02 10:56:06 -05:00
Lance Edgar
4e2125d613
Add support for "missing" credit in mobile receiving
2023-08-29 16:10:14 -05:00
Lance Edgar
a007606863
Declare "from PO" receiving workflow if applicable, in API
2023-08-17 18:12:42 -05:00
Lance Edgar
51cad13f5a
Update usage of app handler per upstream changes
2023-06-16 22:15:52 -05:00
Lance Edgar
29767dfcfb
Define essential views for API
2023-05-19 19:46:18 -05:00
Lance Edgar
c18367739f
Add initial swagger.json endpoint for API
...
probably this needs more, but good enough to test with
2023-05-16 23:34:48 -05:00
Lance Edgar
85947878c4
Get rid of newstyle
flag for Form.validate()
method
...
we always/only use "new style" now
2023-05-15 08:10:42 -05:00
Lance Edgar
2ed63b1c1a
Massive overhaul of "generate project" feature
...
previous incarnation was woefully lacking. new feature is much more
extensible. still need to remove old POS integration specifics in
some places.
and a couple of unrelated things that snuck in..
- deprecate `rattail.util.OrderedDict`
- deprecate `rattail.util.import_module_path()`
- deprecate `rattail.util.import_reload()`
2023-05-05 00:18:16 -05:00
Lance Edgar
f913ed8332
Expose, honor the prevent_password_change
flag for Users
2023-05-02 19:13:28 -05:00
Lance Edgar
2ebe0401c3
Fix JSON rendering for Cornice API views
...
also make sure we use Cornice for all API views
2023-03-09 14:07:10 -06:00
Lance Edgar
f611a5a521
Refactor Query.get()
=> Session.get()
per SQLAlchemy 1.4
2023-02-11 22:05:45 -06:00
Lance Edgar
5736faf24c
Use sa-filters instead of sqlalchemy-filters for API queries
...
latter was abandoned it seems; former has support for SQLAlchemy 1.4
and looks to be a drop-in replacement
another option, if needed at some point, though i like the looks of it
less, is https://sqlalchemy-filters-plus.readthedocs.io/
see also:
https://github.com/juliotrigo/sqlalchemy-filters/pull/69
https://github.com/juliotrigo/sqlalchemy-filters/issues/72
2023-02-11 11:53:47 -06:00
Lance Edgar
b7f3a67cd0
Add basic API support for printing product labels
2023-01-29 18:46:49 -06:00
Lance Edgar
dec0ebba30
Let the API "rawbytes" response be just that, w/ no file
2023-01-14 10:31:31 -06:00
Lance Edgar
71851e1a05
Use product handler to normalize data for products API
...
at least, as much as possible
2023-01-04 21:23:57 -06:00
Lance Edgar
1a51f3d854
Fix ordering worksheet API for date objects
2022-12-08 14:54:36 -06:00
Lance Edgar
ec71f532a1
Include email address for current API user info
2022-12-04 09:39:08 -06:00
Lance Edgar
e67cde4255
Avoid use of self.handler
within batch API views
2022-09-07 20:46:18 -05:00
Lance Edgar
35728e20be
Add default normalize logic for API views
...
and use common logic for getting field list in traditional Form class
2022-08-30 21:56:46 -05:00
Lance Edgar
960d6279a9
Include WorkOrder.estimated_total
for API
2022-08-30 21:14:01 -05:00
Lance Edgar
bc51a868ce
Consolidate master API view logic
...
also let all API views use new config defaults convention
2022-08-14 00:59:35 -05:00
Lance Edgar
4c29a667cb
Couple of API tweaks for work orders
...
made a change to sorting such that it assumes the primary model is
being sorted, if caller does not specify
2022-08-11 00:15:12 -05:00
Lance Edgar
ca5e2c1ff9
Add initial views for work orders
...
at least a head start maybe
2022-08-09 22:57:26 -05:00
Lance Edgar
3edbe96968
Some API tweaks to support a byjove app
2022-08-09 14:37:41 -05:00
Lance Edgar
ad7b347e16
Add "auto-receive all items" support for receiving batch API
2022-07-24 22:29:55 -05:00
Lance Edgar
a0bb481a43
Use AuthHandler.get_permissions()
...
instead of deprecated `cache_permissions()`
2022-01-03 15:34:00 -06:00
Lance Edgar
10e34b83ed
Refactor "receive row" and "declare credit" tools per buefy theme
2021-12-08 19:44:50 -06:00
Lance Edgar
232a02b944
Refactor to leverage all existing methods of auth handler
...
instead of importing and calling functions from core rattail
2021-10-14 23:30:26 -04:00
Lance Edgar
4474f30718
Allow override of "create" permission in API
2021-09-03 18:26:55 -05:00
Lance Edgar
fa700d53ad
Add /people API endpoint; allow for "native sort"
2021-09-03 16:26:15 -05:00
Lance Edgar
90af8f91b8
Let feedback forms define their own email key
...
so multiple recipient options may be presented to user, e.g. in public
frontend
2021-08-02 18:26:15 -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
2d75409757
Accept any decimal numbers for API inventory batch counts
...
i.e. don't assume integer values
2021-04-12 11:36:24 -05:00
Lance Edgar
c48371ca2a
Make it easier to extend "common" API views
2021-04-07 17:04:52 -05:00
Lance Edgar
63350469d0
Prevent updates to batch rows, if batch is immutable
...
probably need a lot more support for this elsewhere; this is all i needed for
the moment though..
2021-02-02 18:58:46 -06:00
Lance Edgar
329e75ee82
Add initial "scanning" feature for Ordering Batches
2021-01-31 21:51:46 -06:00
Lance Edgar
801c56f06e
More tweaks for receiving batch workflows
...
now first step requires choice of vendor and workflow. supports receiving from
PO at least for native use case.
2021-01-31 12:10:44 -06:00
Lance Edgar
4d8e29c892
Add basic support for "download" and "rawbytes" API views
2021-01-06 13:12:27 -06:00
Lance Edgar
0fbc8c9247
Add initial API views for inventory batches
2020-03-29 16:31:16 -05:00