1 <?xml version='1.0' encoding='UTF-8'?>
2 <bookkeeping xmlns:account='com/interrupt/bookkeeping/account' xmlns:journal='com/interrupt/bookkeeping/journal'
3 xmlns='com/interrupt/bookkeeping' id=''>
6 <!-- 1. account types are: asset, liability, expense, revenue
7 2. each account has a given counter weight
9 <account:account type="asset" id="" name="" counterWeight="debit" />
10 <account:account type="expense" id="" name="" counterWeight="debit" />
11 <account:account type="liability" id="" name="" counterWeight="credit"/>
12 <account:account type="revenue" id="" name="" counterWeight="credit" />
14 <account:accounts id='a1' >
17 <!-- each account can have a debit / credit to it. These are duplicated from journal
20 **Therefore adding entries to a <journal/> or <transaction/> will also add the corresponding
21 debit/credit to the corresponding account.
23 ** Adding <entry/> to a <transaction/> will also add the entry to the corresponding
26 Also 'debits/credits' in all <account/> should match with 'debits/credits' in all <journal><enrtry/></journal>
28 <account:account id='1' name='office equipment' type='asset' counterWeight='debit' >
29 <account:debit id='' amount='10.00' entryid='' accountid='1' />
32 <account:account id='2' name='tax' type='expense' counterWeight='debit' >
33 <account:debit id='' amount='1.50' entryid='' accountid='2' />
36 <account:account id='3' name='bank' type='asset' counterWeight='debit' >
37 <account:credit id='' amount='11.50' entryid='' accountid='3' />
40 <account:account id='4' name='loan account' type='expense' counterWeight='debit'/>
45 <journal:journals id='' >
46 <journal:journal id='j1' name='generalledger' type='' balance=''>
49 <journal:entries id='' >
51 <journal:entry id='e1' entrynum='' state='' journalid='' date='' >
52 <account:debit id='abc' amount='10.00' entryid='e1' accountid='1' account="office equipment" />
53 <account:debit id='def' amount='1.50' entryid='e1' accountid='2' account="tax" />
54 <account:credit id='ghi' amount='11.50' entryid='e1' accountid='3' account="bank" />