On Tue, Mar 12, 2013 at 02:27:13AM -0500, Russell Adams wrote:
> > While I continue to fiddle around with this... any suggestions or best
> > practices welcome.
Another I forgot to mention, make sure to always use these three
flags, or add them to your ~/.ledgerrc:
--strict
--pedantic
--explicit
This way you have to define accounts first (instead of discovering
you've created new, typoed account names). This really will contribute
to the validity of your data, and keep you sane.
Here's an example from my accounts, my .ledgerrc:
; FORCE validation
--pedantic
--explicit
; Only allow these accounts
account Dest:Internal
account Dest:Projects
account Dest:DavidRose
account Equity
account Equity:Mileage
account Equity:OpeningBalances
; Only allow these tags
tag RECEIPT
tag CSV
tag MD5Sum
assert value =~ /^[0-9a-f]{32,}/
tag ER
assert value =~ /^AIS(ER|IN)[0-9]{4}|^Unassigned/
tag CATEGORY
assert value =~
/^(Airfare|BoardMeeting|Capital|CarRental|Comm|CustMeals|Fees|Gas|Gift|Insurance|Lodging|Marketing|Meals|Mileage|Misc|OfficeServices|Parking|Postage|Printing|Remodelling|Shipping|Supplies|Taxi|Tolls|Travel|TravelAgencyFee|Unknown)$/
------------------------------------------------------------------
Russell Adams [email protected]
PGP Key ID: 0x1160DCB3 http://www.adamsinfoserv.com/
Fingerprint: 1723 D8CA 4280 1EC9 557F 66E8 1154 E018 1160 DCB3
--
---
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/groups/opt_out.