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
f58d0636
Commit
f58d0636
authored
12 years ago
by
Laurent Destailleur
Browse files
Options
Downloads
Patches
Plain Diff
Doxygen
parent
eb7dc893
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
htdocs/compta/prelevement/class/bonprelevement.class.php
+10
-14
10 additions, 14 deletions
htdocs/compta/prelevement/class/bonprelevement.class.php
with
10 additions
and
14 deletions
htdocs/compta/prelevement/class/bonprelevement.class.php
+
10
−
14
View file @
f58d0636
...
@@ -28,9 +28,6 @@ require_once DOL_DOCUMENT_ROOT.'/core/class/commonobject.class.php';
...
@@ -28,9 +28,6 @@ require_once DOL_DOCUMENT_ROOT.'/core/class/commonobject.class.php';
require_once
DOL_DOCUMENT_ROOT
.
'/compta/facture/class/facture.class.php'
;
require_once
DOL_DOCUMENT_ROOT
.
'/compta/facture/class/facture.class.php'
;
require_once
DOL_DOCUMENT_ROOT
.
'/societe/class/societe.class.php'
;
require_once
DOL_DOCUMENT_ROOT
.
'/societe/class/societe.class.php'
;
require_once
DOL_DOCUMENT_ROOT
.
'/compta/paiement/class/paiement.class.php'
;
require_once
DOL_DOCUMENT_ROOT
.
'/compta/paiement/class/paiement.class.php'
;
// FIXME don't include external module class
if
(
!
empty
(
$conf
->
esaeb
->
enabled
))
dol_include_once
(
'/esaeb/class/esaeb19.class.php'
);
/**
/**
...
@@ -481,7 +478,6 @@ class BonPrelevement extends CommonObject
...
@@ -481,7 +478,6 @@ class BonPrelevement extends CommonObject
/*
/*
* End of procedure
* End of procedure
*
*/
*/
if
(
$error
==
0
)
if
(
$error
==
0
)
{
{
...
@@ -928,7 +924,7 @@ class BonPrelevement extends CommonObject
...
@@ -928,7 +924,7 @@ class BonPrelevement extends CommonObject
}
}
/*
/*
* Creat
ion process
* Creat
e withdrawal receipt
*/
*/
if
(
!
$error
)
if
(
!
$error
)
{
{
...
@@ -1181,12 +1177,15 @@ class BonPrelevement extends CommonObject
...
@@ -1181,12 +1177,15 @@ class BonPrelevement extends CommonObject
$this
->
file
=
fopen
(
$this
->
filename
,
"w"
);
$this
->
file
=
fopen
(
$this
->
filename
,
"w"
);
// TODO Move code for es and fr into an external module file with selection into setup of prelevement module
// Build file for Spain
// Build file for Spain
if
(
$mysoc
->
country_code
==
'ES'
)
if
(
$mysoc
->
country_code
==
'ES'
)
{
{
// TODO replace by a hook (external modules)
if
(
!
empty
(
$conf
->
esaeb
->
enabled
))
if
(
!
empty
(
$conf
->
esaeb
->
enabled
))
{
{
dol_include_once
(
'/esaeb/class/esaeb19.class.php'
);
//Head
//Head
$esaeb19
=
new
AEB19DocWritter
;
$esaeb19
=
new
AEB19DocWritter
;
$esaeb19
->
configuraPresentador
(
$this
->
numero_national_emetteur
,
$conf
->
global
->
ESAEB_SUFIX_PRESENTADOR
,
$this
->
raison_sociale
,
$this
->
emetteur_code_banque
,
$this
->
emetteur_code_guichet
);
$esaeb19
->
configuraPresentador
(
$this
->
numero_national_emetteur
,
$conf
->
global
->
ESAEB_SUFIX_PRESENTADOR
,
$this
->
raison_sociale
,
$this
->
emetteur_code_banque
,
$this
->
emetteur_code_guichet
);
...
@@ -1271,9 +1270,7 @@ class BonPrelevement extends CommonObject
...
@@ -1271,9 +1270,7 @@ class BonPrelevement extends CommonObject
$langs
->
load
(
'withdrawals'
);
$langs
->
load
(
'withdrawals'
);
fputs
(
$this
->
file
,
$langs
->
trans
(
'WithdrawalFileNotCapable'
));
fputs
(
$this
->
file
,
$langs
->
trans
(
'WithdrawalFileNotCapable'
));
}
}
}
}
// Build file for France
// Build file for France
elseif
(
$mysoc
->
country_code
==
'FR'
)
elseif
(
$mysoc
->
country_code
==
'FR'
)
{
{
...
@@ -1326,7 +1323,6 @@ class BonPrelevement extends CommonObject
...
@@ -1326,7 +1323,6 @@ class BonPrelevement extends CommonObject
$this
->
EnregTotal
(
$this
->
total
);
$this
->
EnregTotal
(
$this
->
total
);
}
}
// Build file for Other Countries with unknow format
// Build file for Other Countries with unknow format
else
else
{
{
...
...
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