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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Software_Artifact_Infrastructure_Repository
dolibarr
Commits
442e15e9
Commit
442e15e9
authored
11 years ago
by
Laurent Destailleur
Browse files
Options
Downloads
Plain Diff
Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop
parents
e5a06635
773caf80
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
ChangeLog
+1
-0
1 addition, 0 deletions
ChangeLog
htdocs/compta/prelevement/class/bonprelevement.class.php
+2
-69
2 additions, 69 deletions
htdocs/compta/prelevement/class/bonprelevement.class.php
with
3 additions
and
69 deletions
ChangeLog
+
1
−
0
View file @
442e15e9
...
...
@@ -5,6 +5,7 @@ English Dolibarr ChangeLog
***** ChangeLog for 3.7 compared to 3.6.* *****
For users:
New: [ task #867 ] Remove ESAEB external module code from core
-
For translators:
...
...
This diff is collapsed.
Click to expand it.
htdocs/compta/prelevement/class/bonprelevement.class.php
+
2
−
69
View file @
442e15e9
...
...
@@ -1220,8 +1220,7 @@ class BonPrelevement extends CommonObject
/**
* Generate a withdrawal file. Generation Formats:
* France: CFONB
* Spain: AEB19 (if external module EsAEB is enabled)
* European countries: SEPA
* Others: Warning message
* File is generated with name this->filename
*
...
...
@@ -1238,76 +1237,10 @@ class BonPrelevement extends CommonObject
$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
$found
=
0
;
// Build file for Spain
if
(
$mysoc
->
country_code
==
'ES'
)
{
if
(
!
empty
(
$conf
->
esaeb
->
enabled
))
{
$found
++
;
dol_include_once
(
'/esaeb/class/esaeb19.class.php'
);
//Head
$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
);
$idOrdenante
=
$esaeb19
->
agregaOrdenante
(
$this
->
numero_national_emetteur
,
$conf
->
global
->
ESAEB_SUFIX_ORDENANTE
,
$this
->
raison_sociale
,
$this
->
emetteur_code_banque
,
$this
->
emetteur_code_guichet
,
$this
->
emetteur_number_key
,
$this
->
emetteur_numero_compte
);
$this
->
total
=
0
;
$sql
=
"SELECT pl.rowid, pl.fk_soc, pl.client_nom, pl.code_banque, pl.code_guichet, pl.cle_rib, pl.number, pl.amount,"
;
$sql
.
=
" f.facnumber, pf.fk_facture"
;
$sql
.
=
" FROM"
;
$sql
.
=
" "
.
MAIN_DB_PREFIX
.
"prelevement_lignes as pl,"
;
$sql
.
=
" "
.
MAIN_DB_PREFIX
.
"facture as f,"
;
$sql
.
=
" "
.
MAIN_DB_PREFIX
.
"prelevement_facture as pf"
;
$sql
.
=
" WHERE pl.fk_prelevement_bons = "
.
$this
->
id
;
$sql
.
=
" AND pl.rowid = pf.fk_prelevement_lignes"
;
$sql
.
=
" AND pf.fk_facture = f.rowid"
;
//Lines
$i
=
0
;
$resql
=
$this
->
db
->
query
(
$sql
);
if
(
$resql
)
{
$num
=
$this
->
db
->
num_rows
(
$resql
);
$client
=
new
Societe
(
$this
->
db
);
while
(
$i
<
$num
)
{
$obj
=
$this
->
db
->
fetch_object
(
$resql
);
$client
->
fetch
(
$obj
->
fk_soc
);
$esaeb19
->
agregaRecibo
(
$idOrdenante
,
$client
->
idprof1
,
$obj
->
client_nom
,
$obj
->
code_banque
,
$obj
->
code_guichet
,
$obj
->
cle_rib
,
$obj
->
number
,
$obj
->
amount
,
"Fra."
.
$obj
->
facnumber
.
" "
.
$obj
->
amount
);
$this
->
total
=
$this
->
total
+
$obj
->
amount
;
$i
++
;
}
}
else
{
$result
=
-
2
;
}
fputs
(
$this
->
file
,
$esaeb19
->
generaRemesa
());
}
}
// Build file for European countries
if
(
!
$found
&&
$mysoc
->
isInEEC
())
if
(
!
$mysoc
->
isInEEC
())
{
$found
++
;
...
...
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