NEW : Call to trigger on payment social contribution creation

This commit is contained in:
ATM-Nicolas 2018-04-25 09:34:57 +02:00
parent 90723357c4
commit f71755d454

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;