Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Marta Miranda
/
boletin_api
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
Enzo Yair
2023-09-27 10:07:22 -0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
7eeca9ff02e8ce6740226944b9012d75a83a9e23
7eeca9ff
1 parent
f1ef435d
filtros
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
19 deletions
project/apps/edicto/migrations/0005_remove_comprobantepago_monto_and_more.py → project/apps/edicto/migrations/0005_alter_comprobantepago_monto_alter_edicto_creado_por.py
project/apps/edicto/models.py
project/apps/edicto/migrations/0005_
remove_comprobantepago_monto_and_more
.py → project/apps/edicto/migrations/0005_
alter_comprobantepago_monto_alter_edicto_creado_por
.py
View file @
7eeca9f
# Generated by Django 4.1.9 on 2023-09-27 13:0
2
# Generated by Django 4.1.9 on 2023-09-27 13:0
6
from
django.conf
import
settings
from
django.db
import
migrations
,
models
...
...
@@ -13,23 +13,9 @@ class Migration(migrations.Migration):
]
operations
=
[
migrations
.
Remove
Field
(
migrations
.
Alter
Field
(
model_name
=
'comprobantepago'
,
name
=
'monto'
,
),
migrations
.
AddField
(
model_name
=
'comprobantepago'
,
name
=
'monto_descuento'
,
field
=
models
.
FloatField
(
editable
=
False
,
null
=
True
),
),
migrations
.
AddField
(
model_name
=
'comprobantepago'
,
name
=
'monto_subtotal'
,
field
=
models
.
FloatField
(
editable
=
False
,
null
=
True
),
),
migrations
.
AddField
(
model_name
=
'comprobantepago'
,
name
=
'monto_total'
,
field
=
models
.
FloatField
(
editable
=
False
,
null
=
True
),
),
migrations
.
AlterField
(
...
...
project/apps/edicto/models.py
View file @
7eeca9f
...
...
@@ -58,9 +58,7 @@ class ComprobantePago(models.Model):
verbose_name
=
'ComprobantePago'
verbose_name_plural
=
'ComprobantesPagos'
monto_total
=
models
.
FloatField
(
editable
=
False
,
null
=
True
)
monto_subtotal
=
models
.
FloatField
(
editable
=
False
,
null
=
True
)
monto_descuento
=
models
.
FloatField
(
editable
=
False
,
null
=
True
)
monto
=
models
.
FloatField
(
editable
=
False
,
null
=
True
)
numero_comprobante
=
models
.
CharField
(
max_length
=
300
,
blank
=
True
,
null
=
True
)
fecha_pago
=
models
.
DateTimeField
(
blank
=
True
,
null
=
True
)
edicto
=
models
.
OneToOneField
(
Edicto
,
on_delete
=
models
.
CASCADE
)
...
...
Please
register
or
login
to post a comment