Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Maria Agustina
/
tpv_correcciones
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
1
Wiki
Network
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit c1fdf6b0
authored
2024-10-26 16:24:05 -0300
by
Juan
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Se quita el requisito de impresora fiscal
1 parent
63aab867
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletions
models/comprobante.py
models/comprobante.py
View file @
c1fdf6b
...
...
@@ -158,7 +158,11 @@ class asw_comprobante(models.Model):
def
CorrejirFacturaSinCAE
(
self
):
if
not
self
.
env
.
user
.
has_group
(
"tpv_correcciones.module_category_tpv_corrector_electronica_admin"
):
raise
Warning
(
"No tenes permiso para correjir facturas"
)
if
self
.
comp_talonario
.
tal_es_fe
==
False
:
try
:
electronica
=
self
.
comp_talonario
.
tal_es_fe
except
:
electronica
=
self
.
comp_talonario
.
tal_ptv_id
.
ptv_type
==
'electronica'
if
electronica
==
False
:
raise
Warning
(
"No es factura electronica, no puedo hacer nada"
)
if
not
self
.
afip_auth_code_due
==
False
:
raise
Warning
(
"Esta factura ya fue Autorizada en AFIP, si no ves el CAE, por favor reporte a soporte"
)
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
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 post a comment