Inventiry - calculate QuantityByDocument NIT DONE. TEST for database refresh - NOT DONE