Skip to content

Commit

Permalink
Merge pull request #6301 from sealeo-org/develop
Browse files Browse the repository at this point in the history
Fix : script sync members from LDAP
  • Loading branch information
eldy committed Jan 20, 2017
2 parents a250ba5 + 32653c1 commit bf0b5c0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/members/sync_members_ldap2dolibarr.php
Expand Up @@ -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");
Expand Down Expand Up @@ -291,15 +291,15 @@
{
// 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
if ($datelast)
{
// 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);
}

}
Expand Down

0 comments on commit bf0b5c0

Please sign in to comment.