On Mon, 2006-12-11 at 22:06 -0500, Chris Shoemaker wrote:
> Invoices basically reuse the engine objects.  But SXs have:
> struct TTInfo_s
[...]
> which look suspiciously like a Transaction, and 
> 
> struct TTSplitInfo_s
[...]
> which looks suspiciously like a Split.  And then the whole duplicated
> accounts setup.  

These structures aren't the actual storage, and are only barely used as
runtime representations of Template [Splits and] Transactions.

They were sourced from Robert Merkel's work on the "SX-from-transaction"
dialog, and are used (by my hand) in the Mortgage/Loan Druid.  In both
cases, they're immediately passed to
xaccSchedXactionSetTemplateTrans(...), which just converts these
degenerate structures into the "real" template Transactions.  Looking
back on it, I'd just the calling code to write the template structures
directly, though maybe with some convenience functions for readability.


The only structures relevant are the Accounts, Transactions and Splits
rooted in the "Template" Account-Group.

-- 
...jsled
http://asynchronous.org/ - `a=jsled; b=asynchronous.org; echo [EMAIL PROTECTED]

Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel

Reply via email to