changes
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,49 @@
|
|||||||
|
# Generated by Django 5.1.7 on 2026-01-26 08:24
|
||||||
|
|
||||||
|
import django.db.models.deletion
|
||||||
|
from django.db import migrations, models
|
||||||
|
|
||||||
|
|
||||||
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
|
('app', '0366_payment_schedule_batch_date'),
|
||||||
|
]
|
||||||
|
|
||||||
|
operations = [
|
||||||
|
migrations.AddField(
|
||||||
|
model_name='dealer',
|
||||||
|
name='batch_date',
|
||||||
|
field=models.DateTimeField(null=True),
|
||||||
|
),
|
||||||
|
migrations.AddField(
|
||||||
|
model_name='dealer',
|
||||||
|
name='commission_amount',
|
||||||
|
field=models.DecimalField(decimal_places=2, max_digits=15, null=True),
|
||||||
|
),
|
||||||
|
migrations.AddField(
|
||||||
|
model_name='dealer',
|
||||||
|
name='commission_remain',
|
||||||
|
field=models.DecimalField(decimal_places=2, max_digits=15, null=True),
|
||||||
|
),
|
||||||
|
migrations.AddField(
|
||||||
|
model_name='dealer',
|
||||||
|
name='pay_commission',
|
||||||
|
field=models.DecimalField(decimal_places=2, max_digits=15, null=True),
|
||||||
|
),
|
||||||
|
migrations.AddField(
|
||||||
|
model_name='dealer',
|
||||||
|
name='pay_sale',
|
||||||
|
field=models.DecimalField(decimal_places=2, max_digits=15, null=True),
|
||||||
|
),
|
||||||
|
migrations.AddField(
|
||||||
|
model_name='dealer',
|
||||||
|
name='sale_amount',
|
||||||
|
field=models.DecimalField(decimal_places=2, max_digits=15, null=True),
|
||||||
|
),
|
||||||
|
migrations.AlterField(
|
||||||
|
model_name='product_booked',
|
||||||
|
name='transaction',
|
||||||
|
field=models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, related_name='transbk', to='app.transaction'),
|
||||||
|
),
|
||||||
|
]
|
||||||
18
app/migrations/0368_dealer_count_sale.py
Normal file
18
app/migrations/0368_dealer_count_sale.py
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
# Generated by Django 5.1.7 on 2026-01-26 09:47
|
||||||
|
|
||||||
|
from django.db import migrations, models
|
||||||
|
|
||||||
|
|
||||||
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
|
('app', '0367_dealer_batch_date_dealer_commission_amount_and_more'),
|
||||||
|
]
|
||||||
|
|
||||||
|
operations = [
|
||||||
|
migrations.AddField(
|
||||||
|
model_name='dealer',
|
||||||
|
name='count_sale',
|
||||||
|
field=models.IntegerField(null=True),
|
||||||
|
),
|
||||||
|
]
|
||||||
@@ -784,6 +784,13 @@ class Dealer(AutoCodeModel):
|
|||||||
phone = models.CharField(max_length=20, null=True, db_index=True)
|
phone = models.CharField(max_length=20, null=True, db_index=True)
|
||||||
email = models.CharField(max_length=50, null=True)
|
email = models.CharField(max_length=50, null=True)
|
||||||
address = models.CharField(max_length=255, null=True)
|
address = models.CharField(max_length=255, null=True)
|
||||||
|
sale_amount = models.DecimalField(max_digits=15, decimal_places=2,null=True)
|
||||||
|
pay_sale = models.DecimalField(max_digits=15, decimal_places=2,null=True)
|
||||||
|
commission_amount = models.DecimalField(max_digits=15, decimal_places=2,null=True)
|
||||||
|
pay_commission = models.DecimalField(max_digits=15, decimal_places=2,null=True)
|
||||||
|
commission_remain = models.DecimalField(max_digits=15, decimal_places=2,null=True)
|
||||||
|
batch_date = models.DateTimeField(null=True)
|
||||||
|
count_sale = models.IntegerField(null=True)
|
||||||
create_time = models.DateTimeField(null=True, auto_now_add=True)
|
create_time = models.DateTimeField(null=True, auto_now_add=True)
|
||||||
update_time = models.DateTimeField(null=True, auto_now=True)
|
update_time = models.DateTimeField(null=True, auto_now=True)
|
||||||
|
|
||||||
@@ -1460,7 +1467,7 @@ class Transaction_File(models.Model):
|
|||||||
|
|
||||||
class Product_Booked(models.Model):
|
class Product_Booked(models.Model):
|
||||||
product = models.OneToOneField(Product, null=False, related_name='prdbk', on_delete=models.PROTECT)
|
product = models.OneToOneField(Product, null=False, related_name='prdbk', on_delete=models.PROTECT)
|
||||||
transaction = models.ForeignKey(Transaction, null=False, related_name='+', on_delete=models.PROTECT)
|
transaction = models.ForeignKey(Transaction, null=False, related_name='transbk', on_delete=models.PROTECT)
|
||||||
create_time = models.DateTimeField(null=True, auto_now_add=True)
|
create_time = models.DateTimeField(null=True, auto_now_add=True)
|
||||||
update_time = models.DateTimeField(null=True, auto_now=True)
|
update_time = models.DateTimeField(null=True, auto_now=True)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user