spree/spree — pull request #2008 by radar (2012-09-25 05:02:46+00:00)
Title: Apply payments partially

Rather than iterating through each payment for an order and attempt to apply it, only iterate through pending payments and apply them until the payment_total has been brought in line (or has crossed over) the order total.

Fixes #1954.

/cc @BDQ