gnucash maint: [assistant-stock-transaction] transcription error in truth table
Christopher Lam
clam at code.gnucash.org
Mon Aug 22 00:07:00 EDT 2022
Updated via https://github.com/Gnucash/gnucash/commit/ff4c656b (commit)
from https://github.com/Gnucash/gnucash/commit/b7a3652d (commit)
commit ff4c656bac1e5536fd0caecd21411760c4804117
Author: Christopher Lam <christopher.lck at gmail.com>
Date: Mon Aug 22 12:05:38 2022 +0800
[assistant-stock-transaction] transcription error in truth table
Short Sell should have the same characteristics as Open Buy.
diff --git a/gnucash/gnome/assistant-stock-transaction.cpp b/gnucash/gnome/assistant-stock-transaction.cpp
index 1ec3edeaa..e8283585f 100644
--- a/gnucash/gnome/assistant-stock-transaction.cpp
+++ b/gnucash/gnome/assistant-stock-transaction.cpp
@@ -293,9 +293,9 @@ static const TxnTypeVec long_types
static const TxnTypeVec short_types
{
{
- FieldMask::ENABLED_DEBIT, // stock_amt
- FieldMask::ENABLED_DEBIT, // stock_val
- FieldMask::ENABLED_CREDIT, // cash_amt
+ FieldMask::ENABLED_CREDIT, // stock_amt
+ FieldMask::ENABLED_CREDIT, // stock_val
+ FieldMask::ENABLED_DEBIT, // cash_amt
FieldMask::ENABLED_DEBIT | FieldMask::ALLOW_ZERO, // fees_amt
true, // fees_capitalize
FieldMask::DISABLED, // dividend_amt
Summary of changes:
gnucash/gnome/assistant-stock-transaction.cpp | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
More information about the gnucash-changes
mailing list