tag:infinitekind.tenderapp.com,2009-01-14:/discussions/moneydance-development/2806-investfields-trying-to-enter-non-security-expenseInfinite Kind: Discussion 2020-09-12T23:20:25Ztag:infinitekind.tenderapp.com,2009-01-14:Comment/483757292020-06-01T19:02:03Z2020-06-01T19:34:35ZInvestFields - trying to enter non-security expense<div><p>I'm trying to use InvestFields to create a transaction for an investment account that is not security related - an expense for an account fee.<br>
The transaction always ends up as income and not expense.</p>
<p>I'm using transaction type of InvestTxnType.BANK<br>
I'm setting the xfrAcct field to the Category account (an expense type category). I've tried setting negateCategory but that does nothing.</p>
<p>I tried setting the Category field, but that just ends up with the default category being set instead of the one I entered.</p>
<p>Any ideas?</p>
<p>NOTE: I can get the correct behaviour if I don't bother with InvestFields and just treat this as a parent with a split to the expense category (makeParent and makeSplit). I just negateAmount() on the split and everything looks fine. I'm trying to use InvestFields since that seems to be the recommended way of dealing with investment transactions. But maybe InvestFields are not intended for this purpose..</p>
<p>PS> I do appreciate the help. I am documenting everything that I figure out with respect to how to do different transaction types and I will post that in this forum to help others when I am done.</p></div>Bob Btag:infinitekind.tenderapp.com,2009-01-14:Comment/483757292020-06-13T04:11:05Z2020-06-13T04:11:05ZInvestFields - trying to enter non-security expense<div><p>I have come to the conclusion not to use InvestFields for this purpose. Using makeParent and makeSplit seem to work fine for non-security based investment transactions.</p></div>Bob Btag:infinitekind.tenderapp.com,2009-01-14:Comment/483757292020-06-13T23:18:38Z2020-06-13T23:18:38ZInvestFields - trying to enter non-security expense<div><p>Hi Bob,<br>
Sorry for not responding earlier, but I do agree that for non-security transactions it is preferably to record a "normal" transaction by making the ParentTxn and SplitTxns yourself.</p>
<p>Thanks,<br>
Sean</p>
<p>--<br>
Sean Reilly<br>
Developer, The Infinite Kind<br>
<a href="https://infinitekind.com">https://infinitekind.com</a></p></div>Sean Reilly