fix bad margin calculation for credit notes
Merge pull request #1245 from altairis-fr/develop

fix bad margin calculation for credit notes