xtuple/xtuple — pull request #1742 by gilmoskowitz (2014-08-08 15:18:09+00:00)
Title: Issue #23254:fix gain/loss calculation

cloned https://github.com/xtuple/qt-client/pull/432 for the 4.7 line