magento/magento2 — pull request #72 by tim-reynolds-briteskies (2012-08-30 14:10:25+00:00)
Title: Bug - Mage_Sales_Model_Order_Invoice_Total_Shipping:50 

The line was
if($previusInvoice->getShippingAmount() && ...
This would return true if a previous invoice had zero shipping because it was returned as a string from the database. The string "0.0000". The line needs to be changed to have a greaterthan comparison to cause the string to cast to a numeric.

Also added unit test.

NOTE - This pull request is including my previous pull request because I failed to do that work on a separate branch. Unsure how to correct that other than blowing away repo and starting over. If I must do that please let me know.