Comment typo fixed and dashbaord calculates VAT better in upcoming projects. It was adding VAT ontop of proejct totla (when VAT was already included)
Project is marked as completed if the outsanding balance is zero not as previosuly done if the payments calculated was greater than total project cost (seems like the same thing but PHP was baulking at it)