feat: add fields to SaleLine.
This commit is contained in:
parent
1fa9b8dc9f
commit
1a9f9d4063
@ -0,0 +1,31 @@
|
||||
# Generated by Django 5.0.6 on 2024-06-22 18:56
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('don_confiao', '0005_saleline_sale'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='saleline',
|
||||
name='description',
|
||||
field=models.CharField(default='', max_length=255),
|
||||
preserve_default=False,
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='saleline',
|
||||
name='product',
|
||||
field=models.CharField(default='', max_length=100),
|
||||
preserve_default=False,
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='saleline',
|
||||
name='unit_price',
|
||||
field=models.DecimalField(decimal_places=2, default=0.0, max_digits=9),
|
||||
preserve_default=False,
|
||||
),
|
||||
]
|
@ -12,4 +12,7 @@ class Sale(models.Model):
|
||||
class SaleLine(models.Model):
|
||||
|
||||
sale = models.ForeignKey(Sale, on_delete=models.CASCADE)
|
||||
product = models.CharField(max_length=100)
|
||||
quantity = models.IntegerField(null=True)
|
||||
unit_price = models.DecimalField(max_digits=9, decimal_places=2)
|
||||
description = models.CharField(max_length=255)
|
||||
|
Loading…
Reference in New Issue
Block a user