]> git.ktnx.net Git - mobile-ledger.git/commit
ParsedAmount: do not create a price member object by default
authorDamyan Ivanov <dam+mobileledger@ktnx.net>
Sat, 30 Nov 2019 21:04:41 +0000 (23:04 +0200)
committerDamyan Ivanov <dam+mobileledger@ktnx.net>
Sat, 30 Nov 2019 21:04:41 +0000 (23:04 +0200)
commit4f7aa3c8dc34ffc7d6b2707d622a007151b3d018
tree2704fe23539d87131b72c10ab4188ff566dfc6e7
parenta62be6823bff54df6af63bccf485c2a2e22ed7a0
ParsedAmount: do not create a price member object by default

when no price is entered the member should be sent as null, otherwise
hledger-web 1.15.2 rejects the request with err 400 and complains about
invalid price object

further fixing this would need making it send a proper price object, but
since MoLe doesn't support entering prices, that is left for the future
app/src/main/java/net/ktnx/mobileledger/json/ParsedAmount.java
app/src/main/java/net/ktnx/mobileledger/json/ParsedPrice.java