Commit 778d2c0d authored by phil's avatar phil

calculate delcredere of distribution

parent ae0cf1e7
......@@ -299,6 +299,8 @@
:invoice
:items
(map (fn [i] (update i :amount #(util/round-currency (* % (:coverage evt))))))
;; add delcredere, we need it for profitcenter bookings in case of deferrals
(map (fn [i] (assoc i :delcredere (util/round-currency (* 0.1 (:amount i))))))
vec ;; for iterating in handlebars templates this needs to be a vector, not a list!
(assoc* evt :distribution))))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment