so group by document number, max etd, and probably...
# suitescript
b
so group by document number, max etd, and probably something like avg fxamount?