Fix:  [ bug #698 ] Bad calculation of totals of associated documents
Merge pull request #630 from simnandez/develop

Fix:  [ bug #698 ] Bad calculation of totals of associated documents