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-29 11:36:05 -0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
d49151d207a6998efd6d3712080887c7a4886512
d49151d2
1 parent
8d0ce4bf
se agregaron valores en elementos nuevos
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
13 deletions
project/apps/edicto/migrations/0002_rename_monto_comprobantepago_monto_descuento_and_more.py → project/apps/edicto/migrations/0002_remove_comprobantepago_monto_and_more.py
project/apps/edicto/models.py
project/apps/edicto/migrations/0002_re
name_monto_comprobantepago_monto_descue
nto_and_more.py → project/apps/edicto/migrations/0002_re
move_comprobantepago_mo
nto_and_more.py
View file @
d49151d
# Generated by Django 4.1.9 on 2023-09-29 1
0:02
# Generated by Django 4.1.9 on 2023-09-29 1
4:34
from
django.db
import
migrations
,
models
...
...
@@ -10,33 +10,35 @@ class Migration(migrations.Migration):
]
operations
=
[
migrations
.
Re
nam
eField
(
migrations
.
Re
mov
eField
(
model_name
=
'comprobantepago'
,
old_name
=
'monto'
,
new_name
=
'monto_descuento'
,
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
(),
preserve_default
=
False
,
field
=
models
.
FloatField
(
editable
=
False
,
null
=
True
),
),
migrations
.
AddField
(
model_name
=
'comprobantepago'
,
name
=
'monto_total'
,
field
=
models
.
FloatField
(),
preserve_default
=
False
,
field
=
models
.
FloatField
(
editable
=
False
,
null
=
True
),
),
migrations
.
AddField
(
model_name
=
'edicto'
,
name
=
'tiene_descuento'
,
field
=
models
.
BooleanField
(
editable
=
False
),
field
=
models
.
BooleanField
(
default
=
False
,
editable
=
False
),
preserve_default
=
False
,
),
migrations
.
AddField
(
model_name
=
'precio'
,
name
=
'precio_dia'
,
field
=
models
.
FloatField
(
max_length
=
50
),
field
=
models
.
FloatField
(
default
=
90
,
max_length
=
50
),
preserve_default
=
False
,
),
migrations
.
AlterField
(
...
...
project/apps/edicto/models.py
View file @
d49151d
...
...
@@ -60,9 +60,9 @@ class ComprobantePago(models.Model):
verbose_name
=
'ComprobantePago'
verbose_name_plural
=
'ComprobantesPagos'
monto_subtotal
=
models
.
FloatField
()
monto_total
=
models
.
FloatField
()
monto_descuento
=
models
.
FloatField
()
monto_subtotal
=
models
.
FloatField
(
editable
=
False
,
null
=
True
)
monto_total
=
models
.
FloatField
(
editable
=
False
,
null
=
True
)
monto_descuento
=
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