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
4828d1e8
Commit
4828d1e8
authored
11 years ago
by
Laurent Destailleur
Browse files
Options
Downloads
Patches
Plain Diff
New: Uniformize visible information on payment lists.
parent
a5e8063c
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
htdocs/compta/charges/index.php
+12
-6
12 additions, 6 deletions
htdocs/compta/charges/index.php
with
12 additions
and
6 deletions
htdocs/compta/charges/index.php
+
12
−
6
View file @
4828d1e8
...
...
@@ -180,15 +180,18 @@ if ($conf->tax->enabled)
print_liste_field_titre
(
$langs
->
trans
(
"ExpectedToPay"
),
$_SERVER
[
"PHP_SELF"
],
"cs.amount"
,
""
,
$param
,
'align="right"'
,
$sortfield
,
$sortorder
);
print_liste_field_titre
(
$langs
->
trans
(
"RefPayment"
),
$_SERVER
[
"PHP_SELF"
],
"pc.rowid"
,
""
,
$param
,
''
,
$sortfield
,
$sortorder
);
print_liste_field_titre
(
$langs
->
trans
(
"DatePayment"
),
$_SERVER
[
"PHP_SELF"
],
"pc.datep"
,
""
,
$param
,
'align="center"'
,
$sortfield
,
$sortorder
);
print_liste_field_titre
(
$langs
->
trans
(
"Type"
),
$_SERVER
[
"PHP_SELF"
],
"pct.code"
,
""
,
$param
,
''
,
$sortfield
,
$sortorder
);
print_liste_field_titre
(
$langs
->
trans
(
"PayedByThisPayment"
),
$_SERVER
[
"PHP_SELF"
],
"pc.amount"
,
""
,
$param
,
'align="right"'
,
$sortfield
,
$sortorder
);
print
"</tr>
\n
"
;
$sql
=
"SELECT c.id, c.libelle as lib,"
;
$sql
.
=
" cs.rowid, cs.libelle, cs.fk_type as type, cs.periode, cs.date_ech, cs.amount as total,"
;
$sql
.
=
" pc.rowid as pid, pc.datep, pc.amount as totalpaye"
;
$sql
.
=
" pc.rowid as pid, pc.datep, pc.amount as totalpaye, pc.num_paiement as num_payment,"
;
$sql
.
=
" pct.code as payment_code"
;
$sql
.
=
" FROM "
.
MAIN_DB_PREFIX
.
"c_chargesociales as c,"
;
$sql
.
=
" "
.
MAIN_DB_PREFIX
.
"chargesociales as cs"
;
$sql
.
=
" LEFT JOIN "
.
MAIN_DB_PREFIX
.
"paiementcharge as pc ON pc.fk_charge = cs.rowid"
;
$sql
.
=
" LEFT JOIN "
.
MAIN_DB_PREFIX
.
"c_paiement as pct ON pc.fk_typepaiement = pct.id"
;
$sql
.
=
" WHERE cs.fk_type = c.id"
;
$sql
.
=
" AND cs.entity = "
.
$conf
->
entity
;
if
(
$year
>
0
)
...
...
@@ -241,6 +244,8 @@ if ($conf->tax->enabled)
print
'<td>'
.
$payment_sc_static
->
getNomUrl
(
1
)
.
"</td>
\n
"
;
// Date payment
print
'<td align="center">'
.
dol_print_date
(
$db
->
jdate
(
$obj
->
datep
),
'day'
)
.
'</td>'
;
// Type payment
print
'<td>'
.
$langs
->
trans
(
"PaymentTypeShort"
.
$obj
->
payment_code
)
.
' '
.
$obj
->
num_payment
.
'</td>'
;
// Paid
print
'<td align="right">'
.
price
(
$obj
->
totalpaye
)
.
'</td>'
;
print
'</tr>'
;
...
...
@@ -249,11 +254,12 @@ if ($conf->tax->enabled)
$totalpaye
=
$totalpaye
+
$obj
->
totalpaye
;
$i
++
;
}
print
'<tr class="liste_total"><td align="right" colspan="3">'
.
$langs
->
trans
(
"Total"
)
.
'</td>'
;
print
'<td align="right">'
.
price
(
$total
)
.
"</td>"
;
print
'<td align="center"> </td>'
;
print
'<td align="center"> </td>'
;
print
'<td align="right">'
.
price
(
$totalpaye
)
.
"</td>"
;
print
'<tr class="liste_total"><td colspan="3" class="liste_total">'
.
$langs
->
trans
(
"Total"
)
.
'</td>'
;
print
'<td align="right" class="liste_total">'
.
price
(
$total
)
.
"</td>"
;
print
'<td align="center" class="liste_total"> </td>'
;
print
'<td align="center" class="liste_total"> </td>'
;
print
'<td align="center" class="liste_total"> </td>'
;
print
'<td align="right" class="liste_total">'
.
price
(
$totalpaye
)
.
"</td>"
;
print
"</tr>"
;
}
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