complete first version of main proccess
This commit is contained in:
		
							parent
							
								
									6ff4740d04
								
							
						
					
					
						commit
						f2fc2362a7
					
				
					 61 changed files with 3280 additions and 28 deletions
				
			
		| 
						 | 
				
			
			@ -43,6 +43,7 @@
 | 
			
		|||
          <tr>
 | 
			
		||||
            <th>شناسه</th>
 | 
			
		||||
            <th>فرآیند</th>
 | 
			
		||||
            <th>مرحله فعلی</th>
 | 
			
		||||
            <th>شماره اشتراک آب</th>
 | 
			
		||||
            <th>نماینده</th>
 | 
			
		||||
            <th>درخواستکننده</th>
 | 
			
		||||
| 
						 | 
				
			
			@ -57,6 +58,7 @@
 | 
			
		|||
          <tr>
 | 
			
		||||
            <td>{{ inst.code }}</td>
 | 
			
		||||
            <td>{{ inst.process.name }}</td>
 | 
			
		||||
            <td class="text-primary">{{ inst.current_step.name|default:"--" }}</td>
 | 
			
		||||
            <td>{{ inst.well.water_subscription_number }}</td>
 | 
			
		||||
            <td>{% if inst.representative %}{{ inst.representative.get_full_name }}{% else %}-{% endif %}</td>
 | 
			
		||||
            <td>{% if inst.requester %}{{ inst.requester.get_full_name }}{% else %}-{% endif %}</td>
 | 
			
		||||
| 
						 | 
				
			
			@ -247,6 +249,10 @@
 | 
			
		|||
                    <label class="form-label" for="id_account_number">{{ customer_form.account_number.label }}</label>
 | 
			
		||||
                    {{ customer_form.account_number }}
 | 
			
		||||
                  </div>
 | 
			
		||||
                  <div class="col-sm-6">
 | 
			
		||||
                    <label class="form-label" for="id_bank_name">{{ customer_form.bank_name.label }}</label>
 | 
			
		||||
                    {{ customer_form.bank_name }}
 | 
			
		||||
                  </div>
 | 
			
		||||
                  <div class="col-sm-12">
 | 
			
		||||
                    <label class="form-label" for="id_address">{{ customer_form.address.label }}</label>
 | 
			
		||||
                    {{ customer_form.address }}
 | 
			
		||||
| 
						 | 
				
			
			@ -426,6 +432,7 @@
 | 
			
		|||
        case 'phone_number_2': return '#id_phone_number_2';
 | 
			
		||||
        case 'card_number': return '#id_card_number';
 | 
			
		||||
        case 'account_number': return '#id_account_number';
 | 
			
		||||
        case 'bank_name': return '#id_bank_name';
 | 
			
		||||
        case 'address': return '#id_address';
 | 
			
		||||
        default: return '#id_' + field;
 | 
			
		||||
      }
 | 
			
		||||
| 
						 | 
				
			
			@ -549,6 +556,7 @@
 | 
			
		|||
              $('#id_phone_number_2').val(resp.user.profile.phone_number_2 || '');
 | 
			
		||||
              $('#id_card_number').val(resp.user.profile.card_number || '');
 | 
			
		||||
              $('#id_account_number').val(resp.user.profile.account_number || '');
 | 
			
		||||
              $('#id_bank_name').val(resp.user.profile.bank_name || '');
 | 
			
		||||
              $('#id_address').val(resp.user.profile.address || '');
 | 
			
		||||
            } else {
 | 
			
		||||
              $('#id_national_code').val(nc);
 | 
			
		||||
| 
						 | 
				
			
			@ -556,6 +564,7 @@
 | 
			
		|||
              $('#id_phone_number_2').val('');
 | 
			
		||||
              $('#id_card_number').val('');
 | 
			
		||||
              $('#id_account_number').val('');
 | 
			
		||||
              $('#id_bank_name').val('');
 | 
			
		||||
              $('#id_address').val('');
 | 
			
		||||
            }
 | 
			
		||||
            setStatus('#repStatus', 'نماینده یافت شد.', 'success');
 | 
			
		||||
| 
						 | 
				
			
			@ -570,6 +579,7 @@
 | 
			
		|||
            $('#id_phone_number_2').val('');
 | 
			
		||||
            $('#id_card_number').val('');
 | 
			
		||||
            $('#id_account_number').val('');
 | 
			
		||||
            $('#id_bank_name').val('');
 | 
			
		||||
            $('#id_address').val('');
 | 
			
		||||
            setStatus('#repStatus', 'نماینده یافت نشد. لطفا اطلاعات را تکمیل کنید.', 'danger');
 | 
			
		||||
          }
 | 
			
		||||
| 
						 | 
				
			
			@ -595,7 +605,7 @@
 | 
			
		|||
      formData.append('card_number', $('#id_card_number').val() || '');
 | 
			
		||||
      formData.append('account_number', $('#id_account_number').val() || '');
 | 
			
		||||
      formData.append('address', $('#id_address').val() || '');
 | 
			
		||||
 | 
			
		||||
      formData.append('bank_name', $('#id_bank_name').val() || '');
 | 
			
		||||
      // Include WellForm fields so edits are saved
 | 
			
		||||
      if ($('#wellFormBlock').is(':visible')) {
 | 
			
		||||
        formData.append('electricity_subscription_number', $('#id_electricity_subscription_number').val() || '');
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue