Invoice schema logic.