shopware/shopware — pull request #209 by andrewisplinghoff (2014-12-12 17:35:15+00:00)
Title: Exclude shipping costs from order amount when shipping costs are hidden

When the document is configured to not include the shipping costs as a position, as is the case with delivery notes per default, the order amount should also not include the shipping costs, because otherwise the sum of the positions does not equal the order amount. This does normally not attract attention, but if for example the delivery note template is changed to also show the prices of the positions and the total order amount, the problem becomes obvious.

Before this change, the sum of the order positions does not equal the order amount:
![selection_293](https://cloud.githubusercontent.com/assets/105166/5416175/4d1e1c6a-822d-11e4-9561-c8ba80802bc3.png)

After application of this fix:
![selection_294](https://cloud.githubusercontent.com/assets/105166/5416184/638cd892-822d-11e4-82ae-ad3f8d7efe61.png)