Add field to installation report
This commit is contained in:
parent
0f66e897a1
commit
c90e19daaa
10 changed files with 259 additions and 61 deletions
|
|
@ -0,0 +1,50 @@
|
|||
# Generated by Django 5.2.4 on 2025-10-27 03:42
|
||||
|
||||
import django.core.validators
|
||||
from decimal import Decimal
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('installations', '0011_alter_installationreport_discharge_pipe_diameter'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='installationreport',
|
||||
name='flow_rate',
|
||||
field=models.DecimalField(blank=True, decimal_places=4, max_digits=10, null=True, verbose_name='(لیتر بر ثانیه)دبی'),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='installationreport',
|
||||
name='is_disconnection_done',
|
||||
field=models.BooleanField(default=False, verbose_name='انجام عملیات قطع'),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='installationreport',
|
||||
name='is_panel_cut',
|
||||
field=models.BooleanField(default=False, verbose_name='تابلو قطع'),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='installationreport',
|
||||
name='is_panel_sealed',
|
||||
field=models.BooleanField(default=False, verbose_name='پلمپ تابلو'),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='installationreport',
|
||||
name='meter_charge',
|
||||
field=models.DecimalField(blank=True, decimal_places=4, max_digits=10, null=True, validators=[django.core.validators.MinValueValidator(Decimal('0'))], verbose_name='شارژ کنتور (متر مکعب)'),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='installationreport',
|
||||
name='meter_charge_expiration_date',
|
||||
field=models.DateField(blank=True, null=True, verbose_name='تاریخ پایان اعتبار شارژ'),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='installationreport',
|
||||
name='meter_reading',
|
||||
field=models.DecimalField(blank=True, decimal_places=4, max_digits=10, null=True, validators=[django.core.validators.MinValueValidator(Decimal('0'))], verbose_name='عدد کنتور (متر مکعب)'),
|
||||
),
|
||||
]
|
||||
|
|
@ -0,0 +1,21 @@
|
|||
# Generated by Django 5.2.4 on 2025-10-27 03:47
|
||||
|
||||
from django.db import migrations
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('installations', '0012_installationreport_flow_rate_and_more'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.RemoveField(
|
||||
model_name='installationreport',
|
||||
name='post_calibration_flow_rate',
|
||||
),
|
||||
migrations.RemoveField(
|
||||
model_name='installationreport',
|
||||
name='pre_calibration_flow_rate',
|
||||
),
|
||||
]
|
||||
Loading…
Add table
Add a link
Reference in a new issue