Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dolibarr
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Software_Artifact_Infrastructure_Repository
dolibarr
Commits
32653c1b
Commit
32653c1b
authored
8 years ago
by
Speed
Committed by
GitHub
8 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Updated script sync members from LDAP
Replace "Cotisation" class with its new name "Subscription"
parent
227b616c
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
scripts/members/sync_members_ldap2dolibarr.php
+3
-3
3 additions, 3 deletions
scripts/members/sync_members_ldap2dolibarr.php
with
3 additions
and
3 deletions
scripts/members/sync_members_ldap2dolibarr.php
+
3
−
3
View file @
32653c1b
...
...
@@ -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/class/ldap.class.php"
);
require_once
(
DOL_DOCUMENT_ROOT
.
"/adherents/class/adherent.class.php"
);
require_once
(
DOL_DOCUMENT_ROOT
.
"/adherents/class/
cotisa
tion.class.php"
);
require_once
(
DOL_DOCUMENT_ROOT
.
"/adherents/class/
subscrip
tion.class.php"
);
$langs
->
load
(
"main"
);
$langs
->
load
(
"errors"
);
...
...
@@ -291,7 +291,7 @@ if ($result >= 0)
{
// Cree premiere cotisation et met a jour datefin dans adherent
//print "xx".$datefirst."\n";
$crowid
=
$member
->
cotisa
tion
(
$datefirst
,
$pricefirst
,
0
);
$crowid
=
$member
->
subscrip
tion
(
$datefirst
,
$pricefirst
,
0
);
}
// Insert last subscription
...
...
@@ -299,7 +299,7 @@ if ($result >= 0)
{
// Cree derniere cotisation et met a jour datefin dans adherent
//print "yy".dol_print_date($datelast)."\n";
$crowid
=
$member
->
cotisa
tion
(
$datelast
,
$pricelast
,
0
);
$crowid
=
$member
->
subscrip
tion
(
$datelast
,
$pricelast
,
0
);
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment