Skip to content

Commit

Permalink
Added support for trading accounts
Browse files Browse the repository at this point in the history
Should fix crashes during import due to trading account missing - closes codinguser#272
  • Loading branch information
codinguser committed Jan 23, 2015
1 parent 1cdf8b0 commit 33e4267
Show file tree
Hide file tree
Showing 16 changed files with 16 additions and 1 deletion.
1 change: 1 addition & 0 deletions app/res/values-de/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -364,6 +364,7 @@
<item>WÄHRUNG</item>
<item>AKTIENKONTO</item>
<item>INVESTMENTFONDS</item>
<item>TRADING</item>
</string-array>
<string-array name="export_formats">
<item>QIF</item>
Expand Down
1 change: 1 addition & 0 deletions app/res/values-el/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -379,6 +379,7 @@
<item>ΝΟΜΙΣΜΑ</item>
<item>ΜΕΤΟΧΗ</item>
<item>ΑΜΟΙΒΑΙΟ ΚΕΦΑΛΑΙΟ</item>
<item>TRADING</item>
</string-array>
<string-array name="export_formats">
<item>QIF</item>
Expand Down
1 change: 1 addition & 0 deletions app/res/values-es-rMX/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -364,6 +364,7 @@
<item>DIVISA</item>
<item>ACCIONES</item>
<item>FONDOS</item>
<item>TRADING</item>
</string-array>
<string-array name="export_formats">
<item>QIF</item>
Expand Down
1 change: 1 addition & 0 deletions app/res/values-es/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -364,6 +364,7 @@
<item>DIVISA</item>
<item>ACCIONES</item>
<item>FONDOS</item>
<item>TRADING</item>
</string-array>
<string-array name="export_formats">
<item>QIF</item>
Expand Down
1 change: 1 addition & 0 deletions app/res/values-fr/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -362,6 +362,7 @@
<item>DEVISES</item>
<item>ACTIONS</item>
<item>FONDS COMMUNS</item>
<item>TRADING</item>
</string-array>
<string-array name="export_formats">
<item>QIF</item>
Expand Down
1 change: 1 addition & 0 deletions app/res/values-hu/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -366,6 +366,7 @@
<item>CURRENCY</item>
<item>STOCK</item>
<item>MUTUAL FUND</item>
<item>TRADING</item>
</string-array>
<string-array name="export_formats">
<item>QIF</item>
Expand Down
1 change: 1 addition & 0 deletions app/res/values-it/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -366,6 +366,7 @@
<item>VALUTA</item>
<item>AZIONE</item>
<item>FONDO COMUNE</item>
<item>TRADING</item>
</string-array>
<string-array name="export_formats">
<item>QIF</item>
Expand Down
1 change: 1 addition & 0 deletions app/res/values-nb/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -365,6 +365,7 @@
<item>VALUTA</item>
<item>AKSJE</item>
<item>AKSJEFOND</item>
<item>TRADING</item>
</string-array>
<string-array name="export_formats">
<item>QIF</item>
Expand Down
1 change: 1 addition & 0 deletions app/res/values-nl/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -366,6 +366,7 @@
<item>CURRENCY</item>
<item>STOCK</item>
<item>MUTUAL FUND</item>
<item>TRADING</item>
</string-array>
<string-array name="export_formats">
<item>QIF</item>
Expand Down
1 change: 1 addition & 0 deletions app/res/values-pt-rBR/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -364,6 +364,7 @@
<item>CURRENCY</item>
<item>AÇÕES</item>
<item>FUNDO MÚTUO</item>
<item>TRADING</item>
</string-array>
<string-array name="export_formats">
<item>QIF</item>
Expand Down
1 change: 1 addition & 0 deletions app/res/values-ru/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -362,6 +362,7 @@
<item>СОБСТВЕННЫЕ СРЕДСТВА</item>
<item>ТОРГОВЛЯ</item>
<item>ВЗАИМНЫЙ ФОНД</item>
<item>TRADING</item>
</string-array>
<string-array name="export_formats">
<item>QIF</item>
Expand Down
1 change: 1 addition & 0 deletions app/res/values-zh/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -362,6 +362,7 @@
<item>货币</item>
<item>股票</item>
<item>共同基金</item>
<item>TRADING</item>
</string-array>
<string-array name="export_formats">
<item>QIF</item>
Expand Down
1 change: 1 addition & 0 deletions app/res/values/key_strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
<item>CURRENCY</item>
<item>STOCK</item>
<item>MUTUAL</item>
<item>TRADING</item>
</string-array>
<string-array name="key_export_format_values">
<item>QIF</item>
Expand Down
1 change: 1 addition & 0 deletions app/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -376,6 +376,7 @@
<item>CURRENCY</item>
<item>STOCK</item>
<item>MUTUAL FUND</item>
<item>TRADING</item>
</string-array>
<string-array name="export_formats">
<item>QIF</item>
Expand Down
2 changes: 1 addition & 1 deletion app/src/org/gnucash/android/model/AccountType.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
public enum AccountType {
CASH(TransactionType.DEBIT), BANK(TransactionType.DEBIT), CREDIT, ASSET(TransactionType.DEBIT), LIABILITY,
INCOME, EXPENSE(TransactionType.DEBIT), PAYABLE, RECEIVABLE(TransactionType.DEBIT), EQUITY, CURRENCY,
STOCK(TransactionType.DEBIT), MUTUAL(TransactionType.DEBIT), ROOT;
STOCK(TransactionType.DEBIT), MUTUAL(TransactionType.DEBIT), TRADING, ROOT;

/**
* Indicates that this type of normal balance the account type has
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ public void setAccountType(AccountType accountType){
break;
case CURRENCY:
case ROOT:
default:
setTextOn(context.getString(R.string.label_debit));
setTextOff(context.getString(R.string.label_credit));
break;
Expand Down

0 comments on commit 33e4267

Please sign in to comment.