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
7cca4f3e
Commit
7cca4f3e
authored
8 years ago
by
Laurent Destailleur
Browse files
Options
Downloads
Plain Diff
Merge pull request #5211 from defrance/patch-4
enhance rappro feature
parents
28e9460a
a1ce4000
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
htdocs/compta/bank/rappro.php
+21
-12
21 additions, 12 deletions
htdocs/compta/bank/rappro.php
htdocs/compta/paiement/class/paiement.class.php
+11
-0
11 additions, 0 deletions
htdocs/compta/paiement/class/paiement.class.php
with
32 additions
and
12 deletions
htdocs/compta/bank/rappro.php
+
21
−
12
View file @
7cca4f3e
...
...
@@ -45,6 +45,11 @@ if (! $user->rights->banque->consolidate) accessforbidden();
$action
=
GETPOST
(
'action'
,
'alpha'
);
$id
=
GETPOST
(
'account'
,
'int'
);
$sortfield
=
GETPOST
(
"sortfield"
,
'alpha'
);
$sortorder
=
GETPOST
(
"sortorder"
,
'alpha'
);
if
(
!
$sortorder
)
$sortorder
=
"ASC"
;
if
(
!
$sortfield
)
$sortfield
=
"dateo"
;
/*
* Actions
...
...
@@ -147,7 +152,7 @@ $sql.= ", bc.ref";
$sql
.
=
" FROM "
.
MAIN_DB_PREFIX
.
"bank as b"
;
$sql
.
=
' LEFT JOIN '
.
MAIN_DB_PREFIX
.
'bordereau_cheque as bc ON bc.rowid=b.fk_bordereau'
;
$sql
.
=
" WHERE rappro=0 AND fk_account="
.
$acct
->
id
;
$sql
.
=
" ORDER BY
dateo ASC
"
;
$sql
.
=
" ORDER BY
$sortfield
$sortorder
"
;
$sql
.
=
" LIMIT 1000"
;
// Limit to avoid page overload
/// ajax adjust value date
...
...
@@ -231,17 +236,21 @@ if ($resql)
print
'<br>'
;
print
'<table class="liste" width="100%">'
;
print
'<tr class="liste_titre">'
.
"
\n
"
;
print
'<td align="center">'
.
$langs
->
trans
(
"DateOperationShort"
)
.
'</td>'
;
print
'<td align="center">'
.
$langs
->
trans
(
"DateValueShort"
)
.
'</td>'
;
print
'<td>'
.
$langs
->
trans
(
"Type"
)
.
'</td>'
;
print
'<td>'
.
$langs
->
trans
(
"Description"
)
.
'</td>'
;
print
'<td align="right" width="60" class="nowrap">'
.
$langs
->
trans
(
"Debit"
)
.
'</td>'
;
print
'<td align="right" width="60" class="nowrap">'
.
$langs
->
trans
(
"Credit"
)
.
'</td>'
;
print
'<td align="center" width="80">'
.
$langs
->
trans
(
"Action"
)
.
'</td>'
;
print
'<td align="center" width="60" class="nowrap">'
.
$langs
->
trans
(
"ToConciliate"
)
.
'</td>'
;
print
"</tr>
\n
"
;
print
'<table class="liste" width="100%">'
;
print
'<tr class="liste_titre">'
.
"
\n
"
;
$paramlist
=
''
;
$paramlist
.
=
"&account="
.
$acct
->
id
;
print
'<table class="liste" width="100%">'
;
print
'<tr class="liste_titre">'
.
"
\n
"
;
print_liste_field_titre
(
$langs
->
trans
(
"DateOperationShort"
),
$_SERVER
[
"PHP_SELF"
],
"b.dateo"
,
""
,
$paramlist
,
'align="center"'
,
$sortfield
,
$sortorder
);
print_liste_field_titre
(
$langs
->
trans
(
"DateValueShort"
),
$_SERVER
[
"PHP_SELF"
],
"b.datev"
,
""
,
$paramlist
,
'align="center"'
,
$sortfield
,
$sortorder
);
print_liste_field_titre
(
$langs
->
trans
(
"Type"
),
$_SERVER
[
"PHP_SELF"
],
"b.fk_type"
,
""
,
$paramlist
,
'align="left"'
,
$sortfield
,
$sortorder
);
print_liste_field_titre
(
$langs
->
trans
(
"Description"
),
$_SERVER
[
"PHP_SELF"
],
"b.label"
,
""
,
$paramlist
,
'align="left"'
,
$sortfield
,
$sortorder
);
print_liste_field_titre
(
$langs
->
trans
(
"Debit"
),
$_SERVER
[
"PHP_SELF"
],
"b.amount"
,
""
,
$paramlist
,
' width="60 align="right"'
,
$sortfield
,
$sortorder
);
print_liste_field_titre
(
$langs
->
trans
(
"Credit"
),
$_SERVER
[
"PHP_SELF"
],
"b.amount"
,
""
,
$paramlist
,
' width="60 align="right"'
,
$sortfield
,
$sortorder
);
print_liste_field_titre
(
$langs
->
trans
(
"Action"
),
$_SERVER
[
"PHP_SELF"
],
""
,
""
,
$paramlist
,
' width="80 align="center"'
,
$sortfield
,
$sortorder
);
print_liste_field_titre
(
$langs
->
trans
(
"ToConciliate"
),
$_SERVER
[
"PHP_SELF"
],
""
,
""
,
$paramlist
,
' align="center" width="80" '
,
$sortfield
,
$sortorder
);
print
"</tr>
\n
"
;
$i
=
0
;
...
...
This diff is collapsed.
Click to expand it.
htdocs/compta/paiement/class/paiement.class.php
+
11
−
0
View file @
7cca4f3e
...
...
@@ -971,6 +971,17 @@ class Paiement extends CommonObject
$result
=
''
;
$label
=
$langs
->
trans
(
"ShowPayment"
)
.
': '
.
$this
->
ref
;
$arraybill
=
$this
->
getBillsArray
();
if
(
count
(
$arraybill
)
>
0
)
{
require_once
DOL_DOCUMENT_ROOT
.
'/compta/facture/class/facture.class.php'
;
$facturestatic
=
new
Facture
(
$this
->
db
);
foreach
(
$arraybill
as
$billid
)
{
$facturestatic
->
fetch
(
$billid
);
$label
.
=
'<br> '
.
$facturestatic
->
getNomUrl
(
1
)
.
' '
.
$facturestatic
->
getLibStatut
(
2
,
1
);
}
}
$link
=
'<a href="'
.
DOL_URL_ROOT
.
'/compta/paiement/card.php?id='
.
$this
->
id
.
'" title="'
.
dol_escape_htmltag
(
$label
,
1
)
.
'" class="classfortooltip">'
;
$linkend
=
'</a>'
;
...
...
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