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
4dc39fb6
Commit
4dc39fb6
authored
14 years ago
by
Juanjo Menent
Browse files
Options
Downloads
Patches
Plain Diff
Withdrawals: Checking need data to create standigns orders receipt file
parent
d8b89c6f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
htdocs/compta/prelevement/create.php
+10
-1
10 additions, 1 deletion
htdocs/compta/prelevement/create.php
htdocs/compta/prelevement/index.php
+10
-0
10 additions, 0 deletions
htdocs/compta/prelevement/index.php
htdocs/lib/prelevement.lib.php
+20
-1
20 additions, 1 deletion
htdocs/lib/prelevement.lib.php
with
40 additions
and
2 deletions
htdocs/compta/prelevement/create.php
+
10
−
1
View file @
4dc39fb6
...
...
@@ -2,7 +2,7 @@
/* Copyright (C) 2005 Rodolphe Quiedeville <rodolphe@quiedeville.org>
* Copyright (C) 2010 Laurent Destailleur <eldy@users.sourceforge.net>
* Copyright (C) 2005-2009 Regis Houssin <regis@dolibarr.fr>
* Copyright (C) 2010
Juanjo Menent <jmenent@2byte.es>
* Copyright (C) 2010
-2011
Juanjo Menent <jmenent@2byte.es>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
...
...
@@ -79,6 +79,15 @@ $bprev = new BonPrelevement($db);
llxHeader
(
''
,
$langs
->
trans
(
"NewStandingOrder"
));
require_once
(
DOL_DOCUMENT_ROOT
.
"/lib/prelevement.lib.php"
);
if
(
prelevement_check_config
()
<
0
)
{
$langs
->
load
(
"errors"
);
print
'<div class="error">'
;
print
$langs
->
trans
(
"ErrorModuleSetupNotComplete"
);
print
'</div>'
;
}
$h
=
0
;
$head
[
$h
][
0
]
=
DOL_URL_ROOT
.
'/compta/prelevement/create.php'
;
$head
[
$h
][
1
]
=
$langs
->
trans
(
"NewStandingOrder"
);
...
...
This diff is collapsed.
Click to expand it.
htdocs/compta/prelevement/index.php
+
10
−
0
View file @
4dc39fb6
...
...
@@ -2,6 +2,7 @@
/* Copyright (C) 2004-2005 Rodolphe Quiedeville <rodolphe@quiedeville.org>
* Copyright (C) 2005-2010 Laurent Destailleur <eldy@users.sourceforge.net>
* Copyright (C) 2005-2009 Regis Houssin <regis@dolibarr.fr>
* Copyright (C) 2011 Juanjo Menent <jmenent@2byte.es>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
...
...
@@ -50,6 +51,15 @@ $result = restrictedArea($user, 'prelevement','','');
llxHeader
(
''
,
$langs
->
trans
(
"CustomersStandingOrdersArea"
));
require_once
(
DOL_DOCUMENT_ROOT
.
"/lib/prelevement.lib.php"
);
if
(
prelevement_check_config
()
<
0
)
{
$langs
->
load
(
"errors"
);
print
'<div class="error">'
;
print
$langs
->
trans
(
"ErrorModuleSetupNotComplete"
);
print
'</div>'
;
}
print_fiche_titre
(
$langs
->
trans
(
"CustomersStandingOrdersArea"
));
print
'<table border="0" width="100%" class="notopnoleftnoright">'
;
...
...
This diff is collapsed.
Click to expand it.
htdocs/lib/prelevement.lib.php
+
20
−
1
View file @
4dc39fb6
<?php
/* Copyright (C) 2010 Juanjo Menent <jmenent@2byte.es>
/* Copyright (C) 2010-2011 Juanjo Menent <jmenent@2byte.es>
* Copyright (C) 2010 Laurent Destailleur <eldy@users.sourceforge.net>
* Copyright (C) 2011 Regis Houssin <regis@dolibarr.fr>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
...
...
@@ -81,4 +83,21 @@ function prelevement_prepare_head($object)
return
$head
;
}
/**
* Check need data to create standigns orders receipt file
* @return int -1 if ko 0 if ok
*/
function
prelevement_check_config
()
{
if
(
empty
(
$conf
->
global
->
PRELEVEMENT_ID_BANKACCOUNT
))
return
-
1
;
if
(
empty
(
$conf
->
global
->
PRELEVEMENT_CODE_BANQUE
))
return
-
1
;
if
(
empty
(
$conf
->
global
->
PRELEVEMENT_CODE_GUICHET
))
return
-
1
;
if
(
empty
(
$conf
->
global
->
PRELEVEMENT_NUMERO_COMPTE
))
return
-
1
;
if
(
empty
(
$conf
->
global
->
PRELEVEMENT_NUMBER_KEY
))
return
-
1
;
if
(
empty
(
$conf
->
global
->
PRELEVEMENT_RAISON_SOCIALE
))
return
-
1
;
if
(
empty
(
$conf
->
global
->
PRELEVEMENT_NUMERO_NATIONAL_EMETTEUR
))
return
-
1
;
return
0
;
}
?>
\ No newline at end of file
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