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
b5c349e9
Commit
b5c349e9
authored
20 years ago
by
Laurent Destailleur
Browse files
Options
Downloads
Patches
Plain Diff
Fix: Pb register_globals=off + Pb de tri qui ne marchait pas
parent
65230aaa
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/paiement.php
+28
-18
28 additions, 18 deletions
htdocs/compta/paiement.php
with
28 additions
and
18 deletions
htdocs/compta/paiement.php
+
28
−
18
View file @
b5c349e9
...
...
@@ -36,6 +36,12 @@ include_once(DOL_DOCUMENT_ROOT."/compta/bank/account.class.php");
$facid
=
isset
(
$_GET
[
"facid"
])
?
$_GET
[
"facid"
]
:
$_POST
[
"facid"
];
$socname
=
isset
(
$_GET
[
"socname"
])
?
$_GET
[
"socname"
]
:
$_POST
[
"socname"
];
$sortfield
=
isset
(
$_GET
[
"sortfield"
])
?
$_GET
[
"sortfield"
]
:
$_POST
[
"sortfield"
];
$sortorder
=
isset
(
$_GET
[
"sortorder"
])
?
$_GET
[
"sortorder"
]
:
$_POST
[
"sortorder"
];
$page
=
isset
(
$_GET
[
"page"
])
?
$_GET
[
"page"
]
:
$_POST
[
"page"
];
if
(
$_POST
[
"action"
]
==
'add_paiement'
)
{
if
(
$_POST
[
"paiementid"
]
>
0
)
...
...
@@ -159,16 +165,16 @@ if ($_GET["action"] == 'create')
print
'<form action="paiement.php?action=create&facid='
.
$facid
.
'" method="post">'
;
print
'<input type="hidden" name="action" value="add_paiement">'
;
print
'<table
cellspacing="0"
class="border" width="100%"
cellpadding="3"
>'
;
print
'<table class="border" width="100%">'
;
print
"<tr><td>
Socit
:</td><td colspan=
\"
2
\"
>
$obj->nom
</td></tr>
\n
"
;
print
"<tr><td>
"
.
$langs
->
trans
(
"Company"
)
.
"
:</td><td colspan=
\"
2
\"
>
$obj->nom
</td></tr>
\n
"
;
print
"<input type=
\"
hidden
\"
name=
\"
facid
\"
value=
\"
$facid
\"
>"
;
print
"<input type=
\"
hidden
\"
name=
\"
facnumber
\"
value=
\"
$obj->facnumber
\"
>"
;
print
"<input type=
\"
hidden
\"
name=
\"
socid
\"
value=
\"
$obj->idp
\"
>"
;
print
"<input type=
\"
hidden
\"
name=
\"
societe
\"
value=
\"
$obj->nom
\"
>"
;
print
"<tr><td>
Date
:</td><td>"
;
print
"<tr><td>
"
.
$langs
->
trans
(
"Date"
)
.
"
:</td><td>"
;
print_date_select
();
print
'</td>'
;
print
'<td>'
.
$langs
->
trans
(
"Comments"
)
.
'</td></tr>'
;
...
...
@@ -212,7 +218,7 @@ if ($_GET["action"] == 'create')
print
'<option value="'
.
$objopt
->
rowid
.
'"'
;
if
(
defined
(
"FACTURE_RIB_NUMBER"
)
&&
FACTURE_RIB_NUMBER
==
$objopt
->
rowid
)
{
print
'
SELECTED
'
;
print
'
selected
'
;
}
print
'>'
.
$objopt
->
label
.
'</option>'
;
$i
++
;
...
...
@@ -244,12 +250,12 @@ if ($_GET["action"] == 'create')
print
'<tr><td colspan="3">'
;
print
'<table class="noborder" width="100%">'
;
print
'<tr class="liste_titre">'
;
print
'<td>Facture</td><td align="center">
Date
</td>'
;
print
'<td align="right">
Montant TTC
</td>'
;
print
'<td align="right">Reu</
TD
>'
;
print
'<td>Facture</td><td align="center">
'
.
$langs
->
trans
(
"Date"
)
.
'
</td>'
;
print
'<td align="right">
'
.
$langs
->
trans
(
"AmountTTC"
)
.
'
</td>'
;
print
'<td align="right">Reu</
td
>'
;
print
'<td align="right">Reste payer</td>'
;
print
'<td align="center">
Montant
</td>'
;
print
"</
TR
>
\n
"
;
print
'<td align="center">
'
.
$langs
->
trans
(
"Amount"
)
.
'
</td>'
;
print
"</
tr
>
\n
"
;
$var
=
True
;
$total
=
0
;
...
...
@@ -263,7 +269,7 @@ if ($_GET["action"] == 'create')
print
"<tr
$bc[$var]
>"
;
print
'<td><a href="facture.php?facid='
.
$objp
->
facid
.
'">'
.
$objp
->
facnumber
;
print
"</a></
TD
>
\n
"
;
print
"</a></
td
>
\n
"
;
if
(
$objp
->
df
>
0
)
{
...
...
@@ -272,10 +278,10 @@ if ($_GET["action"] == 'create')
}
else
{
print
"<td align=
\"
center
\"
><b>!!!</b></
TD
>
\n
"
;
print
"<td align=
\"
center
\"
><b>!!!</b></
td
>
\n
"
;
}
print
'<td align="right">'
.
price
(
$objp
->
total_ttc
)
.
"</
TD
>"
;
print
'<td align="right">'
.
price
(
$objp
->
total_ttc
)
.
"</
td
>"
;
print
'<td align="right">'
.
price
(
$objp
->
am
)
.
"</td>"
;
print
'<td align="right">'
.
price
(
$objp
->
total_ttc
-
$objp
->
am
)
.
"</td>"
;
...
...
@@ -313,7 +319,7 @@ if ($_GET["action"] == 'create')
}
else
{
print
$sql
.
"<br>"
.
$db
->
error
();
dolibarr_print_
error
(
$db
);
}
/*
*
...
...
@@ -331,7 +337,11 @@ if ($_GET["action"] == 'create')
}
}
if
(
$action
==
''
)
/**
* \brief Affichage de la liste des paiement
*/
if
(
!
$_GET
[
"action"
])
{
if
(
$page
==
-
1
)
...
...
@@ -370,10 +380,10 @@ if ($action == '')
print
'<table class="noborder" width="100%">'
;
print
'<tr class="liste_titre">'
;
print
"<td>Facture</td>"
;
print
"<td>Date</td>"
;
print_liste_field_titre
(
$langs
->
trans
(
"Type"
),
"paiement.php"
,
"
c.
libelle"
,
""
,
""
);
print_liste_field_titre
(
$langs
->
trans
(
"Amount"
),
"paiement.php"
,
"
c.libelle
"
,
""
,
""
,
'align="right"'
);
print
_liste_field_titre
(
$langs
->
trans
(
"Bill"
),
"paiement.php"
,
"facnumber"
,
""
,
""
,
""
,
$sortfield
)
;
print
_liste_field_titre
(
$langs
->
trans
(
"Date"
),
"paiement.php"
,
"dp"
,
""
,
""
,
""
,
$sortfield
)
;
print_liste_field_titre
(
$langs
->
trans
(
"Type"
),
"paiement.php"
,
"libelle"
,
""
,
""
,
""
,
$sortfield
);
print_liste_field_titre
(
$langs
->
trans
(
"Amount"
),
"paiement.php"
,
"
fa_amount
"
,
""
,
""
,
'align="right"'
,
$sortfield
);
print
"<td> </td>"
;
print
"</tr>
\n
"
;
...
...
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