add some new fields to sale item
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
# Generated by Django 5.0 on 2025-09-22 06:24
|
||||
|
||||
import django.db.models.deletion
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('pos_device', '0074_stakeholders_default'),
|
||||
('warehouse', '0031_inventoryquotasaleitem_delivery_type_and_more'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.RenameField(
|
||||
model_name='inventoryquotasaleitem',
|
||||
old_name='product',
|
||||
new_name='gov_product',
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='inventoryquotasaleitem',
|
||||
name='free_product',
|
||||
field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='sale_items', to='pos_device.posfreeproducts'),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='inventoryquotasaletransaction',
|
||||
name='product_type',
|
||||
field=models.CharField(choices=[('gov', 'government'), ('free', 'free')], default='free', max_length=20),
|
||||
),
|
||||
]
|
||||
Reference in New Issue
Block a user