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
086653fd
Commit
086653fd
authored
6 years ago
by
Cuauhtémoc Díaz Minor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(finkok): soporte para el nuevo esquema de cancelacion
parent
f444baad
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
3 deletions
+1
-3
l10n_mx_params_pac/pacs/finfok.py
l10n_mx_params_pac/pacs/finfok.py
+1
-3
No files found.
l10n_mx_params_pac/pacs/finfok.py
View file @
086653fd
...
...
@@ -28,7 +28,6 @@ logger = logging.getLogger(__name__)
# described in its manual
_cancel_errors
=
{
"300"
:
"Usuario y contraseña inválidos"
,
"202"
:
"Esta intentando cancelar una factura que ya ha sido cancelada"
,
"203"
:
"No corresponde el RFC del Emisor y de quien solicita "
"la cancelación"
,
"205"
:
"UUID No existe"
,
...
...
@@ -37,7 +36,6 @@ _cancel_errors = {
"'711"
:
"Error con el certificado al cancelar"
,
"712"
:
"El número de noCertificado es diferente al del número de"
"certificado del atributo certificado"
,
"no_cancelable"
:
"El UUID contiene CFDI relacionados"
,
}
...
...
@@ -183,7 +181,7 @@ class ParamsPac(models.Model):
cancel_answer
=
PacCancelAnswer
(
folio
.
UUID
,
folio
.
EstatusUUID
,
folio
.
EstatusCancelacion
)
if
cancel_answer
.
estatus
not
in
[
"200"
,
"201"
,
"202"
]:
if
cancel_answer
.
estatus
not
in
[
"200"
,
"201"
,
"202"
,
"no_cancelable"
]:
raise
pac_exceptions
.
CancelError
(
cancel_answer
.
estatus
,
_cancel_errors
.
get
(
cancel_answer
.
estatus
,
""
),
)
...
...
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