This commit is contained in:
parent
1674e338ac
commit
985a87ebfa
4 changed files with 20 additions and 11 deletions
|
|
@ -46,8 +46,10 @@ let to_string =
|
|||
in
|
||||
let pp_currency ppf = function `Eur -> string ppf "EUR" in
|
||||
fun ppf { sign; currency; value; fraction } ->
|
||||
pf ppf "%a%a:%Ld.%Ld" (Fmt.option pp_sign) sign pp_currency currency value
|
||||
fraction
|
||||
(* TODO amount
|
||||
use config *)
|
||||
pf ppf "%a%a:%Ld.%02Ld" (Fmt.option pp_sign) sign pp_currency currency
|
||||
value fraction
|
||||
in
|
||||
Fmt.str "%a" pp
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue