calculate unitrecur on sql_external packages with quantity details, #40558