# Represent Accounting Equation Using SWI-Prolog

**URL:** <https://swi-prolog.discourse.group/t/represent-accounting-equation-using-swi-prolog/1465>\
**Category:** Help!\
**Tags:** swish\
**Created:** [November 10, 2019, 5:03pm UTC](https://swi-prolog.discourse.group/t/represent-accounting-equation-using-swi-prolog/1465 "2019-11-10T17:03:29Z")\
**Posts on this page:** 1\
**Showing post:** 75

<div class="post-metadata">

**Author:** ![rla](https://yyz2.discourse-cdn.com/free1/user_avatar/swi-prolog.discourse.group/rla/32/6863_2.png) [@rla](https://swi-prolog.discourse.group/u/rla)\
**Post date:** [November 15, 2019, 1:40pm UTC](https://swi-prolog.discourse.group/t/represent-accounting-equation-using-swi-prolog/1465/75 "2019-11-15T13:40:17Z")

</div>

Charles, thanks. Only the types (asset, liability, etc.) are hard-coded, not the accounts. Accounts can be added and updated using the user interface.

I had no idea that XBRL can encode or contain chart of accounts. But indeed it seems to be a one of the main concepts of XBRL and the extensibility of XBRL comes from ability to add custom accounts. I think that if I could associate each account with XBRL concept, then indeed I could automatically produce statements in XBRL format!

---

_[View the full topic](https://swi-prolog.discourse.group/t/represent-accounting-equation-using-swi-prolog/1465)._
