tag:infinitekind.tenderapp.com,2009-01-14:/discussions/moneydance-development/2318-confirming-a-transaction-from-pythonInfinite Kind: Discussion 2019-05-28T04:50:23Ztag:infinitekind.tenderapp.com,2009-01-14:Comment/469760442019-02-19T06:30:22Z2019-02-19T06:30:23ZConfirming a transaction from Python?<div><p>OK.So I think I found part of the answer. txn.isNew() seems yield confirmed/unconfirmed status from what I can tell.<br>
There doesn't seem to be a way to change isNew to False??<br>
(Still not clear what getStatus() is for?)</p></div>Jtag:infinitekind.tenderapp.com,2009-01-14:Comment/469760442019-02-19T23:35:23Z2019-02-19T23:35:23ZConfirming a transaction from Python?<div><p>Hi J,</p>
<p>Great questions! You're right about the meaning of <code>isNew()</code> and you can also use <code>setIsNew(false)</code> to mark a transaction as confirmed.</p>
<p>As for <code>getStatus()</code>, that has a bit of documentation here: <a href="https://infinitekind.com/dev/apidoc/com/infinitekind/moneydance/model/AbstractTxn.html#getStatus()">https://infinitekind.com/dev/apidoc/com/infinitekind/moneydance/mod...</a> but the short answer is that it is the old version of <code>getClearedStatus()</code> and should really be marked as deprecated.</p>
<p>Thanks,</p>
<p>Sean Reilly<br>
Developer, The Infinite Kind<br>
<a href="http://infinitekind.com">http://infinitekind.com</a></p></div>Sean Reillytag:infinitekind.tenderapp.com,2009-01-14:Comment/469760442019-02-20T03:51:07Z2019-02-20T03:51:08ZConfirming a transaction from Python?<div><p>Thanks for the response. So I tried txn.setIsNew(False) and that works well. Is there a reason that setIsNew isn't documented?</p>
<p>Had another question...what do I feed into setClearedStatus()? I see it wants AbstractTxn.ClearedStatus, but I'm not sure how to create something in Python set this value. I'd like to be able to set the CLEARED, RECONCILING, UNRECONCILED state from Python as well.</p></div>Jtag:infinitekind.tenderapp.com,2009-01-14:Comment/469760442019-02-26T04:44:02Z2019-02-26T04:44:02ZConfirming a transaction from Python?<div><p>(Bumping my own thread...) Any thoughts on:<br>
how to setClearedStatus() in Python? I see it wants<br>
AbstractTxn.ClearedStatus, but I'm not sure how to create something in<br>
Python set this value. I'd like to be able to set the CLEARED, RECONCILING,<br>
UNRECONCILED state from Python as well.</p></div>Jim C