From f71755d454515137c9b568a94be0bc06516ac466 Mon Sep 17 00:00:00 2001 From: ATM-Nicolas Date: Wed, 25 Apr 2018 09:34:57 +0200 Subject: [PATCH] NEW : Call to trigger on payment social contribution creation --- .../compta/sociales/class/paymentsocialcontribution.class.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/htdocs/compta/sociales/class/paymentsocialcontribution.class.php b/htdocs/compta/sociales/class/paymentsocialcontribution.class.php index 4cd0dfd2b59..ba9c671f755 100644 --- a/htdocs/compta/sociales/class/paymentsocialcontribution.class.php +++ b/htdocs/compta/sociales/class/paymentsocialcontribution.class.php @@ -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;