Merge pull request #8680 from ATM-Nicolas/new_paymentsocial_trigger

NEW : Call to trigger on payment social contribution creation
This commit is contained in:
Laurent Destailleur 2018-04-27 10:32:34 +02:00 committed by GitHub
commit db8ddc4712
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;