Fix: Switching a purchase log status to "Closed Order" doesn't reduce stocks.

Pull request for #89