Commit graph

205 commits

Author SHA1 Message Date
Lance Edgar 2eaeb1891d Add initial support for Vue 3 + Oruga, via "butterball" theme
just a savepoint, still have lots to do and test before this really works
2024-04-27 21:06:20 -05:00
Lance Edgar 890ec64f3c Misc. template cleanup per oruga effort 2024-04-27 19:17:27 -05:00
Lance Edgar 8b3a9c9dad Use simple field labels when possible
only use template if it must include icons etc.
2024-04-25 22:49:37 -05:00
Lance Edgar 9065f42195 Fix typo when getting app instance 2024-04-16 20:10:10 -05:00
Lance Edgar 0d9c5a078b Improve form support for view supplements
this seems a bit hacky yet but works for now..

cf. field logic for Vendor -> Quickbooks Bank Accounts, which requires this
2024-04-16 18:21:59 -05:00
Lance Edgar ba521abf4f Remove some references to "buefy" name within docstrings, comments 2024-04-14 20:30:52 -05:00
Lance Edgar c036932ce4 Remove several references to "buefy" name
class methods, template filenames, etc.

also made various edits per newer conventions
2024-04-14 19:54:29 -05:00
Lance Edgar 1103b09a76 Rename forms/deform template (drop buefy suffix)
for now, deprecate `form.render()` method and just use
`render_deform()` - but probably should change that to something
else eventually..?
2024-04-13 09:45:10 -05:00
Lance Edgar 3e4bbf7092 Use clientele handler to populate customer dropdown widget 2023-12-01 19:50:07 -06:00
Lance Edgar da13254caa Tweak param docs for Form.set_validator() 2023-10-29 15:10:56 -05:00
Lance Edgar 0d30247353 Add validtion to prevent duplicate files for multi-invoice receiving
by comparing sha256 hash values for each file
2023-10-19 14:03:25 -05:00
Lance Edgar 44112a3a4b Allow null for FalafelDateTime form fields 2023-10-09 15:50:41 -05:00
Lance Edgar b30f6cdf3a Fix CRUD pages for tempmon clients, probes
for some reason if helptext had embedded newlines, it would now fail
to render the form altogether.  guess that is a result of recent
change to e.g. `<b-field :message="['foo', 'bar']">` logic,
somehow.. anyway hopefully this fixes and no more surprises
2023-10-05 13:11:05 -05:00
Lance Edgar 4125be7e8d Re-work FalafelDateTime logic a bit
need to be more "standard" in how (de)serialize works etc.

also be sure to show error messages if present, not just field helptext
2023-10-02 09:54:34 -05:00
Lance Edgar e23b2f8711 Add custom form type/widget for time fields
ugh this still isn't that great, but making progress overall
2023-09-25 19:22:02 -05:00
Lance Edgar a807a0f50c Add "falafel" custom date/time field type and widget
finally able to edit datetime fields, but feels like a lot of
assumptions to make, just to determine time zone..so keeping naive UTC
on the backend still, and naive local on the frontend

in general this needs more polish, but is a start..
2023-09-16 20:01:32 -05:00
Lance Edgar 4e2125d613 Add support for "missing" credit in mobile receiving 2023-08-29 16:10:14 -05:00
Lance Edgar c002d3d182 Add basic support for managing, and accepting API tokens
also various other changes in pursuit of that.  so far tokens are only
accepted by web API and not traditional web app
2023-05-15 08:10:42 -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 743a2ccd07 Add views for sample vendor files 2023-02-22 22:00:05 -06:00
Lance Edgar f611a5a521 Refactor Query.get() => Session.get() per SQLAlchemy 1.4 2023-02-11 22:05:45 -06:00
Lance Edgar 8fc3a71e0f Fix multi-file upload widget bug
happened when only one file was being uploaded
2023-02-10 12:40:23 -06:00
Lance Edgar 9faaea881d Remove all deprecated use_buefy logic
also remove some static files no longer used, etc.
2023-02-03 16:10:04 -06:00
Lance Edgar 506de0383f Form constructor assumes use_buefy=True by default
until we get rid of it altogether
2023-02-02 20:21:19 -06:00
Lance Edgar b8389c72bb Add support for per-item default discount, for new custorder 2023-01-11 16:41:07 -06:00
Lance Edgar dfa4178204 Add basic support for receiving from multiple invoice files 2023-01-10 16:46:21 -06:00
Lance Edgar a061e362c3 Add beginnings of "New Table" feature
nowhere near complete yet, but skeleton is more or less in place
2023-01-02 09:44:05 -06:00
Lance Edgar cfc92ac9e7 Hide the "configure field help" icons until user requests access
user can technically "request access" on "any page" and not just those
with configurable fields..but who cares for now i think..
2022-12-27 22:30:25 -06:00
Lance Edgar 3befdc09e3 Add basic support for editing field help info 2022-12-24 21:46:02 -06:00
Lance Edgar 2e3823364c Add support for editing catalog cost in receiving batch, per new theme
had to add several "under the hood" features to make this work, to
embed a Vue component within grid `<td>` cells, etc.
2022-12-05 14:03:03 -06:00
Lance Edgar c2b2d11141 Use shared logic for rendering percentage values 2022-10-29 13:40:35 -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 2fde1db83c Allow user feedback to request email reply back 2022-08-17 21:08:54 -05:00
Lance Edgar e49a31df6a Avoid double-quotes in field error messages JS code 2022-08-12 19:47:25 -05:00
Lance Edgar 8f1f8abf42 Fix HTML literal for hidden form field 2022-08-09 14:48:23 -05:00
Lance Edgar d6aeb1d10f Add convenience wrapper to make customer field widget, etc.
customer widget is either autocomplete or dropdown, per config

also added a way to pass arbitrary kwargs to the chameleon template
rendering for a field

also moved the logic for rendering a <b-field> out of the template and
into the Form class

also start to prefer `input_handler` over `input_callback` when
specifying client-side JS hook
2022-08-09 14:37:29 -05:00
Lance Edgar f33d7b7f90 Add iter(Form) logic, to loop through fields 2022-07-24 21:11:36 -05:00
Lance Edgar aea7f01047 Fix quotes for field helptext 2022-04-07 12:57:40 -05:00
Lance Edgar e284370c4b Add Form.insert() method, to insert field based on index 2022-03-09 19:41:46 -06:00
Lance Edgar 01b78d7513 Add workaround when inserting new fields to form field list
i.e. if inserting "before" or "after" a field which does not exist
2022-03-09 18:39:12 -06:00
Lance Edgar 72177aef0a Add basic support for Poser reports, list/create 2022-03-02 17:21:38 -06:00
Lance Edgar 7b485d5ad2 Remove some duplicated code
in fact it wasn't exactly duplicate..it had a bug which the shared
function code does not have
2022-02-28 12:05:16 -06:00
Lance Edgar 4e3aa1af83 Tweak how "duration" fields are rendered for grids, forms 2022-02-12 19:16:16 -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 8579b89002 Add way to set form-wide schema validator
was needed to enforce rule where one field is required only in some
cases, depending on value of another field
2022-01-09 18:13:12 -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 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 10e34b83ed Refactor "receive row" and "declare credit" tools per buefy theme 2021-12-08 19:44:50 -06:00
Lance Edgar 6fc666e221 Fix form ref bug, for batch execution 2021-12-07 16:18:56 -06:00