Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
l10n_mx
Facturacion
Commits
0b8b3c79
Commit
0b8b3c79
authored
6 years ago
by
Cuauhtémoc Díaz Minor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
style(pac_answer): black
parent
36d5b2bb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
11 deletions
+16
-11
l10n_mx_params_pac/lib/pac_answer.py
l10n_mx_params_pac/lib/pac_answer.py
+16
-11
No files found.
l10n_mx_params_pac/lib/pac_answer.py
View file @
0b8b3c79
# -*- coding: utf-8 -*-
# Lista con los mensajes de respuesta de cancelacion pendiente de los PAC
wait_cancel
=
[
'En proceso'
,
# Finkok, xpd
'211'
,
# Solucion factible
]
wait_cancel
=
[
"En proceso"
,
"211"
]
# Finkok, xpd # Solucion factible
negation_cancel
=
[
"no_cancelable"
,
# Finkok
"213"
,
# Solucion factible
"Vigente,"
# xpd'
]
"no_cancelable"
,
# Finkok
"213"
,
# Solucion factible
"Vigente,"
,
# xpd'
]
class
PacAnswer
(
object
):
'''This class is use to homogenize the PAC's answers'''
"""This class is use to homogenize the PAC's answers"""
def
__init__
(
self
,
uuid
,
estatus
):
self
.
uuid
=
uuid
self
.
estatus
=
estatus
class
PacCancelAnswer
(
PacAnswer
):
'''This class is use to homogenize the PAC's cancel answer'''
"""This class is use to homogenize the PAC's cancel answer"""
def
__init__
(
self
,
uuid
,
estatus
,
estatus_cancelacion
):
PacAnswer
.
__init__
(
self
,
uuid
,
estatus
)
self
.
estatus_cancelacion
=
estatus_cancelacion
...
...
@@ -33,13 +34,17 @@ class PacCancelAnswer(PacAnswer):
cancelacion
=
True
return
cancelacion
class
PacConsultAnswer
(
PacCancelAnswer
):
"""This class is use to homogenize the PAC's consult answer"""
def
__init__
(
self
,
uuid
,
estatus
,
estatus_cancelacion
):
PacCancelAnswer
.
__init__
(
self
,
uuid
,
estatus
,
estatus_cancelacion
)
def
check_cancel_status
(
self
):
if
self
.
estatus_cancelacion
in
wait_cancel
or
self
.
estatus
in
(
"No encontrado"
):
# Noqa
if
self
.
estatus_cancelacion
in
wait_cancel
or
self
.
estatus
in
(
"No encontrado"
):
cancelacion
=
None
elif
self
.
estatus
in
negation_cancel
:
cancelacion
=
False
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
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