Check for AP->GL link before setting GL code to 0
Bring code into line with coding guidelines
New parameter for freight calculation module
Format changes in line with coding guidelines
Merge pull request #268 from timschofield/develop

Develop