Add field to installation report
This commit is contained in:
		
							parent
							
								
									0f66e897a1
								
							
						
					
					
						commit
						c90e19daaa
					
				
					 10 changed files with 259 additions and 61 deletions
				
			
		| 
						 | 
				
			
			@ -55,6 +55,12 @@ class InstallationReport(BaseModel):
 | 
			
		|||
    ]
 | 
			
		||||
    meter_model = models.CharField(max_length=20, choices=METER_MODEL_CHOICES, null=True, blank=True, verbose_name='مدل کنتور')
 | 
			
		||||
    meter_size = models.CharField(max_length=50, null=True, blank=True, verbose_name='سایز کنتور')
 | 
			
		||||
    meter_reading = models.DecimalField(max_digits=10, decimal_places=4, null=True, blank=True, validators=[MinValueValidator(Decimal('0'))], verbose_name='عدد کنتور (متر مکعب)')
 | 
			
		||||
    meter_charge = models.DecimalField(max_digits=10, decimal_places=4, null=True, blank=True, validators=[MinValueValidator(Decimal('0'))], verbose_name='شارژ کنتور (متر مکعب)')
 | 
			
		||||
    meter_charge_expiration_date = models.DateField(null=True, blank=True, verbose_name='تاریخ پایان اعتبار شارژ')
 | 
			
		||||
    is_panel_sealed = models.BooleanField(default=False, verbose_name='پلمپ تابلو')
 | 
			
		||||
    is_panel_cut = models.BooleanField(default=False, verbose_name='تابلو قطع')
 | 
			
		||||
    is_disconnection_done = models.BooleanField(default=False, verbose_name='انجام عملیات قطع')
 | 
			
		||||
    discharge_pipe_diameter = models.DecimalField(max_digits=10, decimal_places=4, null=True, blank=True, verbose_name='قطر لوله آبده (اینچ)')
 | 
			
		||||
    USAGE_TYPE_CHOICES = [
 | 
			
		||||
        ('domestic', 'شرب و خدمات'),
 | 
			
		||||
| 
						 | 
				
			
			@ -64,8 +70,7 @@ class InstallationReport(BaseModel):
 | 
			
		|||
    usage_type = models.CharField(max_length=20, choices=USAGE_TYPE_CHOICES, null=True, verbose_name='نوع مصرف')
 | 
			
		||||
    exploitation_license_number = models.CharField(max_length=50, verbose_name='شماره پروانه بهرهبرداری چاه')
 | 
			
		||||
    motor_power = models.DecimalField(max_digits=10, decimal_places=4, null=True, blank=True, verbose_name='(کیلووات ساعت) قدرت موتور')
 | 
			
		||||
    pre_calibration_flow_rate = models.DecimalField(max_digits=10, decimal_places=4, null=True, blank=True, verbose_name='(لیتر بر ثانیه)دبی قبل از کالیبراسیون')
 | 
			
		||||
    post_calibration_flow_rate = models.DecimalField(max_digits=10, decimal_places=4, null=True, blank=True, verbose_name='(لیتر بر ثانیه)دبی بعد از کالیبراسیون')
 | 
			
		||||
    flow_rate = models.DecimalField(max_digits=10, decimal_places=4, null=True, blank=True, verbose_name='(لیتر بر ثانیه)دبی')
 | 
			
		||||
    water_meter_manufacturer = models.ForeignKey('wells.WaterMeterManufacturer', on_delete=models.SET_NULL, null=True, blank=True, verbose_name='شرکت سازنده کنتور آب')
 | 
			
		||||
    sim_number = models.CharField(max_length=20, null=True, blank=True, verbose_name='شماره سیمکارت')
 | 
			
		||||
    driving_force = models.CharField(max_length=50, null=True, blank=True, verbose_name='نیرو محرکه چاه')
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue