Edit the sentence to remove all of the grammar issues
However, the first application area of bar code was not supermarket or grocery but railroads.
However, the first application area of the bar code was not the supermarket or grocery but railroads.