fix bugs on margin reports
update changelog
better margin calculation (especially for credit notes)
Merge pull request #1250 from altairis-fr/margin1

fix bugs on margin calculation and margin reports
Fix: Bad property
Fix: security sql injection
Fix: security sql injection
Fix: Clean param

Conflicts:
	htdocs/fourn/class/fournisseur.facture.class.php
Fix: ref_ext was not loaded

Conflicts:
	htdocs/contact/class/contact.class.php
Fix: missing property
Fix: filter on warehouse

Conflicts:
	htdocs/product/stock/mouvement.php
Fix: filter on warehouse

Conflicts:
	htdocs/product/stock/mouvement.php
Fix: reorder lines problem