New transactions cause a TransactionListener.transactionModified event

Kevin Stembridge's Avatar

Kevin Stembridge

11 Apr, 2015 08:49 PM

Hi,

When I enter a new transaction in an account register, my TransactionListener.transactionModified method gets invoked.

I'm using MD 2015.3 1175. This was working correctly in MD 2014. Is this new behaviour intentional or is it a bug?

Cheers,
Kevin

  1. Support Staff 1 Posted by Sean Reilly on 13 Apr, 2015 03:43 PM

    Sean Reilly's Avatar

    Hi Kevin,

    Sorry about that. Because of the new back-end and syncing system, that is the way it will work from now on. I'm sorry for not updating the documentation to indicate that!

    Thanks,
    Sean Reilly
    Developer, The Infinite Kind
    http://infinitekind.com

  2. Sean Reilly closed this discussion on 13 Apr, 2015 03:43 PM.

  3. Kevin Stembridge re-opened this discussion on 13 Apr, 2015 04:03 PM

  4. 2 Posted by Kevin Stembridg... on 13 Apr, 2015 04:03 PM

    Kevin Stembridge's Avatar

    Hi Sean,

    Thanks for the info.

    From what I can see there isn't any way to distinguish new transactions from the transactionModified event. However, I do see that something is logging the before and after state of the transaction in the console window (pasted below). It would be great if this was the information that was provided in the transactionModified event handler.

    Cheers,
    Kevin

    recording (existing) txn editing: [ParentTxn(3f787a4e-1bd7-41a0-a527-d017e9e7fb49) desc=nursery; val=-9000; stat= ; #splits=1; chk=; acct=Current2; date=20150413; splits=SplitTxn: val=9000; amt=-9000; desc=nursery; stat= ; cat=Childcare; tags=[(samt:9000)(acctid:99a4f795-0937-4a57-9cfe-0389e91d75dc)(obj_type:)(id:177b6d65-0ce6-4728-9a3a-0fb96eada07b)(pamt:-9000)(oldid:-1)(acct:10)(desc:nursery)(tags:)]; ], ; ]
    changed: [ParentTxn(3f787a4e-1bd7-41a0-a527-d017e9e7fb49) desc=nursery; val=-7000; stat= ; #splits=1; chk=; acct=Current2; date=20150413; splits=SplitTxn: val=7000; amt=-7000; desc=nursery; stat= ; cat=Childcare; tags=[(samt:7000)(acctid:99a4f795-0937-4a57-9cfe-0389e91d75dc)(obj_type:)(id:177b6d65-0ce6-4728-9a3a-0fb96eada07b)(pamt:-7000)(oldid:-1)(acct:10)(desc:nursery)(tags:)]; ], ; ] --> mod.txn:chk=&acctid=1fb3e868-6985-4b83-b9b7-0d8311c98e0e&memo=&0.obj_type=&oldid=-1&0.id=177b6d65-0ce6-4728-9a3a-0fb96eada07b&0.acct=10&dt=20150413&0.desc=nursery&0.tags=&0.acctid=99a4f795-0937-4a57-9cfe-0389e91d75dc&0.pamt=-7000&0.samt=7000&obj_type=txn&id=3f787a4e-1bd7-41a0-a527-d017e9e7fb49&0.oldid=-1&acct=1&desc=nursery&ts=1428766168906

  5. System closed this discussion on 19 Mar, 2016 04:57 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac