From a09228a83ef39f50fb80868dc2cfaec0a6fabf8c Mon Sep 17 00:00:00 2001 From: John Ralls Date: Sun, 10 Sep 2023 10:22:57 -0700 Subject: [PATCH] [stock-txn-asst] Remove superflouos FieldMask::DISABLED tags From the stock entry of stock split and reverse split templates. Since there are other flags on the line the DISABLED flag isn't useful. --- gnucash/gnome/assistant-stock-transaction.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gnucash/gnome/assistant-stock-transaction.cpp b/gnucash/gnome/assistant-stock-transaction.cpp index 7d0ae2a39e..8df4cdd911 100644 --- a/gnucash/gnome/assistant-stock-transaction.cpp +++ b/gnucash/gnome/assistant-stock-transaction.cpp @@ -253,7 +253,7 @@ static const TxnTypeVec long_types "and increases the cost basis without affecting # units.") }, { - FieldMask::DISABLED | FieldMask::AMOUNT_DEBIT | FieldMask::INPUT_NEW_BALANCE, // stock_amt + FieldMask::AMOUNT_DEBIT | FieldMask::INPUT_NEW_BALANCE, // stock_amt FieldMask::ENABLED_CREDIT | FieldMask::ALLOW_ZERO, // cash_amt FieldMask::ENABLED_DEBIT | FieldMask::ALLOW_ZERO | FieldMask::CAPITALIZE_DEFAULT, // fees_amt FieldMask::DISABLED, // dividend_amt @@ -267,7 +267,7 @@ static const TxnTypeVec long_types "record the sale using the Stock Transaction Assistant first, then record the split.") }, { - FieldMask::DISABLED | FieldMask::AMOUNT_CREDIT | FieldMask::INPUT_NEW_BALANCE, // stock_amt + FieldMask::AMOUNT_CREDIT | FieldMask::INPUT_NEW_BALANCE, // stock_amt FieldMask::ENABLED_CREDIT | FieldMask::ALLOW_ZERO, // cash_amt FieldMask::ENABLED_DEBIT | FieldMask::ALLOW_ZERO | FieldMask::CAPITALIZE_DEFAULT, // fees_amt FieldMask::DISABLED, // dividend_amt @@ -379,7 +379,7 @@ static const TxnTypeVec short_types "0.00 value) without affecting # units.") }, { - FieldMask::DISABLED | FieldMask::AMOUNT_CREDIT | FieldMask::INPUT_NEW_BALANCE, // stock_amt + FieldMask::AMOUNT_CREDIT | FieldMask::INPUT_NEW_BALANCE, // stock_amt FieldMask::ENABLED_CREDIT | FieldMask::ALLOW_ZERO, // cash_amt FieldMask::ENABLED_DEBIT | FieldMask::ALLOW_ZERO | FieldMask::CAPITALIZE_DEFAULT, // fees_amt FieldMask::DISABLED, // dividend_amt @@ -393,7 +393,7 @@ static const TxnTypeVec short_types "record the cover buy using the Stock Transaction Assistant first, then record the split.") }, { - FieldMask::DISABLED | FieldMask::AMOUNT_DEBIT | FieldMask::INPUT_NEW_BALANCE, // stock_amt + FieldMask::AMOUNT_DEBIT | FieldMask::INPUT_NEW_BALANCE, // stock_amt FieldMask::ENABLED_CREDIT | FieldMask::ALLOW_ZERO, // cash_amt FieldMask::ENABLED_DEBIT | FieldMask::ALLOW_ZERO | FieldMask::CAPITALIZE_DEFAULT, // fees_amt FieldMask::DISABLED, // dividend_amt