codinguser / gnucash-android

Gnucash for Android mobile companion application.
Apache License 2.0
1.23k stars 540 forks source link

Sometimes amounts are exported with double minus to QIF #693

Closed rivaldi8 closed 7 years ago

rivaldi8 commented 7 years ago

Steps to reproduce the behaviour

Expected behaviour

Import process should proceed without problems

Actual behaviour

Related to #655

Software specifications

rivaldi8 commented 7 years ago

Fixed by 2353957 in develop.

@codinguser I'm assuming here, as stated in Split's javadoc, that splits always have positive amounts. However, there are some places where it seems it allows negative amounts (example), which is confusing. If you could confirm that my assumption is right, I'll change all this code to assume positive amounts instead.

codinguser commented 7 years ago

@rivaldi8 yes, you are correct in your assumption. Splits should always be positive, and the type determines the effect of the split.