update inv and order model insertion