add new fields (trans-date, pos-date, rancher)
This commit is contained in:
@@ -0,0 +1,33 @@
|
|||||||
|
# Generated by Django 5.0 on 2025-09-28 10:07
|
||||||
|
|
||||||
|
from django.db import migrations, models
|
||||||
|
|
||||||
|
|
||||||
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
|
('warehouse', '0034_inventoryquotasaleitem_livestock_statistic'),
|
||||||
|
]
|
||||||
|
|
||||||
|
operations = [
|
||||||
|
migrations.AddField(
|
||||||
|
model_name='inventoryquotasaletransaction',
|
||||||
|
name='pos_date',
|
||||||
|
field=models.PositiveBigIntegerField(default=0),
|
||||||
|
),
|
||||||
|
migrations.AddField(
|
||||||
|
model_name='inventoryquotasaletransaction',
|
||||||
|
name='rancher_fullname',
|
||||||
|
field=models.CharField(max_length=150, null=True),
|
||||||
|
),
|
||||||
|
migrations.AddField(
|
||||||
|
model_name='inventoryquotasaletransaction',
|
||||||
|
name='rancher_mobile',
|
||||||
|
field=models.CharField(max_length=25, null=True),
|
||||||
|
),
|
||||||
|
migrations.AddField(
|
||||||
|
model_name='inventoryquotasaletransaction',
|
||||||
|
name='transaction_date',
|
||||||
|
field=models.DateTimeField(auto_now_add=True, null=True),
|
||||||
|
),
|
||||||
|
]
|
||||||
@@ -64,6 +64,8 @@ class InventoryQuotaSaleTransaction(BaseModel):
|
|||||||
related_name='transactions',
|
related_name='transactions',
|
||||||
null=True
|
null=True
|
||||||
)
|
)
|
||||||
|
rancher_fullname = models.CharField(max_length=150, null=True)
|
||||||
|
rancher_mobile = models.CharField(max_length=25, null=True)
|
||||||
pos_device = models.ForeignKey(
|
pos_device = models.ForeignKey(
|
||||||
Device,
|
Device,
|
||||||
on_delete=models.CASCADE,
|
on_delete=models.CASCADE,
|
||||||
@@ -119,6 +121,8 @@ class InventoryQuotaSaleTransaction(BaseModel):
|
|||||||
ref_num = models.CharField(max_length=50, null=True)
|
ref_num = models.CharField(max_length=50, null=True)
|
||||||
terminal = models.CharField(max_length=50, null=True)
|
terminal = models.CharField(max_length=50, null=True)
|
||||||
payer_cart = models.CharField(max_length=50, null=True)
|
payer_cart = models.CharField(max_length=50, null=True)
|
||||||
|
pos_date = models.PositiveBigIntegerField(default=0)
|
||||||
|
transaction_date = models.DateTimeField(auto_now_add=True, null=True)
|
||||||
free_sale_state = models.BooleanField(default=False)
|
free_sale_state = models.BooleanField(default=False)
|
||||||
pre_sale_state = models.BooleanField(default=False)
|
pre_sale_state = models.BooleanField(default=False)
|
||||||
additional = models.JSONField(default=dict)
|
additional = models.JSONField(default=dict)
|
||||||
|
|||||||
Reference in New Issue
Block a user