Merge pull request #51 from ledgersmb/master

up to date
Diff's from efficito customer's instance

--HG--
extra : source : f9dc6bc77f9340027f22bbc9270bd808cd87a69d
Fixing custom query handling when table isnot defined yet

--HG--
extra : source : e497a642ae95cf8483c336e3212fd5fdc83744c4
Updating changelog for fix originally committed in 1.4

--HG--
extra : source : aaf8bcb92876a235891074291caa9e8a0881930d
Making PGNumber constructor a bitmore robust

--HG--
extra : source : 5000ba1023672f4d8ed296468b9dca77dc5e2e79
Fix to be able to save assembly BOM rows.

--HG--
extra : source : 6e19037651be7183059b97143996fec8391b7098
Merging from githup
More fixes for 1.4 only on custom query definitions

--HG--
extra : source : fb13b7d85d228ecb4af008d4c2d0ad07606c9b39
Merge pull request #252 from einhverfr/master

Assemblies fixes
Correcting error handling in assembly restocking

--HG--
extra : source : eed99aabd2a8f38c37cd84203b42c8fcd221fd85
Merge pull request #254 from einhverfr/master

correcting db error handling
Merge pull request #54 from ledgersmb/master

sync over master branch