Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Leo Colisson
scripts
Commits
c700ec4c
Commit
c700ec4c
authored
Sep 26, 2015
by
Pierre-Elliott Bécue
Browse files
N'affiche pas la timezone du recuPaiement
parent
c5c903b1
Changes
1
Hide whitespace changes
Inline
Side-by-side
gestion/whos.py
View file @
c700ec4c
...
...
@@ -85,13 +85,13 @@ def indicatif (num):
return
(
num
[
2
],
num
[
3
:])
# indicatifs nationaux à 2 chiffres
ids
=
[
20
,
27
,
36
,
86
,
98
]
ids
.
extend
(
range
(
30
,
35
))
ids
.
extend
(
range
(
39
,
42
))
ids
.
extend
(
range
(
43
,
50
))
ids
.
extend
(
range
(
51
,
59
))
ids
.
extend
(
range
(
60
,
67
))
ids
.
extend
(
range
(
81
,
85
))
ids
.
extend
(
range
(
90
,
96
))
ids
.
extend
(
range
(
30
,
35
))
ids
.
extend
(
range
(
39
,
42
))
ids
.
extend
(
range
(
43
,
50
))
ids
.
extend
(
range
(
51
,
59
))
ids
.
extend
(
range
(
60
,
67
))
ids
.
extend
(
range
(
81
,
85
))
ids
.
extend
(
range
(
90
,
96
))
if
int
(
num
[
2
:
4
])
in
ids
:
return
(
num
[
2
:
4
],
num
[
4
:])
return
(
num
[
2
:
5
],
num
[
5
:])
...
...
@@ -294,7 +294,7 @@ def factures_brief(factures) :
facture
.
id
(),
p
,
facture
.
modePaiement
(),
coul
(
datetimeFromGTF
(
facture
.
recuPaiement
()).
strftime
(
"%d/%m/%Y %H:%M:%S
%z
"
),
"vert"
)
if
facture
.
recuPaiement
()
else
coul
(
"NON"
,
"rouge"
),
coul
(
datetimeFromGTF
(
facture
.
recuPaiement
()).
strftime
(
"%d/%m/%Y %H:%M:%S"
),
"vert"
)
if
facture
.
recuPaiement
()
else
coul
(
"NON"
,
"rouge"
),
controle
,
', '
.
join
(
article
[
'code'
]
for
article
in
facture
.
articles
()),
unicode
(
facture
.
total
())
+
u
" €"
,
...
...
@@ -421,7 +421,7 @@ def list_factures(factures) :
data
.
append
([
f
.
id
(),
f
.
modePaiement
(),
coul
(
datetimeFromGTF
(
facture
.
recuPaiement
()).
strftime
(
"%d/%m/%Y %H:%M:%S
%z
"
),
"vert"
)
if
f
.
recuPaiement
()
else
coul
(
"NON"
,
"rouge"
),
coul
(
datetimeFromGTF
(
facture
.
recuPaiement
()).
strftime
(
"%d/%m/%Y %H:%M:%S"
),
"vert"
)
if
f
.
recuPaiement
()
else
coul
(
"NON"
,
"rouge"
),
controle
,
', '
.
join
(
a
[
'code'
]
for
a
in
f
.
articles
()),
u
"%s€"
%
sum
([
float
(
a
[
'pu'
])
*
int
(
a
[
'nombre'
])
for
a
in
f
.
articles
()])
...
...
@@ -706,7 +706,7 @@ def facture_details(facture) :
f
+=
facture
.
modePaiement
()
f
+=
u
" "
f
+=
coul
(
u
"Paiement reçu : "
,
"gras"
)
f
+=
coul
(
datetimeFromGTF
(
facture
.
recuPaiement
()).
strftime
(
"%d/%m/%Y %H:%M:%S
%z
"
),
"vert"
)
if
facture
.
recuPaiement
()
else
coul
(
u
"Non"
,
"rouge"
)
f
+=
coul
(
datetimeFromGTF
(
facture
.
recuPaiement
()).
strftime
(
"%d/%m/%Y %H:%M:%S"
),
"vert"
)
if
facture
.
recuPaiement
()
else
coul
(
u
"Non"
,
"rouge"
)
f
+=
u
"
\n
"
f
+=
coul
(
u
"Contrôle : "
,
"gras"
)
f
+=
controle
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment