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 e1da5f8b
authored
2022-01-20 11:12:59 -0300
by
Juan
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Se saca la dependencia de turnos
1 parent
51fd5c17
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
6 deletions
wizard/cobro_discriminado.py
wizard/vista_cobro_discriminado.xml
wizard/cobro_discriminado.py
View file @
e1da5f8
...
@@ -287,7 +287,7 @@ class hgt_cobro_multiple(models.TransientModel):
...
@@ -287,7 +287,7 @@ class hgt_cobro_multiple(models.TransientModel):
def
agregar_efectivo
(
self
):
def
agregar_efectivo
(
self
):
if
self
.
pcw_efectivo
!=
0
:
if
self
.
pcw_efectivo
!=
0
:
efectivo
=
self
.
env
[
'asw.tipos_valores'
]
.
search
([(
'tv_tipo'
,
'='
,
'ef'
)])
efectivo
=
self
.
env
[
'asw.tipos_valores'
]
.
search
([(
'tv_tipo'
,
'='
,
'ef'
)])
self
.
pcw_recibo
.
agregar_valor
(
self
.
pcw_efectivo
,
efectivo
,
self
.
env
.
user
.
turno
.
caja
.
id
)
self
.
pcw_recibo
.
agregar_valor
(
self
.
pcw_efectivo
,
efectivo
,
self
.
env
.
caja_efectivo
.
id
)
def
agregar_retencion
(
self
):
def
agregar_retencion
(
self
):
if
(
len
(
self
.
pcw_retenciones
)
==
0
):
if
(
len
(
self
.
pcw_retenciones
)
==
0
):
...
@@ -297,12 +297,9 @@ class hgt_cobro_multiple(models.TransientModel):
...
@@ -297,12 +297,9 @@ class hgt_cobro_multiple(models.TransientModel):
def
agregar_cheques_recibidos
(
self
):
def
agregar_cheques_recibidos
(
self
):
if
(
len
(
self
.
pcw_chq_resiv2
)
>
0
):
if
(
len
(
self
.
pcw_chq_resiv2
)
>
0
):
print
(
"cszdfcvaszdcv"
)
cheque_recibido
=
self
.
env
[
'asw.tipos_valores'
]
.
search
([(
'tv_tipo'
,
'='
,
'chr'
)])
cheque_recibido
=
self
.
env
[
'asw.tipos_valores'
]
.
search
([(
'tv_tipo'
,
'='
,
'chr'
)])
for
cheque
in
self
.
pcw_chq_resiv2
:
for
cheque
in
self
.
pcw_chq_resiv2
:
print
(
cheque
,
cheque_recibido
,
self
.
env
.
user
.
turno
.
caja
.
id
)
self
.
pcw_recibo
.
agregar_cheque
(
cheque
,
cheque_recibido
,
self
.
caja_cheque
.
id
)
self
.
pcw_recibo
.
agregar_cheque
(
cheque
,
cheque_recibido
,
self
.
env
.
user
.
turno
.
caja
.
id
)
def
agregar_transferencias_recibidas
(
self
):
def
agregar_transferencias_recibidas
(
self
):
transferencia_recibida
=
self
.
env
[
'asw.tipos_valores'
]
.
search
([(
'tv_tipo'
,
'='
,
'trr'
)])
transferencia_recibida
=
self
.
env
[
'asw.tipos_valores'
]
.
search
([(
'tv_tipo'
,
'='
,
'trr'
)])
...
...
wizard/vista_cobro_discriminado.xml
View file @
e1da5f8
...
@@ -53,6 +53,7 @@
...
@@ -53,6 +53,7 @@
</field>
</field>
</group>
</group>
</page>
</page>
<!--
<page string="Tarjetas">
<page string="Tarjetas">
<group col="4">
<group col="4">
<field name="pcw_tarjetas" colspan='4' nolabel='1' widget='one2many' >
<field name="pcw_tarjetas" colspan='4' nolabel='1' widget='one2many' >
...
@@ -65,7 +66,7 @@
...
@@ -65,7 +66,7 @@
</field>
</field>
</group>
</group>
</page>
</page>
-->
<page
string=
"Retenciones"
>
<page
string=
"Retenciones"
>
<group
col=
"4"
>
<group
col=
"4"
>
<field
name=
"pcw_retenciones"
colspan=
'4'
nolabel=
'1'
widget=
'one2many'
>
<field
name=
"pcw_retenciones"
colspan=
'4'
nolabel=
'1'
widget=
'one2many'
>
...
...
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