Overridden equals method from Transaction class to support the
comparison between its properties.