I've also been tasked with integrating this into a customers accounting package, so am happy to share code / help develop this.