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
9426298b
Commit
9426298b
authored
10 years ago
by
Marcos García de La Fuente
Browse files
Options
Downloads
Patches
Plain Diff
[ bug #1548 ] Supplier payment card shows type in French
parent
ba70c1a0
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
ChangeLog
+1
-0
1 addition, 0 deletions
ChangeLog
htdocs/fourn/class/paiementfourn.class.php
+15
-1
15 additions, 1 deletion
htdocs/fourn/class/paiementfourn.class.php
htdocs/fourn/paiement/fiche.php
+3
-1
3 additions, 1 deletion
htdocs/fourn/paiement/fiche.php
with
19 additions
and
2 deletions
ChangeLog
+
1
−
0
View file @
9426298b
...
...
@@ -25,6 +25,7 @@ Fix: [ bug #1544 ] Can remove date from invoice.
Fix: list event view lost type event filter.
Fix: Add code save on create event.
Fix: SQL injection.
Fix: [ bug #1548 ] Supplier payment card shows type in French
***** ChangeLog for 3.5.4 compared to 3.5.3 *****
Fix: Hide title of event when agenda module disabled.
...
...
This diff is collapsed.
Click to expand it.
htdocs/fourn/class/paiementfourn.class.php
+
15
−
1
View file @
9426298b
...
...
@@ -4,6 +4,7 @@
* Copyright (C) 2005 Marc Barilley / Ocebo <marc@ocebo.com>
* Copyright (C) 2005-2009 Regis Houssin <regis.houssin@capnetworks.com>
* Copyright (C) 2010-2011 Juanjo Menent <jmenent@2byte.es>
* Copyright (C) 2014 Marcos García <marcosgdf@gmail.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
...
...
@@ -55,6 +56,18 @@ class PaiementFourn extends Paiement
// fk_paiement dans llx_paiement est l'id du type de paiement (7 pour CHQ, ...)
// fk_paiement dans llx_paiement_facture est le rowid du paiement
/**
* Label of payment type
* @var string
*/
public
$type_libelle
;
/**
* Code of Payment type
* @var string
*/
public
$type_code
;
/**
* Constructor
*
...
...
@@ -74,7 +87,7 @@ class PaiementFourn extends Paiement
function
fetch
(
$id
)
{
$sql
=
'SELECT p.rowid, p.datep as dp, p.amount, p.statut, p.fk_bank,'
;
$sql
.
=
' c.libelle as paiement_type,'
;
$sql
.
=
'
c.code as paiement_code,
c.libelle as paiement_type,'
;
$sql
.
=
' p.num_paiement, p.note, b.fk_account'
;
$sql
.
=
' FROM '
.
MAIN_DB_PREFIX
.
'c_paiement as c, '
.
MAIN_DB_PREFIX
.
'paiementfourn as p'
;
$sql
.
=
' LEFT JOIN '
.
MAIN_DB_PREFIX
.
'bank as b ON p.fk_bank = b.rowid '
;
...
...
@@ -95,6 +108,7 @@ class PaiementFourn extends Paiement
$this
->
bank_line
=
$obj
->
fk_bank
;
$this
->
montant
=
$obj
->
amount
;
$this
->
note
=
$obj
->
note
;
$this
->
type_code
=
$obj
->
paiement_code
;
$this
->
type_libelle
=
$obj
->
paiement_type
;
$this
->
statut
=
$obj
->
statut
;
$error
=
1
;
...
...
This diff is collapsed.
Click to expand it.
htdocs/fourn/paiement/fiche.php
+
3
−
1
View file @
9426298b
...
...
@@ -2,6 +2,7 @@
/* Copyright (C) 2005 Rodolphe Quiedeville <rodolphe@quiedeville.org>
* Copyright (C) 2005 Marc Barilley / Ocebo <marc@ocebo.com>
* Copyright (C) 2006-2010 Laurent Destailleur <eldy@users.sourceforge.net>
* Copyright (C) 2014 Marcos García <marcosgdf@gmail.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
...
...
@@ -187,7 +188,8 @@ if ($result > 0)
print
'</td></tr>'
;
// Payment mode
print
'<tr><td valign="top" colspan="2">'
.
$langs
->
trans
(
'PaymentMode'
)
.
'</td><td colspan="3">'
.
$object
->
type_libelle
.
'</td></tr>'
;
$labeltype
=
$langs
->
trans
(
"PaymentType"
.
$object
->
type_code
)
!=
(
"PaymentType"
.
$object
->
type_code
)
?
$langs
->
trans
(
"PaymentType"
.
$object
->
type_code
)
:
$object
->
type_libelle
;
print
'<tr><td valign="top" colspan="2">'
.
$langs
->
trans
(
'PaymentMode'
)
.
'</td><td colspan="3">'
.
$labeltype
.
'</td></tr>'
;
// Payment numero
print
'<tr><td valign="top" colspan="2">'
.
$form
->
editfieldkey
(
"Numero"
,
'num_paiement'
,
$object
->
numero
,
$object
,
$object
->
statut
==
0
&&
$user
->
rights
->
fournisseur
->
facture
->
creer
)
.
'</td><td colspan="3">'
;
...
...
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