implemented a cost basis calculation
Merge branch 'walport-water' into testing
Merge branch 'testing' of https://github.com/sharewave/frontus into testing