Suppose, we have the following ledger file:

2017-03-01 *
    Assets:Bank account         $1000
    Equity:Opening Balances

2017-03-02
    Expenses:Materials          $200
    Assets:Bank account

2017-03-04
    Expenses:Salary             $300
    Assets:Bank account

2017-03-04
    Assets:Bank account         $600
    Income

Can ledger calculate the profit earned by formula: -Income - Sum(Expenses)?

So, it will be: Profit = -(-600) - 500 = 600 - 500 = 100

Or can ledger give me a balance report in xml or other machine readable 
format, so I could write a program that will do the calculation?

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"Ledger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to