[FIX] 'pos_sale_reporting' Compatility with Postgresql <9.3 Version;