From 32653c1b941203691ad1ea1949665309a1ab0dd8 Mon Sep 17 00:00:00 2001 From: Speed Date: Wed, 18 Jan 2017 19:38:50 +0100 Subject: [PATCH] Updated script sync members from LDAP Replace "Cotisation" class with its new name "Subscription" --- scripts/members/sync_members_ldap2dolibarr.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/members/sync_members_ldap2dolibarr.php b/scripts/members/sync_members_ldap2dolibarr.php index 2319a10a0fd82..e7adb80e733d3 100755 --- a/scripts/members/sync_members_ldap2dolibarr.php +++ b/scripts/members/sync_members_ldap2dolibarr.php @@ -38,7 +38,7 @@ 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."/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("errors"); @@ -291,7 +291,7 @@ { // Cree premiere cotisation et met a jour datefin dans adherent //print "xx".$datefirst."\n"; - $crowid=$member->cotisation($datefirst, $pricefirst, 0); + $crowid=$member->subscription($datefirst, $pricefirst, 0); } // Insert last subscription @@ -299,7 +299,7 @@ { // Cree derniere cotisation et met a jour datefin dans adherent //print "yy".dol_print_date($datelast)."\n"; - $crowid=$member->cotisation($datelast, $pricelast, 0); + $crowid=$member->subscription($datelast, $pricelast, 0); } }