The Date Compress General Ledger Batch Job
Here you can specify that the total of the Quantity fields be retained.