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
6280d805
Commit
6280d805
authored
6 years ago
by
Cuauhtémoc Díaz Minor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(pac_answer): se agregab los codigos de solucion_factible
parent
39e1acf4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
l10n_mx_params_pac/lib/pac_answer.py
l10n_mx_params_pac/lib/pac_answer.py
+7
-4
No files found.
l10n_mx_params_pac/lib/pac_answer.py
View file @
6280d805
...
...
@@ -6,9 +6,14 @@ wait_cancel = ["En proceso", "211"] # Finkok, xpd # Solucion factible
negation_cancel
=
[
"no_cancelable"
,
# Finkok
"213"
,
# Solucion factible
"Vigente,"
,
# xpd'
"204"
,
# Solucion factible
"Vigente"
,
# xpd'
]
cfdi_not_found
=
[
"No encontrado"
,
"702"
,
# solucion factible
]
class
PacAnswer
(
object
):
"""This class is use to homogenize the PAC's answers"""
...
...
@@ -42,9 +47,7 @@ class PacConsultAnswer(PacCancelAnswer):
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"
):
if
self
.
estatus_cancelacion
in
(
wait_cancel
+
cfdi_not_found
)
or
self
.
estatus
in
cfdi_not_found
:
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