Two good resources

  1. High level overview: https://martin.kleppmann.com/2011/03/07/accounting-for-computer-scientists.html

  2. https://beancount.github.io/docs/the_double_entry_counting_method.html