Correct Zcash price handling in invdata
This commit is contained in:
parent
fb0144bbe1
commit
4bd49c76d4
1 changed files with 3 additions and 3 deletions
|
@ -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 " <>
|
||||||
|
|
Loading…
Reference in a new issue