Created
March 6, 2011 07:52
-
-
Save afh/857127 to your computer and use it in GitHub Desktop.
Sample ledger expenses file
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --date-format %d.%m.%Y | |
| --decimal-comma | |
| --basis | |
| D € 0.000,00 | |
| D 0,00% | |
| ;= expr account =~ /^Einnahmen:/ | |
| = /^Einnahmen:/ | |
| (Einnahmen:Netto) (has_tag("Steuersatz") ? (-floor(total / ((tag("Steuersatz")*0,01)+1%))) : 0) | |
| (Passiva:USt:Ein) (has_tag("Steuersatz") ? (floor(amount / ((tag("Steuersatz")*0,01)+1%)) * (tag("Steuersatz")*0,01)) : 0) | |
| ;= expr account =~ /^Ausgaben:/ | |
| = /^Ausgaben:/ | |
| (Passiva:USt:Aus) (has_tag("Steuersatz") ? (amount / ((tag("Steuersatz")*0,01)+1%) * (tag("Steuersatz")*0,01)) : 0) | |
| Y2011 | |
| 03/16 * (96/01) Kunde | |
| Aktiva:Bank:Giro € 1.190,00 | |
| Einnahmen:Rechnung:Kunde | |
| ; Steuersatz:: 19% | |
| 03/19 * (5) Mini-Dvi Display Adapter | |
| Ausgaben:Bar € -119,00 | |
| Ausgaben:Sonstiges:Mini-Dvi Display Adapter | |
| ; Steuersatz:: 19% |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Display net income | |
| % ledger -f german_taxes.ledger reg -p 'mar 2011' net | |
| 16.03.2011 Kunde (Einnahmen:Netto) € 1.000,00 € 1.000,00 | |
| # Display VAT received -190,00 paid 19,00 and the balance -171,00 | |
| % ledger -f test/match.ledger reg -p 'mar 2011' ust | |
| 16.03.2011 Kunde (Passiva:USt:Ein) € -190,00 € -190,00 | |
| 19.03.2011 Mini-Dvi Display Ad.. (Passiva:USt:Aus) € 19,00 € -171,00 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment