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:
@@ -86,9 +86,8 @@
|
||||
parts)))]
|
||||
(recur parts n (inc mag)))))))
|
||||
|
||||
|
||||
(defn num->words [num]
|
||||
(let [total-cents (int (Math/round (* 100 num)))
|
||||
(let [total-cents (int (Math/round (* 100 num)))
|
||||
dollar-num (int (quot total-cents 100))
|
||||
cent-num (int (rem total-cents 100))
|
||||
dollars (str (words dollar-num) " dollars")
|
||||
|
||||
Reference in New Issue
Block a user