mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-16 18:25:11 -06:00
[stock-txn-asst] Don't report account missing if it's not required.
This commit is contained in:
parent
215a16a5e8
commit
637522fed1
@ -618,8 +618,11 @@ StockTransactionEntry::set_fieldmask(FieldMask mask)
|
||||
const char *
|
||||
StockTransactionEntry::print_account() const
|
||||
{
|
||||
auto acct_required = m_enabled &&
|
||||
!(m_allow_zero && (gnc_numeric_zero_p(m_value) ||
|
||||
gnc_numeric_check(m_value)));
|
||||
return m_account ? xaccAccountGetName(m_account) :
|
||||
m_enabled && !gnc_numeric_zero_p(m_value) ? _("missing") : "";
|
||||
acct_required ? _("missing") : "";
|
||||
}
|
||||
|
||||
void
|
||||
|
Loading…
Reference in New Issue
Block a user