Correct Zcash price handling in invdata

This commit is contained in:
Rene Vergara 2023-06-22 11:52:36 -05:00
parent fb0144bbe1
commit 4bd49c76d4
Signed by: pitmutt
GPG key ID: 65122AD495A7F5B2

View file

@ -699,7 +699,7 @@ routes pipe config = do
run run
(findPrice $ (findPrice $
T.unpack . ocurrency $ o') T.unpack . ocurrency $ o')
case cast' . Doc =<< pr of case parseZGoPrice =<< pr of
Nothing -> do Nothing -> do
status ok200 status ok200
Web.Scotty.json Web.Scotty.json
@ -722,9 +722,9 @@ routes pipe config = do
now now
True True
(ocurrency o') (ocurrency o')
cp (price cp)
(xi_total xI) (xi_total xI)
(xi_total xI / cp) (xi_total xI / price cp)
[ LineItem [ LineItem
1 1
("Invoice from " <> ("Invoice from " <>