Updated styles and functionality on receipt page

Used a javascript code for receipt print and edited line colors
Edited the party index page to show open and closed parties

Error in WHERE syntax, couldn't use comparators, changed to :