tag:infinitekind.tenderapp.com,2009-01-14:/discussions/moneydance-development/7583-can-onlinetxn-support-multiple-splitsInfinite Kind: Discussion 2023-02-12T05:40:19Ztag:infinitekind.tenderapp.com,2009-01-14:Comment/565860722022-11-01T22:12:47Z2022-11-01T22:12:47ZCan OnlineTxn support multiple splits?<div><p>(FYI - Md+ can already download Wise successfully)</p></div>Stuart Beesley (Mr Toolbox)tag:infinitekind.tenderapp.com,2009-01-14:Comment/565860722022-11-02T07:09:17Z2022-11-02T07:09:17ZCan OnlineTxn support multiple splits?<div><p>Perhaps share your code that uses OnlineTxn?</p>
<p>Anyway, I could be wrong but...., I cannot see that OnlineTxn can handle a split. It seems to be a simple record that can be stored in OnlineTxnList. There seems to be no references to SplitTxn (etc) in either of these classes.</p>
<p>I'm guessing that you are using these classes so that Moneydance will then take over and you can use the normal GUI in the txn register for Confirm/Merge etc?</p>
<p>It does seem that com.moneydance.apps.md.controller.fileimport.QIFFileImporter can handle splits, perhaps look there for inspiration?</p>
<p>Perhaps clarify your usage and then we can comment. My guess is that if you process the file in a different manner, then you can achieve a split..</p></div>Stuart Beesley (Mr Toolbox)tag:infinitekind.tenderapp.com,2009-01-14:Comment/565860722022-11-02T07:14:04Z2022-11-02T07:14:04ZCan OnlineTxn support multiple splits?<div><p>FWIW I have imported QIF files that have splits and they imported properly. There is provision for splits in the QIF spec.</p></div>dwgtag:infinitekind.tenderapp.com,2009-01-14:Comment/565860722022-11-07T05:51:01Z2022-11-07T05:51:01ZCan OnlineTxn support multiple splits?<div><p>Thanks. I've tried creating a QIF file and importing a transaction that way but there doesn't seem to be a confirm and matching step in the UI. So unless I'm doing it incorrectly, that doesn't seem like an option.</p>
<p>I think for my purposes, finding and modifying the transactions that have a fee in code will be the easiest. I can get the required MD transaction by using the txnID in the CSV file and then modify it to add a split.</p>
<p>I'll let you know how it goes :)</p></div>Bob Btag:infinitekind.tenderapp.com,2009-01-14:Comment/565860722022-11-07T07:16:52Z2022-11-07T07:16:52ZCan OnlineTxn support multiple splits?<div><p>QIF files are used for both migrations and for downloads. When performing migrations it does not trigger the confirmation process however I seem to remember it does for downloads. To me this suggests it is picking up some difference in the QIF file.</p>
<p>It seems use of the QIF !Type: command line may be the trigger for the confirmation process.</p></div>dwgtag:infinitekind.tenderapp.com,2009-01-14:Comment/565860722022-11-13T05:32:29Z2022-11-13T05:32:29ZCan OnlineTxn support multiple splits?<div><p>Thanks all for your responses. I ended up going the route of modifying the transactions right after they were added. It was the easiest way for me to accomplish my end goal.</p>
<p>I did run into a few snags that took a bit to figure out. When an online tx is confirmed in the UI, it doesn't seem to allow multiple splits (unless it matches to one that already has multiple splits). So I ended up using the createDuplicateAsNew function to create a brand new tx and I modified it to add the required split, then deleted the old txn. I had to copy over additional info like FIID, FiTxnID and originalTxn. Now when I confirm the txn everything stays put. I don't get the matching but since I already remove duplicates before loading the onlineTxns, I don't lose much in terms of functionality.</p></div>Bob B