Merge pull request #8680 from ATM-Nicolas/new_paymentsocial_trigger
NEW : Call to trigger on payment social contribution creation
This commit is contained in:
commit
db8ddc4712
@ -164,6 +164,9 @@ class PaymentSocialContribution extends CommonObject
|
||||
|
||||
}
|
||||
|
||||
$result = $this->call_trigger('PAYMENTSOCIALCONTRIBUTION_CREATE',$user);
|
||||
if($result < 0) $error++;
|
||||
|
||||
if ($totalamount != 0 && ! $error)
|
||||
{
|
||||
$this->amount=$totalamount;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user