work on account editing
[Bookkeeping.git] / xml / bookkeeping.xml
blobedfb2317c83c3919dbba50813f38bf1e74fc14d9
1 <?xml version='1.0' encoding='UTF-8'?>
2 <bookkeeping id='' 
3     xmlns='com/interrupt/bookkeeping'
4     xmlns:account='com/interrupt/bookkeeping/account'
5     xmlns:journal='com/interrupt/bookkeeping/journal' >
6     
7     <account:accounts id='' >
8         
9         <!-- 1. account types are: asset,liability,expense,revenue,capital
10              2. each account has a given counterWeight(debit or credit)
11         -->
12         <account:account type='' id='' name='' counterWeight='' >
13             
14             <account:debit />
15             <account:credit />
16         </account:account>
17     </account:accounts>
18     
20     <journal:journal id='' name='' type='' balance='' >
22         <journal:transactions id='' >
24             <!-- ** state can be 'open' or 'closed'
25             -->
26             <journal:transaction id='' state='' date=''  >
27                 
28                 
29                 <!-- 1. each entry should have an 'entryid'
30                      2. each debit/credit object has a reference to an 'entryid'
31                      3. each debit/credit object has a reference to an 'accountid'
32                     
33                      ** state can be 'open', 'closed', or 'reversed' 
34                 -->
35                 <journal:entry id='' entrynum='' state='' date='' >
36                     <account:debit id='' amount='' entryid='' accountid='' />
37                     <account:credit id='' amount='' entryid='' accountid='' />
38                 </journal:entry>
39             </journal:transaction>
40             
41         </journal:transactions>
42     </journal:journal>
44 </bookkeeping>