Skip to content

Commit

Permalink
updated example to have eod constraints
Browse files Browse the repository at this point in the history
  • Loading branch information
hrj committed Sep 23, 2016
1 parent 9e427b6 commit c579d74
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
6 changes: 6 additions & 0 deletions examples/complete/accounts.conf
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ exports += {
format = xml
outFiles = [txns.xml]
}

exports += {
type = balance
format = xml
Expand All @@ -68,6 +69,11 @@ exports += {

}

eodConstraints += {
expr = "Assets:Current:Cash"
constraint = negative
}

// TODO: Change constraint "from" to "2012/april/1" when GH-93 is implemented

dateConstraints += {
Expand Down
3 changes: 2 additions & 1 deletion examples/complete/opening.ledger
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
2012/3/31 OpeningBalance
Capital:Share:Hary 6,000
Capital:Share:Amy 4,000
Capital:Reserves_And_Surplus -1,500
Capital:Reserves_And_Surplus 1500
Assets:Current:BankAccount:Account1 -7,500
Assets:Fixed:Computer -1,000
Assets:Current:Cash -3,000

0 comments on commit c579d74

Please sign in to comment.