ccomeaux / boardgamegeek4android

BoardGameGeek application for Android (unofficial)
GNU General Public License v3.0
228 stars 47 forks source link

Default currency and quantity issue #129

Open rafal-watorski opened 4 years ago

rafal-watorski commented 4 years ago

I usually use PLN as my currency, so I have to select "Other" as currency for "Price Paid" and "Current Price" fields. I also leave "Quantity" field empty if there is only 1 item. Using XMLAPI2 on such game returns for example: <privateinfo pp_currency="" pricepaid="45" cv_currency="" currvalue="55.5" quantity="" acquisitiondate="2019-11-07" acquiredfrom="planszoweczka.pl" inventorylocation="">

When editing private info in the application, whenever the mentioned fields are empty, I see "USD" as selected currency and "1" in quantity fields. I understand that it's a default value when creating a new collection item, but why it's also a default when editing an existing one? If I only wanted to adjust the price or add a private comment, then I also have to manually change currency to "Other" for both fields and quantity to empty string every single time...

Kaligula0 commented 4 years ago

If I select Other as currency in app it saves to BGG as Other. And it remains as Other in app until I go back to [My games] tab. If I go as far back ([My games] tab) and then go to edit the price again – the current currency in the combo box is set to USD as rafal said.

I also noticed yesterday, that editing Private info saves Quantity=1 by default, even when no fields are edited.

Kaligula0 commented 4 years ago

Even if I input 0 in Quantity (and it saves 0 to BGG website, which shows empty field) – next time I edit the Private info in app it's default 1 again.