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:
@@ -411,7 +411,7 @@
|
||||
:location "HQ"}]}
|
||||
admin-identity (admin-token)]
|
||||
(is (thrown? Exception (sut/import-ledger {:form-params form-params
|
||||
:identity admin-identity})))))
|
||||
:identity admin-identity})))))
|
||||
|
||||
(testing "Should produce form-errors for invalid account entries"
|
||||
(let [_ (setup-test-data [(test-client :db/id "err-client-1"
|
||||
@@ -430,7 +430,7 @@
|
||||
:location "HQ"}]}
|
||||
admin-identity (admin-token)]
|
||||
(is (thrown? Exception (sut/import-ledger {:form-params form-params
|
||||
:identity admin-identity}))))))
|
||||
:identity admin-identity}))))))
|
||||
|
||||
(deftest import-ledger-with-warnings-test
|
||||
(testing "Should ignore entries with only warnings"
|
||||
|
||||
Reference in New Issue
Block a user