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
5271509b
Commit
5271509b
authored
6 years ago
by
Cuauhtémoc Díaz Minor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
style(finkok): pylint analysis
parent
c925d223
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
6 deletions
+3
-6
l10n_mx_params_pac/pacs/finfok.py
l10n_mx_params_pac/pacs/finfok.py
+3
-6
No files found.
l10n_mx_params_pac/pacs/finfok.py
View file @
5271509b
...
...
@@ -93,7 +93,8 @@ class ParamsPac(models.Model):
factura_mx_type__fc
.
update
({
"pac_finkok"
:
self
.
consult_cfdi_finkok_2
})
return
factura_mx_type__fc
def
create_header
(
self
,
method
):
@
classmethod
def
create_header
(
cls
,
method
):
return
{
"SOAPAction"
:
"%s"
%
(
_ACTIONS
[
method
]),
"Content-Type"
:
"text/xml; charset=utf-8"
...
...
@@ -223,11 +224,7 @@ class ParamsPac(models.Model):
)
_logger
.
info
(
res
)
folio
=
res
.
sat
try
:
estatus_cancelacion
=
folio
[
"EstatusCancelacion"
]
except
Exception
as
e
:
_logger
.
info
(
e
)
estatus_cancelacion
=
""
estatus_cancelacion
=
folio
[
"EstatusCancelacion"
]
or
""
estado_cfdi
=
folio
[
"Estado"
]
consult_answer
=
PacConsultAnswer
(
uuid
,
estado_cfdi
,
estatus_cancelacion
)
return
consult_answer
...
...
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