[*] Fixed bug when in PS 1.4, invoices had not the good prices (product prices)
[+] using backward compatibility instead of version_compare
[*] Fixed security issues sql injection