mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
[assistant-stock-transaction] rename capital gains to capital gain
because in each stock transaction there's a singular capital gain or loss
This commit is contained in:
@@ -180,9 +180,9 @@ static const TxnTypeVec long_types
|
||||
FieldMask::DISABLED, // dividend_amt
|
||||
FieldMask::ENABLED_CREDIT | FieldMask::ALLOW_ZERO | FieldMask::ALLOW_NEGATIVE, // capgains_amt
|
||||
// Translators: this is a stock transaction describing sale of
|
||||
// stock, and recording capital gains/loss
|
||||
// stock, and recording capital gain/loss
|
||||
N_("Sell"),
|
||||
N_("Selling stock, and record capital gains/loss")
|
||||
N_("Selling stock, and record capital gain/loss")
|
||||
},
|
||||
{
|
||||
FieldMask::DISABLED, // stock_amt
|
||||
@@ -314,7 +314,7 @@ static const TxnTypeVec short_types
|
||||
FieldMask::DISABLED, // dividend_amt
|
||||
FieldMask::ENABLED_DEBIT | FieldMask::ALLOW_ZERO | FieldMask::ALLOW_NEGATIVE, // capg_amt
|
||||
// Translators: this is a stock transaction describing cover
|
||||
// buying stock, and recording capital gains/loss
|
||||
// buying stock, and recording capital gain/loss
|
||||
N_("Buy to cover short"),
|
||||
N_("Buy back stock to cover short and record capital gain/loss")
|
||||
},
|
||||
@@ -1041,14 +1041,14 @@ stock_assistant_finish (GtkAssistant *assistant, gpointer user_data)
|
||||
if (info->txn_type->capgains_value != FieldMask::DISABLED)
|
||||
{
|
||||
create_split (trans, info->txn_type->capgains_value,
|
||||
NC_ ("Stock Assistant: Action field", "Capital Gains"),
|
||||
NC_ ("Stock Assistant: Action field", "Capital Gain"),
|
||||
gas_account (info->capgains_account),
|
||||
account_commits, info->capgains_memo_edit,
|
||||
info->capgains_value, info->capgains_value, false);
|
||||
|
||||
create_split (trans,
|
||||
info->txn_type->capgains_value ^ (FieldMask::ENABLED_CREDIT | FieldMask::ENABLED_DEBIT),
|
||||
NC_ ("Stock Assistant: Action field", "Capital Gains"),
|
||||
NC_ ("Stock Assistant: Action field", "Capital Gain"),
|
||||
info->acct, account_commits, info->capgains_memo_edit,
|
||||
nullptr, info->capgains_value, false);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user