Add field to installation report
This commit is contained in:
		
							parent
							
								
									0f66e897a1
								
							
						
					
					
						commit
						c90e19daaa
					
				
					 10 changed files with 259 additions and 61 deletions
				
			
		| 
						 | 
				
			
			@ -22,7 +22,8 @@ class InstallationReportForm(forms.ModelForm):
 | 
			
		|||
            'visited_date', 'new_water_meter_serial', 'seal_number',
 | 
			
		||||
            'utm_x', 'utm_y', 'meter_type', 'meter_size', 'meter_model',
 | 
			
		||||
            'discharge_pipe_diameter', 'usage_type', 'exploitation_license_number',
 | 
			
		||||
            'motor_power', 'pre_calibration_flow_rate', 'post_calibration_flow_rate',
 | 
			
		||||
            'motor_power', 'flow_rate', 'meter_reading', 'meter_charge', 'meter_charge_expiration_date',
 | 
			
		||||
            'is_panel_sealed', 'is_panel_cut', 'is_disconnection_done',
 | 
			
		||||
            'water_meter_manufacturer', 'sim_number', 'driving_force',
 | 
			
		||||
            'is_meter_suspicious', 'description'
 | 
			
		||||
        ]
 | 
			
		||||
| 
						 | 
				
			
			@ -90,17 +91,24 @@ class InstallationReportForm(forms.ModelForm):
 | 
			
		|||
                'class': 'form-control',
 | 
			
		||||
                'required': True
 | 
			
		||||
            }),
 | 
			
		||||
            'pre_calibration_flow_rate': forms.NumberInput(attrs={
 | 
			
		||||
            'flow_rate': forms.NumberInput(attrs={
 | 
			
		||||
                'class': 'form-control',
 | 
			
		||||
                'min': '0',
 | 
			
		||||
                'step': '0.0001',
 | 
			
		||||
                'required': True
 | 
			
		||||
            }),
 | 
			
		||||
            'post_calibration_flow_rate': forms.NumberInput(attrs={
 | 
			
		||||
            'meter_reading': forms.NumberInput(attrs={
 | 
			
		||||
                'class': 'form-control',
 | 
			
		||||
                'min': '0',
 | 
			
		||||
                'step': '0.0001',
 | 
			
		||||
                'required': True
 | 
			
		||||
            }),
 | 
			
		||||
            'meter_charge': forms.NumberInput(attrs={
 | 
			
		||||
                'class': 'form-control',
 | 
			
		||||
                'min': '0',
 | 
			
		||||
                'step': '0.0001',
 | 
			
		||||
            }),
 | 
			
		||||
            'meter_charge_expiration_date': forms.DateInput(attrs={
 | 
			
		||||
                'type': 'date',
 | 
			
		||||
                'class': 'form-control',
 | 
			
		||||
            }),
 | 
			
		||||
            'water_meter_manufacturer': forms.Select(attrs={
 | 
			
		||||
                'class': 'form-select',
 | 
			
		||||
| 
						 | 
				
			
			@ -119,6 +127,15 @@ class InstallationReportForm(forms.ModelForm):
 | 
			
		|||
                'class': 'form-check-input',
 | 
			
		||||
                'id': 'id_is_meter_suspicious',
 | 
			
		||||
            }),
 | 
			
		||||
            'is_panel_sealed': forms.CheckboxInput(attrs={
 | 
			
		||||
                'class': 'form-check-input',
 | 
			
		||||
            }),
 | 
			
		||||
            'is_panel_cut': forms.CheckboxInput(attrs={
 | 
			
		||||
                'class': 'form-check-input',
 | 
			
		||||
            }),
 | 
			
		||||
            'is_disconnection_done': forms.CheckboxInput(attrs={
 | 
			
		||||
                'class': 'form-check-input',
 | 
			
		||||
            }),
 | 
			
		||||
            'description': forms.Textarea(attrs={
 | 
			
		||||
                'class': 'form-control',
 | 
			
		||||
                'rows': 3
 | 
			
		||||
| 
						 | 
				
			
			@ -137,12 +154,17 @@ class InstallationReportForm(forms.ModelForm):
 | 
			
		|||
            'usage_type': 'نوع مصرف',
 | 
			
		||||
            'exploitation_license_number': 'شماره پروانه بهرهبرداری',
 | 
			
		||||
            'motor_power': 'قدرت موتور (کیلووات ساعت)',
 | 
			
		||||
            'pre_calibration_flow_rate': 'دبی قبل از کالیبراسیون (لیتر بر ثانیه)',
 | 
			
		||||
            'post_calibration_flow_rate': 'دبی بعد از کالیبراسیون (لیتر بر ثانیه)',
 | 
			
		||||
            'flow_rate': 'دبی (لیتر بر ثانیه)',
 | 
			
		||||
            'meter_reading': 'عدد کنتور (متر مکعب)',
 | 
			
		||||
            'meter_charge': 'شارژ کنتور (متر مکعب)',
 | 
			
		||||
            'meter_charge_expiration_date': 'تاریخ پایان اعتبار شارژ',
 | 
			
		||||
            'water_meter_manufacturer': 'شرکت سازنده کنتور',
 | 
			
		||||
            'sim_number': 'شماره سیمکارت',
 | 
			
		||||
            'driving_force': 'نیرو محرکه چاه',
 | 
			
		||||
            'is_meter_suspicious': 'کنتور مشکوک است',
 | 
			
		||||
            'is_panel_sealed': 'پلمپ تابلو',
 | 
			
		||||
            'is_panel_cut': 'تابلو قطع',
 | 
			
		||||
            'is_disconnection_done': 'انجام عملیات قطع',
 | 
			
		||||
            'description': 'توضیحات'
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue