Add vendor pre-population for bulk code and individual edit forms
- Add vendor-changed HTMX handlers for both bulk code and individual edit - Pre-populate default account at 100% when vendor is selected and no accounts exist - Fix render-accounts-section to render from step-params correctly - Change bulk code vendor-changed from hx-get to hx-post to include form data - Add routes for vendor-changed endpoints - Update e2e tests to cover vendor pre-population - Run lein cljfmt fix across codebase
This commit is contained in:
@@ -120,8 +120,6 @@
|
||||
:value (-> (fc/field-value)
|
||||
(atime/unparse-local atime/normal-date))})]))
|
||||
|
||||
|
||||
|
||||
(fc/with-field-default :outgoing-invoice/line-items [{:db/id "first"}]
|
||||
(com/validated-field {:errors (fc/field-errors)
|
||||
:label "Line items"}
|
||||
@@ -280,6 +278,6 @@
|
||||
(add-new-entity-handler [:outgoing-invoice/line-items]
|
||||
(fn render [cursor request]
|
||||
(line-item
|
||||
{:value cursor }))
|
||||
{:value cursor}))
|
||||
(fn build-new-row [base _]
|
||||
base)))})
|
||||
Reference in New Issue
Block a user