Skip to content
Snippets Groups Projects
Commit 5715233f authored by Speed's avatar Speed Committed by Laurent Destailleur
Browse files

Updated script sync members from LDAP

Replace "Cotisation" class with its new name "Subscription"
parent ac321617
No related branches found
No related tags found
No related merge requests found
...@@ -38,7 +38,7 @@ require_once($path."../../htdocs/master.inc.php"); ...@@ -38,7 +38,7 @@ require_once($path."../../htdocs/master.inc.php");
require_once(DOL_DOCUMENT_ROOT."/core/lib/date.lib.php"); require_once(DOL_DOCUMENT_ROOT."/core/lib/date.lib.php");
require_once(DOL_DOCUMENT_ROOT."/core/class/ldap.class.php"); require_once(DOL_DOCUMENT_ROOT."/core/class/ldap.class.php");
require_once(DOL_DOCUMENT_ROOT."/adherents/class/adherent.class.php"); require_once(DOL_DOCUMENT_ROOT."/adherents/class/adherent.class.php");
require_once(DOL_DOCUMENT_ROOT."/adherents/class/cotisation.class.php"); require_once(DOL_DOCUMENT_ROOT."/adherents/class/subscription.class.php");
$langs->load("main"); $langs->load("main");
$langs->load("errors"); $langs->load("errors");
...@@ -291,7 +291,7 @@ if ($result >= 0) ...@@ -291,7 +291,7 @@ if ($result >= 0)
{ {
// Cree premiere cotisation et met a jour datefin dans adherent // Cree premiere cotisation et met a jour datefin dans adherent
//print "xx".$datefirst."\n"; //print "xx".$datefirst."\n";
$crowid=$member->cotisation($datefirst, $pricefirst, 0); $crowid=$member->subscription($datefirst, $pricefirst, 0);
} }
// Insert last subscription // Insert last subscription
...@@ -299,7 +299,7 @@ if ($result >= 0) ...@@ -299,7 +299,7 @@ if ($result >= 0)
{ {
// Cree derniere cotisation et met a jour datefin dans adherent // Cree derniere cotisation et met a jour datefin dans adherent
//print "yy".dol_print_date($datelast)."\n"; //print "yy".dol_print_date($datelast)."\n";
$crowid=$member->cotisation($datelast, $pricelast, 0); $crowid=$member->subscription($datelast, $pricelast, 0);
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment