Merge pull request #778 from simnandez/develop

Fix: [ bug #777 ] Withdrawal receipt set Credited
This commit is contained in:
Laurent Destailleur 2013-03-26 09:43:10 -07:00
commit 6df1e95678

View File

@ -442,7 +442,7 @@ class Paiement extends CommonObject
}
// Add link 'company' in bank_url between invoice and bank transaction (for each invoice concerned by payment)
if (! $error)
if (! $error && $label != '(WithdrawalPayment)')
{
$linkaddedforthirdparty=array();
foreach ($this->amounts as $key => $value) // We should have always same third party but we loop in case of.