It's an area of the law I don't generally encounter, but the whole thing sounds like an insurance company policy more than anything else.
With this little information it makes no sense. If it's totalled it's totalled. Why repair the body if the engine and drive train repair could cost more than the value of the car?