Skip to content
This repository has been archived by the owner on May 11, 2024. It is now read-only.

cybermaggedon/ixbrl-to-ct600

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ixbrl-to-ct600

Overview

This project is retro technology. It takes as input a file containing UK corporation tax calculations in iXBRL form. It then takes HMRC's CT600 form and annotates the computations into the form.

The output is a PDF file which could in theory be filed with HMRC, if HMRC were still accepting CT600 forms, which they are mostly not.

It is designed to use the output of gnucash-ixbrl with the corporation-tax.yaml configuration. It may work with other sources of iXBRL. Or not.

Things to know

  • There is no warranty.
  • This is likely incomplete - it does what I want, but you shouldn't be playing with this project unless you're prepared to do some work checking the values are right for you, and possibly adding extra annotations to the form which aren't covered.
  • It doesn't know about all the CT600 fields.
  • The CT600 form changes periodically, which will invalidate the annotations specification. The annotations spec here has absolute PDF form positions.

Trying it out

There is a set of computations here:

./ixbrl-to-ct600  -DN 'Sarah McAcre' -C 06

You should get an output file in output.pdf.

alt text

Specifications

The file spec.json describes how to annotate the form. Each entry is a list, first field is iXBRL tag name. Second is annotation type, which is a type name from the annotations.py file. The rest of the entry is arguments passed to the constructor.

Warranty

This code comes with no warranty whatsoever. See the LICENSE file for details. Further, I am not an accountant. It is possible that this code could be useful to you in meeting regulatory reporting requirements for your business. It is also possible that the software could report misleading information which could land you in a lot of trouble if used for regulatory purposes. Really, you should check with a qualified accountant.