Fix: [ bug #777 ] Withdrawal receipt set Credited

This commit is contained in:
simnandez 2013-03-26 15:48:12 +01:00
parent 2731b0af2b
commit 26d2e3d928

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.