Merge branch 'ui-integration'
[Bookkeeping.git] / xml / bookkeeping.2.bookkeeping.xml
blob73ed64ddb6194f3973afea73ca9cdef263561467
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=''> 
4         
5         
6         <!-- 1. account types are: asset, liability, expense, revenue
7              2. each account has a given counter weight
8                 
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" />
13         -->
14     <account:accounts id='a1' >  
15                 
16                 
17                 <!-- each account can have a debit / credit to it. These are duplicated from journal
18                 entries. 
19                 
20                 **Therefore adding entries to a <journal/> or <transaction/> will also add the corresponding
21                 debit/credit to the corresponding account.
22                 
23                 ** Adding <entry/> to a <transaction/> will also add the entry to the corresponding
24                 <journal/>
25                 
26                 Also 'debits/credits' in all <account/> should match with 'debits/credits' in all <journal><enrtry/></journal>
27                 -->
28         <account:account id='1' name='office equipment' type='asset' counterWeight='debit' >
29                     <account:debit id='' amount='10.00' entryid='' accountid='1' />  
30         </account:account>  
31         
32                 <account:account id='2' name='tax' type='expense' counterWeight='debit' >
33                     <account:debit id='' amount='1.50' entryid='' accountid='2' />
34         </account:account>  
35         
36         <account:account id='3' name='bank' type='asset' counterWeight='debit' >  
37                     <account:credit id='' amount='11.50' entryid='' accountid='3' />  
38         </account:account>  
39         
40         <account:account id='4' name='loan account' type='expense' counterWeight='debit'/>  
41                 
42     </account:accounts>  
43         
44         
45         <journal:journals id='' >
46             <journal:journal id='j1' name='generalledger' type='' balance=''>  
47                         
48                         
49                         <journal:entries id=''  >  
50                                 
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" />  
55                                 </journal:entry>  
56                                 
57                         </journal:entries>  
58                         
59             </journal:journal>  
60         </journal:journals>
61         
62         
63 </bookkeeping>