コード例 #1
0
ファイル: picode.py プロジェクト: njovujsh/crbdjango
    def join_field_rule(self, ret_all=False):
        self.results = {}
        self.ret_field = None

        self.pi_code = self.make_code(self.datacode)

        for field in self.extract():
            if (field == "PI_Identification_Code"):
                self.ret_field = [
                    enforcement.data_status()["mandatory"], "A6",
                    enfs.get_enf_by_number(68)
                ]
                self.update_result(self.results, self.pi_code.next(),
                                   self.ret_field, field)

            elif (field == "Institution_Type"):
                self.ret_field = [
                    enforcement.data_status()["mandatory"], "A3",
                    enfs.get_enf_by_number(69)
                ]
                self.update_result(self.results, self.pi_code.next(),
                                   self.ret_field, field)

            elif (field == "Institution_Name"):
                self.ret_field = [
                    enforcement.data_status()["mandatory"], "AS100",
                    enfs.get_enf_by_number(14)
                ]
                self.update_result(self.results, self.pi_code.next(),
                                   self.ret_field, field)

            elif (field == "License_Issuing_Date"):
                self.ret_field = [
                    enforcement.data_status()["mandatory"], "N8", {
                        "ENF": [
                            enfs.get_enf_by_number(14),
                            enfs.get_enf_by_number(7)
                        ]
                    }
                ]
                self.update_result(self.results, self.pi_code.next(),
                                   self.ret_field, field)
            else:
                pass
            if (ret_all == False):
                yield self.results

        yield self.results
コード例 #2
0
ファイル: piscode.py プロジェクト: njovujsh/crbdjango
 def join_field_rule(self, ret_all=False):
     self.results = {}
     self.ret_field = None 
     
     self.pi_code = self.make_code(self.datacode)
     for field in self.extract():
         try:
             if(field == "PI_Identification_Code"):
                 self.ret_field = [enfs.data_status()["mandatory"], "A6",
                                    enfs.get_enf_by_number(68)
                                    ]
                 self.update_result(self.results, self.pi_code.next(), self.ret_field, field) 
                 
             elif(field == "Stakeholder_Type"):
                 self.ret_field = [enfs.data_status()["mandatory"], "N1",
                                    enfs.get_enf_by_number(71)
                                    ]
                 self.update_result(self.results, self.pi_code.next(), self.ret_field, field) 
             
             elif(field == "Stakeholder_Category"):
                 self.ret_field = [enfs.data_status()["mandatory"], "N2",
                                    enfs.get_enf_by_number(43)
                                    ]
                 self.update_result(self.results, self.pi_code.next(), self.ret_field, field) 
             elif(field == "Shareholder_Percentage"):
                 self.ret_field = [enfs.data_status()["mandatory"], "D3.2",
                                    enfs.get_enf_by_number(37)
                                    ]
                 self.update_result(self.results, self.pi_code.next(), self.ret_field, field)
             else:
                 pass 
                 
             if (ret_all == False):
                 yield self.results
             
         except:
             raise 
              
     yield self.results 
コード例 #3
0
    def join_field_rule(self, ret_all=False):
        self.results = {}
        self.ret_field = None 
        
        self.pi_code = self.make_code(self.datacode)
        
        for field in self.extract():
            try:
                
                if(field == "PI_Identification_Code"):
                    self.ret_field = [enfs.data_status()["mandatory"], "A6",
                                       {"ENF":[enfs.get_enf_by_number(68), enfs.get_enf_by_number(94)]}
                                       ]
                    self.update_result(self.results, self.pi_code.next(), self.ret_field, field) 
                elif(field == "Branch_Identification_Code"):
                    self.ret_field = [enfs.data_status()["mandatory"], "N3",
                                       {"ENF":[enfs.get_enf_by_number(14), enfs.get_enf_by_number(94)]}
                                       ]
                    self.update_result(self.results, self.pi_code.next(), self.ret_field, field) 
                
                elif(field == "Borrowers_Client_Number"):
                    self.ret_field = [enfs.data_status()["mandatory"], "AS30",
                                       {"ENF":[enfs.get_enf_by_number(14), enfs.get_enf_by_number(94)]}
                                       ]
                    self.update_result(self.results, self.pi_code.next(), self.ret_field, field) 
                    
                elif(field == "Borrower_Account_Reference"):
                    self.ret_field = [enfs.data_status()["mandatory"], "AS30",
                                       enfs.get_enf_by_number(14)
                                       ]
                    self.update_result(self.results, self.pi_code.next(), self.ret_field, field)
                    
                elif(field == "Borrower_Classification"):
                    self.ret_field = [enfs.data_status()["mandatory"], "N1",
                                       enfs.get_enf_by_number(71)
                                       ]
                    self.update_result(self.results, self.pi_code.next(), self.ret_field, field)
                    
                elif(field == "Collateral_Type_Identification"):
                    self.ret_field = [enfs.data_status()["mandatory"], "N2",
                                       enfs.get_enf_by_number(47)
                                       ]
                    self.update_result(self.results, self.pi_code.next(), self.ret_field, field)
                    
                elif(field == "Collateral_Reference_Number"):
                    self.ret_field = [enfs.data_status()["mandatory"], "AS20",
                                       enfs.get_enf_by_number(14)
                                       ]
                    self.update_result(self.results, self.pi_code.next(), self.ret_field, field)
                elif(field == "Collateral_Description"):
                    self.ret_field = [enfs.data_status()["mandatory"], "AS1000",
                                       enfs.get_enf_by_number(14)
                                       ]
                    self.update_result(self.results, self.pi_code.next(), self.ret_field, field)
                    
                elif(field == "Collateral_Currency"):
                    self.ret_field = [enfs.data_status()["mandatory"], "A3",
                                       {"ENF":[enfs.get_enf_by_number(14), enfs.get_enf_by_number(50)]}
                                       ]
                    self.update_result(self.results, self.pi_code.next(), self.ret_field, field)
                    
                elif(field == "Collateral_Open_Market_Value"):
                    self.ret_field = [enfs.data_status()["mandatory"], "N21",
                                       enfs.get_enf_by_number(14)
                                       ]
                    self.update_result(self.results, self.pi_code.next(), self.ret_field, field)
                    
                elif(field == "Collateral_Forced_Sale_Value"):
                    self.ret_field = [enfs.data_status()["mandatory"], "N21",
                                       enfs.get_enf_by_number(14)
                                       ]
                    self.update_result(self.results, self.pi_code.next(), self.ret_field, field)
                elif(field == "Collateral_Valuation_Expiry_Date"):
                    self.ret_field = [enfs.data_status()["mandatory"], "N8",
                                       {"ENF":[enfs.get_enf_by_number(14), enfs.get_enf_by_number(7)]}
                                       ]
                    self.update_result(self.results, self.pi_code.next(), self.ret_field, field)
                elif(field == "Instrument_of_Claim"):
                    self.ret_field = [enfs.data_status()["mandatory"], "A30",
                                       enfs.get_enf_by_number(14)
                                       ]
                    self.update_result(self.results, self.pi_code.next(), self.ret_field, field)
                    
                elif(field == "Valuation_Date"):
                    self.ret_field = [enfs.data_status()["mandatory"], "N8",
                                       {"ENF":[enfs.get_enf_by_number(14), enfs.get_enf_by_number(63), enfs.get_enf_by_number(7)]}
                                       ]
                    self.update_result(self.results, self.pi_code.next(), self.ret_field, field)
                    
                else:
                    pass 
                if (ret_all == False):
                    yield self.results
                     
            except:
                raise  

        yield self.results 
コード例 #4
0
ファイル: capcode.py プロジェクト: njovujsh/crbdjango
    def join_field_rule(self, ret_all=False):
        self.results = {}
        self.ret_field = None

        self.pi_code = self.make_code(self.datacode)

        for field in self.extract():
            try:

                if (field == "PI_Identification_Code"):
                    self.ret_field = [
                        enfs.data_status()["mandatory"], "A6",
                        enfs.get_enf_by_number(68)
                    ]
                    self.update_result(self.results, self.pi_code.next(),
                                       self.ret_field, field)
                elif (field == "Branch_Identification_Code"):
                    self.ret_field = [
                        enfs.data_status()["mandatory"], "N3",
                        enfs.get_enf_by_number(14)
                    ]
                    self.update_result(self.results, self.pi_code.next(),
                                       self.ret_field, field)

                elif (field == "Client_Number"):
                    self.ret_field = [
                        enfs.data_status()["optional"], "AS30",
                        enfs.get_enf_by_number(14)
                    ]
                    self.update_result(self.results, self.pi_code.next(),
                                       self.ret_field, field)

                elif (field == "Credit_Application_Reference"):
                    self.ret_field = [
                        enfs.data_status()["mandatory"], "AS30",
                        enfs.get_enf_by_number(14)
                    ]
                    self.update_result(self.results, self.pi_code.next(),
                                       self.ret_field, field)

                elif (field == "Applicant_Classification"):
                    self.ret_field = [
                        enfs.data_status()["mandatory"], "N1",
                        enfs.get_enf_by_number(71)
                    ]
                    self.update_result(self.results, self.pi_code.next(),
                                       self.ret_field, field)

                elif (field == "Credit_Application_Date"):
                    self.ret_field = [
                        enfs.data_status()["mandatory"], "N8", {
                            "ENF": [
                                enfs.get_enf_by_number(14),
                                enfs.get_enf_by_number(5),
                                enfs.get_enf_by_number(7)
                            ]
                        }
                    ]
                    self.update_result(self.results, self.pi_code.next(),
                                       self.ret_field, field)

                elif (field == "Amount"):
                    self.ret_field = [
                        enfs.data_status()["mandatory"], "N21",
                        enfs.get_enf_by_number(14)
                    ]
                    self.update_result(self.results, self.pi_code.next(),
                                       self.ret_field, field)
                elif (field == "Currency"):
                    self.ret_field = [
                        enfs.data_status()["mandatory"], "A3", {
                            "ENF": [
                                enfs.get_enf_by_number(14),
                                enfs.get_enf_by_number(50)
                            ]
                        }
                    ]
                    self.update_result(self.results, self.pi_code.next(),
                                       self.ret_field, field)

                elif (field == "Credit_Account_or_Loan_Product_Type"):
                    self.ret_field = [
                        enfs.data_status()["mandatory"], "N2",
                        enfs.get_enf_by_number(61)
                    ]
                    self.update_result(self.results, self.pi_code.next(),
                                       self.ret_field, field)

                elif (field == "Credit_Application_Status"):
                    self.ret_field = [
                        enfs.data_status()["mandatory"], "N1",
                        enfs.get_enf_by_number(41)
                    ]
                    self.update_result(self.results, self.pi_code.next(),
                                       self.ret_field, field)

                elif (field == "Last_Status_Change_Date"):
                    self.ret_field = [
                        enfs.data_status()["mandatory"], "N8", {
                            "ENF": [
                                enfs.get_enf_by_number(14),
                                enfs.get_enf_by_number(63),
                                enfs.get_enf_by_number(7)
                            ]
                        }
                    ]
                    self.update_result(self.results, self.pi_code.next(),
                                       self.ret_field, field)

                elif (field == "Credit_Application_Duration"):
                    self.ret_field = [
                        enfs.data_status()["mandatory"], "N5",
                        enfs.get_enf_by_number(14)
                    ]
                    self.update_result(self.results, self.pi_code.next(),
                                       self.ret_field, field)

                elif (field == "Rejection_Reason"):
                    self.ret_field = [
                        enfs.data_status()["conditional"], "N2", {
                            "ENF": [
                                enfs.get_enf_by_number(42),
                                enfs.get_enf_by_number(64)
                            ]
                        }
                    ]
                    self.update_result(self.results, self.pi_code.next(),
                                       self.ret_field, field)

                elif (field == "Client_Consent_flag"):
                    self.ret_field = [
                        enfs.data_status()["mandatory"], "A1",
                        enfs.get_enf_by_number(78)
                    ]
                    self.update_result(self.results, self.pi_code.next(),
                                       self.ret_field, field)
                else:
                    pass
                if (ret_all == False):
                    yield self.results

            except:
                raise

        yield self.results
コード例 #5
0
    def join_field_rule(self, ret_all=False):
        self.results = {}
        self.ret_field = None

        self.pi_code = self.make_code(self.datacode)

        for field in self.extract():
            try:
                if (field == "EI_Employment_Type"):
                    self.ret_field = [
                        enfs.data_status()["conditional"], "A1", {
                            "ENF": [
                                enfs.get_enf_by_number(35),
                                enfs.get_enf_by_number(85)
                            ]
                        }
                    ]
                    self.update_result(self.results, self.pi_code.next(),
                                       self.ret_field, field)

                elif (field == "EI_Primary_Occupation"):
                    self.ret_field = [
                        enfs.data_status()["conditional"], "AS100",
                        enfs.get_enf_by_number(66)
                    ]
                    self.update_result(self.results, self.pi_code.next(),
                                       self.ret_field, field)

                elif (field == "EI_Employer_Name"):
                    self.ret_field = [
                        enfs.data_status()["conditional"], "AS100",
                        enfs.get_enf_by_number(66)
                    ]
                    self.update_result(self.results, self.pi_code.next(),
                                       self.ret_field, field)

                elif (field == "EI_Employee_Number"):
                    self.ret_field = [
                        enfs.data_status()["conditional"], "AS20", True
                    ]
                    self.update_result(self.results, self.pi_code.next(),
                                       self.ret_field, field)
                elif (field == "EI_Employment_Date"):
                    self.ret_field = [
                        enfs.data_status()["conditional"], "N8",
                        enfs.get_enf_by_number(5)
                    ]
                    self.update_result(self.results, self.pi_code.next(),
                                       self.ret_field, field)
                elif (field == "EI_Income_Band"):
                    self.ret_field = [
                        enfs.data_status()["conditional"], "N2", {
                            "ENF": [
                                enfs.get_enf_by_number(66),
                                enfs.get_enf_by_number(53)
                            ]
                        }
                    ]
                    self.update_result(self.results, self.pi_code.next(),
                                       self.ret_field, field)
                elif (field == "EI_Salary_Frequency"):
                    self.ret_field = [
                        enfs.data_status()["conditional"], "N2", {
                            "ENF": [
                                enfs.get_enf_by_number(66),
                                enfs.get_enf_by_number(59)
                            ]
                        }
                    ]
                    self.update_result(self.results, self.pi_code.next(),
                                       self.ret_field, field)

                else:
                    pass
                if (ret_all == False):
                    yield self.results
            except:
                raise
コード例 #6
0
ファイル: pcicode.py プロジェクト: njovujsh/crbdjango
 def join_field_rule(self, ret_all=False):
     
     self.results = {}
     self.ret_field = None 
     
     self.pi_code = self.make_code(self.datacode)
     for field in self.extract():
         try:
             if(field == "PCI_Building_Unit_Number"):
                 self.ret_field = [enfs.data_status()["conditional"], "AS10",
                                    enfs.get_enf_by_number(21)
                                    ]
                 self.update_result(self.results, self.pi_code.next(), self.ret_field, field)
                 
             elif(field == "PCI_Building_Name"):
                 self.ret_field = [enfs.data_status()["conditional"], "AS50",
                                    enfs.get_enf_by_number(21)
                                    ]
                 self.update_result(self.results, self.pi_code.next(), self.ret_field, field)
                 
             elif(field == "PCI_Floor_Number"):
                 self.ret_field = [enfs.data_status()["conditional"], "AS10",
                                    enfs.get_enf_by_number(21)
                                    ]
                 self.update_result(self.results, self.pi_code.next(), self.ret_field, field)
                 
             elif(field == "PCI_Plot_or_Street_Number"):
                 self.ret_field = [enfs.data_status()["optional"], "AS10",
                                    True
                                    ]
                 self.update_result(self.results, self.pi_code.next(), self.ret_field, field)
                 
             elif(field == "PCI_LC_or_Street_Name"):
                 self.ret_field = [enfs.data_status()["optional"], "AS50",
                                    True
                                    ]
                 self.update_result(self.results, self.pi_code.next(), self.ret_field, field)
                 
             elif(field == "PCI_Parish"):
                 self.ret_field = [enfs.data_status()["conditional"], "AS50",
                                    {"ENF":[enfs.get_enf_by_number(36), enfs.get_enf_by_number(49)]}
                                    ]
                 self.update_result(self.results, self.pi_code.next(), self.ret_field, field)
                 
             elif(field == "PCI_Suburb"):
                 self.ret_field = [enfs.data_status()["optional"], "AS50",
                                    True
                                    ]
                 self.update_result(self.results, self.pi_code.next(), self.ret_field, field)
                 
             elif(field == "PCI_Village"):
                 self.ret_field = [enfs.data_status()["optional"], "AS50",
                                    True
                                    ]
                 self.update_result(self.results, self.pi_code.next(), self.ret_field, field)
                 
             elif(field == "PCI_County_or_Town"):
                 self.ret_field = [enfs.data_status()["conditional"], "AS10",
                                    {"ENF":[enfs.get_enf_by_number(36), enfs.get_enf_by_number(49)]}
                                    ]
                 self.update_result(self.results, self.pi_code.next(), self.ret_field, field)
                 
             elif(field == "PCI_District"):
                 self.ret_field = [enfs.data_status()["conditional"], "AS50",
                                    {"ENF":[enfs.get_enf_by_number(36), enfs.get_enf_by_number(49)]}
                                    ]
                 self.update_result(self.results, self.pi_code.next(), self.ret_field, field)
                 
             elif(field == "PCI_Region"):
                 self.ret_field = [enfs.data_status()["conditional"], "N1",
                                    {"ENF":[enfs.get_enf_by_number(36), enfs.get_enf_by_number(54)]}
                                    ]
                 self.update_result(self.results, self.pi_code.next(), self.ret_field, field)
                 
             elif(field == "PCI_PO_Box_Number"):
                 self.ret_field = [enfs.data_status()["conditional"], "A10",
                                    enfs.get_enf_by_number(14)
                                    ]
                 self.update_result(self.results, self.pi_code.next(), self.ret_field, field)
                 
             elif(field == "PCI_Post_Office_Town"):
                 self.ret_field = [enfs.data_status()["conditional"], "A20",
                                    enfs.get_enf_by_number(21)
                                    ]
                 self.update_result(self.results, self.pi_code.next(), self.ret_field, field)
                 
             elif(field == "PCI_Country_Code"):
                 self.ret_field = [enfs.data_status()["mandatory"], "A2",
                                    {"ENF":[enfs.get_enf_by_number(14), enfs.get_enf_by_number(65)]}
                                    ]
                 self.update_result(self.results, self.pi_code.next(), self.ret_field, field)
                 
             elif(field == "PCI_Period_At_Address"):
                 self.ret_field = [enfs.data_status()["mandatory"], "N3",
                                    enfs.get_enf_by_number(14)
                                    ]
                 self.update_result(self.results, self.pi_code.next(), self.ret_field, field)
                 
             elif(field == "PCI_Flag_of_Ownership"):
                 self.ret_field = [enfs.data_status()["mandatory"], "A1",
                                    enfs.get_enf_by_number(84)
                                    ]
                 self.update_result(self.results, self.pi_code.next(), self.ret_field, field)
                 
             elif(field == "PCI_Primary_Number_Country_Dialling_Code"):
                 self.ret_field = [enfs.data_status()["conditional"], "N5",
                                    enfs.get_enf_by_number(56)
                                    ]
                 self.update_result(self.results, self.pi_code.next(), self.ret_field, field)
                 
             elif(field == "PCI_Primary_Number_Telephone_Number"):
                 self.ret_field = [enfs.data_status()["conditional"], "N10",
                                    True
                                    ]
                 self.update_result(self.results, self.pi_code.next(), self.ret_field, field)
                 
             elif(field == "PCI_Other_Number_Country_Dialling_Code"):
                 self.ret_field = [enfs.data_status()["conditional"], "N5",
                                    enfs.get_enf_by_number(56)
                                    ]
                 self.update_result(self.results, self.pi_code.next(), self.ret_field, field)
                 
             elif(field == "PCI_Other_Number_Telephone_Number"):
                 self.ret_field = [enfs.data_status()["conditional"], "N10",
                                    True
                                    ]
                 self.update_result(self.results, self.pi_code.next(), self.ret_field, field)
                 
             elif(field == "PCI_Mobile_Number_Country_Dialling_Code"):
                 self.ret_field = [enfs.data_status()["conditional"], "N5",
                                    enfs.get_enf_by_number(56)
                                    ]
                 self.update_result(self.results, self.pi_code.next(), self.ret_field, field)
                 
             elif(field == "PCI_Mobile_Number_Telephone_Number"):
                 self.ret_field = [enfs.data_status()["conditional"], "N10",
                                    True
                                    ]
                 self.update_result(self.results, self.pi_code.next(), self.ret_field, field)
                 
             elif(field == "PCI_Facsimile_Country_Dialling_Code"):
                 self.ret_field = [enfs.data_status()["conditional"], "N5",
                                    enfs.get_enf_by_number(56)
                                    ]
                 self.update_result(self.results, self.pi_code.next(), self.ret_field, field)
                 
             elif(field == "PCI_Facsimile_Number"):
                 self.ret_field = [enfs.data_status()["conditional"], "N10",
                                   True
                                    ]
                 self.update_result(self.results, self.pi_code.next(), self.ret_field, field)
                 
             elif(field == "PCI_Email_Address"):
                 self.ret_field = [enfs.data_status()["conditional"], "AS50",
                                    True
                                    ]
                 self.update_result(self.results, self.pi_code.next(), self.ret_field, field)
                 
             elif(field == "PCI_Web_site"):
                 self.ret_field = [enfs.data_status()["conditional"], "AS50",
                                    True
                                    ]
                 self.update_result(self.results, self.pi_code.next(), self.ret_field, field)
             else:
                 pass 
             if (ret_all == False):
                 yield self.results
                 
         except:
             raise 
     yield self.results        
コード例 #7
0
ファイル: iicode.py プロジェクト: njovujsh/crbdjango
 def join_field_rule(self, ret_all=False):
     self.results = {}
     self.ret_field = None 
     
     self.pi_code = self.make_code(self.datacode)
     
     for field in self.extract():
         try:
             if(field == "II_Registration_Certificate_Number"):
                 self.ret_field = [enfs.data_status()["conditional"], "A20",
                                    {"ENF":[enfs.get_enf_by_number(93), enfs.get_enf_by_number(95)]}
                                    ]
                 self.update_result(self.results, self.pi_code.next(), self.ret_field, field) 
             elif(field == "II_Tax_Identification_Number"):
                 self.ret_field = [enfs.data_status()["conditional"], "A20",
                                    {"ENF":[enfs.get_enf_by_number(92),
                                     enfs.get_enf_by_number(93), enfs.get_enf_by_number(96)]}
                                    ]
                                    
                 self.update_result(self.results, self.pi_code.next(), self.ret_field, field) 
             
             elif(field == "II_Value_Added_Tax_Number"):
                 self.ret_field = [enfs.data_status()["conditional"], "A20",
                                    {"ENF":[enfs.get_enf_by_number(93), enfs.get_enf_by_number(97)]}
                                    ]
                 self.update_result(self.results, self.pi_code.next(), self.ret_field, field) 
                 
             elif(field == "II_FCS_Number"):
                 self.ret_field = [enfs.data_status()["conditional"], "A13",
                                    {"ENF":[enfs.get_enf_by_number(12), enfs.get_enf_by_number(87),
                                      enfs.get_enf_by_number(27), enfs.get_enf_by_number(88),
                                      enfs.get_enf_by_number(89), enfs.get_enf_by_number(90),
                                      enfs.get_enf_by_number(92), enfs.get_enf_by_number(93)
                                    ]}
                                    ]
                 self.update_result(self.results, self.pi_code.next(), self.ret_field, field)
                 
             elif(field == "II_Passport_Number"):
                 self.ret_field = [enfs.data_status()["conditional"], "A20",
                                    {"ENF":[enfs.get_enf_by_number(92), enfs.get_enf_by_number(98)]}
                                    ]
                 self.update_result(self.results, self.pi_code.next(), self.ret_field, field)
                 
             elif(field == "II_Drivers_Licence_ID_Number"):
                 self.ret_field = [enfs.data_status()["conditional"], "A20",
                                    {"ENF":[enfs.get_enf_by_number(92), enfs.get_enf_by_number(99)]}
                                    ]
                 self.update_result(self.results, self.pi_code.next(), self.ret_field, field)
                 
             elif(field == "II_Voters_PERNO"):
                 self.ret_field = [enfs.data_status()["conditional"], "A20",
                                    {"ENF":[enfs.get_enf_by_number(92), enfs.get_enf_by_number(100)]}
                                    ]
                 self.update_result(self.results, self.pi_code.next(), self.ret_field, field)
                 
             elif(field == "II_Drivers_License_Permit_Number"):
                 self.ret_field = [enfs.data_status()["conditional"], "A20",
                                    {"ENF":[enfs.get_enf_by_number(92), enfs.get_enf_by_number(101)]}
                                    ]
                 self.update_result(self.results, self.pi_code.next(), self.ret_field, field)
                 
             elif(field == "II_NSSF_Number"):
                 self.ret_field = [enfs.data_status()["conditional"], "A20",
                                    {"ENF":[enfs.get_enf_by_number(92), enfs.get_enf_by_number(102)]}
                                    ]
                 self.update_result(self.results, self.pi_code.next(), self.ret_field, field)
                 
             elif(field == "II_Country_ID"):
                 self.ret_field = [enfs.data_status()["conditional"], "A20",
                                    {"ENF":[enfs.get_enf_by_number(92), enfs.get_enf_by_number(103)]}
                                    ]
                 self.update_result(self.results, self.pi_code.next(), self.ret_field, field)
                 
             elif(field == "II_Country_Issuing_Authority"):
                 self.ret_field = [enfs.data_status()["conditional"], "A2",
                                    enfs.get_enf_by_number(104)
                                   ]
                 self.update_result(self.results, self.pi_code.next(), self.ret_field, field)
                 
             elif(field == "II_Nationality"):
                 self.ret_field = [enfs.data_status()["conditional"], "A2",
                                    {"ENF":[enfs.get_enf_by_number(67), enfs.get_enf_by_number(65),enfs.get_enf_by_number(105)]}
                                    ]
                 self.update_result(self.results, self.pi_code.next(), self.ret_field, field)
                 
             elif(field == "II_Police_ID_Number"):
                 self.ret_field = [enfs.data_status()["conditional"], "A20",
                                    {"ENF":[enfs.get_enf_by_number(92), enfs.get_enf_by_number(106)]}
                                    ]
                 self.update_result(self.results, self.pi_code.next(), self.ret_field, field)
                 
             elif(field == "II_UPDF_Number"):
                 self.ret_field = [enfs.data_status()["conditional"], "A20",
                                     {"ENF":[enfs.get_enf_by_number(92), enfs.get_enf_by_number(107)]}
                                    ]
                 self.update_result(self.results, self.pi_code.next(), self.ret_field, field)
             elif(field == "II_KACITA_License_Number"):
                 self.ret_field = [enfs.data_status()["conditional"], "A20",
                                     {"ENF":[enfs.get_enf_by_number(93), enfs.get_enf_by_number(108)]}
                                    ]
                 self.update_result(self.results, self.pi_code.next(), self.ret_field, field)
             elif(field == "II_Public_Service_Pension_Number"):
                 self.ret_field = [enfs.data_status()["conditional"], "A20",
                                     {"ENF":[enfs.get_enf_by_number(92), enfs.get_enf_by_number(109)]}
                                    ]
                 self.update_result(self.results, self.pi_code.next(), self.ret_field, field)
             elif(field == "II_Teacher_Registration_Number"):
                 self.ret_field = [enfs.data_status()["conditional"], "A20",
                                     {"ENF":[enfs.get_enf_by_number(92), enfs.get_enf_by_number(110)]}
                                    ]
                 self.update_result(self.results, self.pi_code.next(), self.ret_field, field)
             elif(field == "II_Country_Of_Issue"):
                 self.ret_field = [enfs.data_status()["conditional"], "A2",
                                     {"ENF":[enfs.get_enf_by_number(14), enfs.get_enf_by_number(65), enfs.get_enf_by_number(104)]}
                                    ]
                 self.update_result(self.results, self.pi_code.next(), self.ret_field, field)
             else:
                 pass 
             if (ret_all == False):
                 yield self.results
         except:
             raise 
コード例 #8
0
ファイル: ccgcode.py プロジェクト: njovujsh/crbdjango
    def join_field_rule(self, ret_all=False):
        self.results = {}
        self.ret_field = None

        self.pi_code = self.make_code(self.datacode)

        for field in self.extract():
            try:

                if (field == "PI_Identification_Code"):
                    self.ret_field = [
                        enfs.data_status()["mandatory"], "A6", {
                            "ENF": [
                                enfs.get_enf_by_number(68),
                                enfs.get_enf_by_number(94)
                            ]
                        }
                    ]
                    self.update_result(self.results, self.pi_code.next(),
                                       self.ret_field, field)
                elif (field == "Branch_Identification_Code"):
                    self.ret_field = [
                        enfs.data_status()["mandatory"], "N3", {
                            "ENF": [
                                enfs.get_enf_by_number(14),
                                enfs.get_enf_by_number(94)
                            ]
                        }
                    ]
                    self.update_result(self.results, self.pi_code.next(),
                                       self.ret_field, field)

                elif (field == "Borrowers_Client_Number"):
                    self.ret_field = [
                        enfs.data_status()["mandatory"], "AS30", {
                            "ENF": [
                                enfs.get_enf_by_number(14),
                                enfs.get_enf_by_number(94)
                            ]
                        }
                    ]
                    self.update_result(self.results, self.pi_code.next(),
                                       self.ret_field, field)

                elif (field == "Borrower_Account_Reference"):
                    self.ret_field = [
                        enfs.data_status()["mandatory"], "AS30",
                        enfs.get_enf_by_number(14)
                    ]
                    self.update_result(self.results, self.pi_code.next(),
                                       self.ret_field, field)

                elif (field == "Guarantor_Classification"):
                    self.ret_field = [
                        enfs.data_status()["mandatory"], "N1",
                        enfs.get_enf_by_number(71)
                    ]
                    self.update_result(self.results, self.pi_code.next(),
                                       self.ret_field, field)

                elif (field == "Guarantee_Type"):
                    self.ret_field = [
                        enfs.data_status()["mandatory"], "N1",
                        enfs.get_enf_by_number(81)
                    ]
                    self.update_result(self.results, self.pi_code.next(),
                                       self.ret_field, field)

                elif (field == "Guarantor_Type"):
                    self.ret_field = [
                        enfs.data_status()["mandatory"], "N1",
                        enfs.get_enf_by_number(82)
                    ]
                    self.update_result(self.results, self.pi_code.next(),
                                       self.ret_field, field)
                else:
                    pass
                if (ret_all == False):
                    yield self.results

            except:
                raise

        yield self.results
コード例 #9
0
ファイル: bccode.py プロジェクト: njovujsh/crbdjango
    def join_field_rule(self, ret_all=False):
        self.results = {}
        self.ret_field = None

        self.pi_code = self.make_code(self.datacode)

        for field in self.extract():
            try:
                if (field == "PI_Identification_Code"):
                    self.ret_field = [
                        enfs.data_status()["mandatory"], "A6",
                        enfs.get_enf_by_number(68)
                    ]
                    self.update_result(self.results, self.pi_code.next(),
                                       self.ret_field, field)

                elif (field == "Branch_Identification_Code"):
                    self.ret_field = [
                        enfs.data_status()["mandatory"], "N3",
                        enfs.get_enf_by_number(14)
                    ]
                    self.update_result(self.results, self.pi_code.next(),
                                       self.ret_field, field)

                elif (field == "Borrowers_Client_Number"):
                    self.ret_field = [
                        enfs.data_status()["mandatory"], "AS100",
                        enfs.get_enf_by_number(14)
                    ]
                    self.update_result(self.results, self.pi_code.next(),
                                       self.ret_field, field)

                elif (field == "PI_Client_Classification"):
                    self.ret_field = [
                        enfs.data_status()["mandatory"], "N1",
                        enfs.get_enf_by_number(71)
                    ]
                    self.update_result(self.results, self.pi_code.next(),
                                       self.ret_field, field)

                elif (field == "Cheque_Account_Reference_Number"):
                    self.ret_field = [
                        enfs.data_status()["mandatory"], "AS30",
                        enfs.get_enf_by_number(14)
                    ]
                    self.update_result(self.results, self.pi_code.next(),
                                       self.ret_field, field)

                elif (field == "Cheque_Account_Opened_Date"):
                    self.ret_field = [
                        enfs.data_status()["mandatory"], "N8", {
                            "ENF": [
                                enfs.get_enf_by_number(14),
                                enfs.get_enf_by_number(7)
                            ]
                        }
                    ]
                    self.update_result(self.results, self.pi_code.next(),
                                       self.ret_field, field)
                elif (field == "Cheque_Account_Classification"):
                    self.ret_field = [
                        enfs.data_status()["mandatory"], "N1",
                        enfs.get_enf_by_number(79)
                    ]
                    self.update_result(self.results, self.pi_code.next(),
                                       self.ret_field, field)
                elif (field == "Cheque_Account_Type"):
                    self.ret_field = [
                        enfs.data_status()["mandatory"], "N1",
                        enfs.get_enf_by_number(80)
                    ]
                    self.update_result(self.results, self.pi_code.next(),
                                       self.ret_field, field)
                elif (field == "Cheque_Number"):
                    self.ret_field = [
                        enfs.data_status()["mandatory"], "N10",
                        enfs.get_enf_by_number(14)
                    ]

                    self.update_result(self.results, self.pi_code.next(),
                                       self.ret_field, field)
                elif (field == "Cheque_Amount"):
                    self.ret_field = [
                        enfs.data_status()["mandatory"], "N21",
                        enfs.get_enf_by_number(14)
                    ]
                    self.update_result(self.results, self.pi_code.next(),
                                       self.ret_field, field)

                elif (field == "Cheque_Currency"):
                    self.ret_field = [
                        enfs.data_status()["mandatory"], "A3", {
                            "ENF": [
                                enfs.get_enf_by_number(14),
                                enfs.get_enf_by_number(50)
                            ]
                        }
                    ]
                    self.update_result(self.results, self.pi_code.next(),
                                       self.ret_field, field)
                elif (field == "Beneficiary_Name_Or_Payee"):
                    self.ret_field = [
                        enfs.data_status()["mandatory"], "AS50",
                        enfs.get_enf_by_number(14)
                    ]
                    self.update_result(self.results, self.pi_code.next(),
                                       self.ret_field, field)

                elif (field == "Cheque_Bounce_Date"):
                    self.ret_field = [
                        enfs.data_status()["mandatory"], "N8", {
                            "ENF": [
                                enfs.get_enf_by_number(14),
                                enfs.get_enf_by_number(7)
                            ]
                        }
                    ]
                    self.update_result(self.results, self.pi_code.next(),
                                       self.ret_field, field)

                elif (field == "Cheque_Account_Bounce_Reason"):
                    self.ret_field = [
                        enfs.data_status()["mandatory"], "N2", {
                            "ENF": [
                                enfs.get_enf_by_number(14),
                                enfs.get_enf_by_number(57)
                            ]
                        }
                    ]
                    self.update_result(self.results, self.pi_code.next(),
                                       self.ret_field, field)
                else:
                    pass
                    #print "Fields are not Equal ", field

                if (ret_all == False):
                    yield self.results

            except:
                raise

        yield self.results
コード例 #10
0
ファイル: gscode.py プロジェクト: njovujsh/crbdjango
 def join_field_rule(self, ret_all=False):
     self.results = {}
     self.ret_field = None 
     
     self.pi_code = self.make_code(self.datacode) 
     
     for field in self.extract():
         try:
             if(field == "GSCAFB_Business_Name"):
                 self.ret_field = [enfs.data_status()["conditional"], "AS100",
                                        enfs.get_enf_by_number(26)
                                        ]
                 self.update_result(self.results, self.pi_code.next(), self.ret_field,field)
             
             
             elif(field == "GSCAFB_Trading_Name"):
                 self.ret_field = [enfs.data_status()["conditional"], "AS100",
                                        enfs.get_enf_by_number(26)
                                        ]
                 self.update_result(self.results, self.pi_code.next(), self.ret_field, field)
                 
             elif(field == "GSCAFB_Activity_Description"):
                 self.ret_field =[enfs.data_status()["conditional"], "AS100",
                                        enfs.get_enf_by_number(26)
                                        ]
                 self.update_result(self.results, self.pi_code.next(), self.ret_field,field)
                 
             elif(field == "GSCAFB_Industry_Sector_Code"):
                 self.ret_field = [enfs.data_status()["conditional"], "N5",
                                        {"ENF":[enfs.get_enf_by_number(26), enfs.get_enf_by_number(48)]}
                                        ]
                 self.update_result(self.results, self.pi_code.next(), self.ret_field, field)
             elif(field == "GSCAFB_Date_Registered"):
                 self.ret_field = [enfs.data_status()["conditional"], "N8",
                                        {"ENF":[enfs.get_enf_by_number(26),enfs.get_enf_by_number(5), enfs.get_enf_by_number(7)]}
                                        ]
                 self.update_result(self.results, self.pi_code.next(), self.ret_field, field)
             elif(field == "GSCAFB_Business_Type_Code"):
                 self.ret_field = [enfs.data_status()["conditional"], "N2",
                                        {"ENF":[enfs.get_enf_by_number(26), enfs.get_enf_by_number(60)]}
                                        ]
                 self.update_result(self.results, self.pi_code.next(), self.ret_field, field)
             elif(field == "GSCAFB_Surname"):
                 self.ret_field = [enfs.data_status()["conditional"], "AS30",
                                        enfs.get_enf_by_number(67)
                                        ]
                 self.update_result(self.results, self.pi_code.next(), self.ret_field, field)
             elif(field == "GSCAFB_Forename1"):
                 self.ret_field = [enfs.data_status()["conditional"], "AS30",
                                        enfs.get_enf_by_number(67)
                                        ]
                 self.update_result(self.results, self.pi_code.next(), self.ret_field, field)
             elif(field == "GSCAFB_Forename2"):
                 self.ret_field = [enfs.data_status()["optional"], "AS30",
                                        True
                                        ]
                 self.update_result(self.results, self.pi_code.next(), self.ret_field, field)
             elif(field == "GSCAFB_Forename3"):
                 self.ret_field = [enfs.data_status()["optional"], "AS30",
                                        True
                                        ]
                 self.update_result(self.results, self.pi_code.next(), self.ret_field, field)
             elif(field == "GSCAFB_Gender"):
                 self.ret_field = [enfs.data_status()["conditional"], "N1",
                                        {"ENF":[enfs.get_enf_by_number(67), enfs.get_enf_by_number(86)]}
                                        ]
                 self.update_result(self.results, self.pi_code.next(), self.ret_field, field)
                 
             elif(field == "GSCAFB_Marital_Status"):
                 self.ret_field = [enfs.data_status()["conditional"], "N2",
                                        {"ENF":[enfs.get_enf_by_number(67), enfs.get_enf_by_number(55)]}
                                        ]
                 self.update_result(self.results, self.pi_code.next(), self.ret_field, field)
                 
             elif(field == "GSCAFB_Date_of_Birth"):
                 self.ret_field = [enfs.data_status()["conditional"], "N8",
                                        {"ENF":[enfs.get_enf_by_number(67),enfs.get_enf_by_number(5), enfs.get_enf_by_number(7)]}
                                        ]
                 self.update_result(self.results, self.pi_code.next(), self.ret_field, field)
             else:
                 pass 
             if (ret_all == False):
                 yield self.results 
         except:
             raise 
コード例 #11
0
    def join_field_rule(self, ret_all=False):
        self.results = {}
        self.ret_field = None

        self.pi_code = self.make_code(self.datacode)

        for field in self.extract():
            #print " We are inside ", field
            try:
                if (field == "PI_Identification_Code"):
                    self.ret_field = [
                        enfs.data_status()["mandatory"], "A6",
                        enfs.get_enf_by_number(68)
                    ]
                    self.update_result(self.results, self.pi_code.next(),
                                       self.ret_field, field)

                elif (field == "Branch_Identification_Code"):
                    self.ret_field = [
                        enfs.data_status()["mandatory"], "N3",
                        enfs.get_enf_by_number(14)
                    ]
                    self.update_result(self.results, self.pi_code.next(),
                                       self.ret_field, field)

                elif (field == "Branch_Name"):
                    self.ret_field = [
                        enfs.data_status()["mandatory"], "AS100",
                        enfs.get_enf_by_number(14)
                    ]
                    self.update_result(self.results, self.pi_code.next(),
                                       self.ret_field, field)

                elif (field == "Branch_Type"):
                    self.ret_field = [
                        enfs.data_status()["mandatory"], "A1",
                        enfs.get_enf_by_number(70)
                    ]
                    self.update_result(self.results, self.pi_code.next(),
                                       self.ret_field, field)
                elif (field == "Date_Opened"):
                    self.ret_field = [
                        enfs.data_status()["mandatory"], "N8", {
                            "ENF": [
                                enfs.get_enf_by_number(14),
                                enfs.get_enf_by_number(7)
                            ]
                        }
                    ]
                    self.update_result(self.results, self.pi_code.next(),
                                       self.ret_field, field)
                else:
                    print "Fields are not Equal ", field

                if (ret_all == False):
                    yield self.results

            except:
                raise

        yield self.results
コード例 #12
0
ファイル: fmdcode.py プロジェクト: njovujsh/crbdjango
    def join_field_rule(self, ret_all=False):
        self.results = {}
        self.ret_field = None

        self.pi_code = self.make_code(self.datacode)

        for field in self.extract():
            try:

                if (field == "PI_Identification_Code"):
                    self.ret_field = [
                        enfs.data_status()["mandatory"], "A6",
                        enfs.get_enf_by_number(68)
                    ]
                    self.update_result(self.results, self.pi_code.next(),
                                       self.ret_field, field)
                elif (field == "Branch_Identification_Code"):
                    self.ret_field = [
                        enfs.data_status()["mandatory"], "N3",
                        enfs.get_enf_by_number(14)
                    ]
                    self.update_result(self.results, self.pi_code.next(),
                                       self.ret_field, field)

                elif (field == "Borrowers_Client_Number"):
                    self.ret_field = [
                        enfs.data_status()["conditional"], "AS30",
                        enfs.get_enf_by_number(14)
                    ]
                    self.update_result(self.results, self.pi_code.next(),
                                       self.ret_field, field)

                elif (field == "Consumer_Classification"):
                    self.ret_field = [
                        enfs.data_status()["conditional"], "N1",
                        enfs.get_enf_by_number(71)
                    ]
                    self.update_result(self.results, self.pi_code.next(),
                                       self.ret_field, field)

                elif (field == "Category_Code"):
                    self.ret_field = [
                        enfs.data_status()["conditional"], "N2",
                        enfs.get_enf_by_number(51)
                    ]
                    self.update_result(self.results, self.pi_code.next(),
                                       self.ret_field, field)

                elif (field == "Sub_Category_Code"):
                    self.ret_field = [
                        enfs.data_status()["conditional"], "N2",
                        enfs.get_enf_by_number(52)
                    ]
                    self.update_result(self.results, self.pi_code.next(),
                                       self.ret_field, field)

                elif (field == "Incident_Date"):
                    self.ret_field = [
                        enfs.data_status()["conditional"], "N8", {
                            "ENF": [
                                enfs.get_enf_by_number(13),
                                enfs.get_enf_by_number(7)
                            ]
                        }
                    ]
                    self.update_result(self.results, self.pi_code.next(),
                                       self.ret_field, field)
                elif (field == "Collateral_Description"):
                    self.ret_field = [
                        enfs.data_status()["mandatory"], "AS1000",
                        enfs.get_enf_by_number(14)
                    ]
                    self.update_result(self.results, self.pi_code.next(),
                                       self.ret_field, field)

                elif (field == "Collateral_Currency"):
                    self.ret_field = [
                        enfs.data_status()["mandatory"], "A3", {
                            "ENF": [
                                enfs.get_enf_by_number(14),
                                enfs.get_enf_by_number(50)
                            ]
                        }
                    ]
                    self.update_result(self.results, self.pi_code.next(),
                                       self.ret_field, field)

                elif (field == "Loss_Amount"):
                    self.ret_field = [
                        enfs.data_status()["conditional"], "N21",
                        enfs.get_enf_by_number(14)
                    ]
                    self.update_result(self.results, self.pi_code.next(),
                                       self.ret_field, field)

                elif (field == "Currency_Type"):
                    self.ret_field = [
                        enfs.data_status()["conditional"], "A3",
                        enfs.get_enf_by_number(50)
                    ]
                    self.update_result(self.results, self.pi_code.next(),
                                       self.ret_field, field)

                elif (field == "Incident_Details"):
                    self.ret_field = [
                        enfs.data_status()["conditional"], "AS1000",
                        enfs.get_enf_by_number(14)
                    ]
                    self.update_result(self.results, self.pi_code.next(),
                                       self.ret_field, field)

                elif (field == "Forensic_Information_Available"):
                    self.ret_field = [
                        enfs.data_status()["conditional"], "A1",
                        enfs.get_enf_by_number(83)
                    ]
                    self.update_result(self.results, self.pi_code.next(),
                                       self.ret_field, field)
                else:
                    pass
                if (ret_all == False):
                    yield self.results

            except:
                raise

        yield self.results
コード例 #13
0
ファイル: bscode.py プロジェクト: njovujsh/crbdjango
    def join_field_rule(self, ret_all=False):
        self.results = {}
        self.ret_field = None

        self.pi_code = self.make_code(self.datacode)

        for field in self.extract():
            try:
                if (field == "PI_Identification_Code"):
                    self.ret_field = [
                        enfs.data_status()["mandatory"], "A6", {
                            "ENF": [
                                enfs.get_enf_by_number(68),
                                enfs.get_enf_by_number(94)
                            ]
                        }
                    ]
                    self.update_result(self.results, self.pi_code.next(),
                                       self.ret_field, field)
                elif (field == "Branch_Identification_Code"):
                    self.ret_field = [
                        enfs.data_status()["mandatory"], "N3", {
                            "ENF": [
                                enfs.get_enf_by_number(14),
                                enfs.get_enf_by_number(94)
                            ]
                        }
                    ]
                    self.update_result(self.results, self.pi_code.next(),
                                       self.ret_field, field)

                elif (field == "Borrowers_Client_Number"):
                    self.ret_field = [
                        enfs.data_status()["mandatory"], "A30", {
                            "ENF": [
                                enfs.get_enf_by_number(14),
                                enfs.get_enf_by_number(94)
                            ]
                        }
                    ]
                    self.update_result(self.results, self.pi_code.next(),
                                       self.ret_field, field)

                elif (field == "Stakeholder_Type"):
                    self.ret_field = [
                        enfs.data_status()["mandatory"], "N1",
                        enfs.get_enf_by_number(71)
                    ]
                    self.update_result(self.results, self.pi_code.next(),
                                       self.ret_field, field)

                elif (field == "Stakeholder_Category"):
                    self.ret_field = [
                        enfs.data_status()["mandatory"], "N1",
                        enfs.get_enf_by_number(43)
                    ]
                    self.update_result(self.results, self.pi_code.next(),
                                       self.ret_field, field)
                elif (field == "Shareholder_Percentage"):
                    self.ret_field = [
                        enfs.data_status()["mandatory"], "D3.2",
                        enfs.get_enf_by_number(37)
                    ]
                    self.update_result(self.results, self.pi_code.next(),
                                       self.ret_field, field)
                else:
                    pass

            except:
                pass
        yield self.results
コード例 #14
0
    def join_field_rule(self, ret_all=False):
        self.results = {}
        self.ret_field = None

        self.pi_code = self.make_code(self.datacode)

        for field in self.extract():
            if (field == "PI_Identification_Code"):
                self.ret_field = [
                    enfs.data_status()["mandatory"], "A6",
                    enfs.get_enf_by_number(68)
                ]
                self.update_result(self.results, self.pi_code.next(),
                                   self.ret_field, field)

            elif (field == "Branch_Identification_Code"):
                self.ret_field = [
                    enfs.data_status()["mandatory"], "N3",
                    enfs.get_enf_by_number(14)
                ]
                self.update_result(self.results, self.pi_code.next(),
                                   self.ret_field, field)
            elif (field == "Borrowers_Client_Number"):
                self.ret_field = [
                    enfs.data_status()["mandatory"], "AS30",
                    enfs.get_enf_by_number(14)
                ]
                self.update_result(self.results, self.pi_code.next(),
                                   self.ret_field, field)

            elif (field == "Borrower_Classification"):
                self.ret_field = [
                    enfs.data_status()["mandatory"], "N1",
                    enfs.get_enf_by_number(71)
                ]
                self.update_result(self.results, self.pi_code.next(),
                                   self.ret_field, field)

            elif (field == "Credit_Account_Reference"):
                self.ret_field = [
                    enfs.data_status()["mandatory"], "A30",
                    enfs.get_enf_by_number(14)
                ]
                self.update_result(self.results, self.pi_code.next(),
                                   self.ret_field, field)
            elif (field == "Credit_Account_Date"):
                self.ret_field = [
                    enfs.data_status()["mandatory"], "N8", {
                        "ENF": [
                            enfs.get_enf_by_number(14),
                            enfs.get_enf_by_number(7)
                        ]
                    }
                ]
                self.update_result(self.results, self.pi_code.next(),
                                   self.ret_field, field)
            elif (field == "Credit_Amount"):
                self.ret_field = [
                    enfs.data_status()["conditional"], "N21",
                    enfs.get_enf_by_number(30)
                ]
                self.update_result(self.results, self.pi_code.next(),
                                   self.ret_field, field)
            elif (field == "Facility_Amount_Granted"):
                self.ret_field = [
                    enfs.data_status()["conditional"], "N21",
                    enfs.get_enf_by_number(29)
                ]
                self.update_result(self.results, self.pi_code.next(),
                                   self.ret_field, field)
            elif (field == "Credit_Account_Type"):
                self.ret_field = [
                    enfs.data_status()["mandatory"], "N2",
                    enfs.get_enf_by_number(61)
                ]
                self.update_result(self.results, self.pi_code.next(),
                                   self.ret_field, field)
            elif (field == "Group_Identification_Joint_Account_Number"):
                self.ret_field = [
                    enfs.data_status()["conditional"], "A30",
                    enfs.get_enf_by_number(25)
                ]
                self.update_result(self.results, self.pi_code.next(),
                                   self.ret_field, field)
            elif (field == "Transaction_Date"):
                self.ret_field = [
                    enfs.data_status()["mandatory"], "N8", {
                        "ENF":
                        [enfs.get_enf_by_number(6),
                         enfs.get_enf_by_number(7)]
                    }
                ]
                self.update_result(self.results, self.pi_code.next(),
                                   self.ret_field, field)
            elif (field == "Currency"):
                self.ret_field = [
                    enfs.data_status()["mandatory"], "A3", {
                        "ENF": [
                            enfs.get_enf_by_number(14),
                            enfs.get_enf_by_number(50)
                        ]
                    }
                ]
                self.update_result(self.results, self.pi_code.next(),
                                   self.ret_field, field)
            elif (field == "Opening_Balance_Indicator"):
                self.ret_field = [
                    enfs.data_status()["mandatory"], "N1",
                    enfs.get_enf_by_number(72)
                ]
                self.update_result(self.results, self.pi_code.next(),
                                   self.ret_field, field)
            elif (field == "Maturity_Date"):
                self.ret_field = [
                    enfs.data_status()["mandatory"], "N8", {
                        "ENF": [
                            enfs.get_enf_by_number(14),
                            enfs.get_enf_by_number(7)
                        ]
                    }
                ]
                self.update_result(self.results, self.pi_code.next(),
                                   self.ret_field, field)
            elif (field == "Type_of_Interest"):
                self.ret_field = [
                    enfs.data_status()["mandatory"], "N1",
                    enfs.get_enf_by_number(73)
                ]
                self.update_result(self.results, self.pi_code.next(),
                                   self.ret_field, field)
            elif (field == "Interest_Calculation_Method"):
                self.ret_field = [
                    enforcement.data_status()["mandatory"], "N1",
                    enfs.get_enf_by_number(74)
                ]
                self.update_result(self.results, self.pi_code.next(),
                                   self.ret_field, field)
            elif (field == "Annual_Interest_Rate_at_Disbursement"):
                self.ret_field = [
                    enfs.data_status()["mandatory"], "D6.2",
                    enfs.get_enf_by_number(14)
                ]
                self.update_result(self.results, self.pi_code.next(),
                                   self.ret_field, field)
            elif (field == "Annual_Interest_Rate_at_Reporting"):
                self.ret_field = [
                    enfs.data_status()["mandatory"], "D6.2",
                    enfs.get_enf_by_number(14)
                ]
                self.update_result(self.results, self.pi_code.next(),
                                   self.ret_field, field)
            elif (field == "Date_of_First_Payment"):
                self.ret_field = [
                    enfs.data_status()["conditional"], "N8", {
                        "ENF": [
                            enfs.get_enf_by_number(6),
                            enfs.get_enf_by_number(39),
                            enfs.get_enf_by_number(7)
                        ]
                    }
                ]
                self.update_result(self.results, self.pi_code.next(),
                                   self.ret_field, field)
            elif (field == "Credit_Amortization_Type"):
                self.ret_field = [
                    enfs.data_status()["mandatory"], "N1",
                    enfs.get_enf_by_number(75)
                ]
                self.update_result(self.results, self.pi_code.next(),
                                   self.ret_field, field)
            elif (field == "Credit_Payment_Frequency"):
                self.ret_field = [
                    enforcement.data_status()["conditional"], "N2",
                    enfs.get_enf_by_number(58)
                ]
                self.update_result(self.results, self.pi_code.next(),
                                   self.ret_field, field)
            elif (field == "Number_of_Payments"):
                self.ret_field = [
                    enforcement.data_status()["conditional"], "N4",
                    enfs.get_enf_by_number(28)
                ]
                self.update_result(self.results, self.pi_code.next(),
                                   self.ret_field, field)
            elif (field == "Monthly_Instalment_Amount"):
                self.ret_field = [
                    enforcement.data_status()["conditional"], "N21",
                    enfs.get_enf_by_number(28)
                ]
                self.update_result(self.results, self.pi_code.next(),
                                   self.ret_field, field)
            elif (field == "Current_Balance_Amount"):
                self.ret_field = [
                    enforcement.data_status()["mandatory"], "N21", {
                        "ENF": [
                            enfs.get_enf_by_number(14),
                            enfs.get_enf_by_number(112)
                        ]
                    }
                ]
                self.update_result(self.results, self.pi_code.next(),
                                   self.ret_field, field)
            elif (field == "Current_Balance_Indicator"):
                self.ret_field = [
                    enforcement.data_status()["mandatory"], "N1",
                    enfs.get_enf_by_number(76)
                ]
                self.update_result(self.results, self.pi_code.next(),
                                   self.ret_field, field)
            elif (field == "Last_Payment_Date"):
                self.ret_field = [
                    enforcement.data_status()["conditional"], "N8", {
                        "ENF": [
                            enfs.get_enf_by_number(13),
                            enfs.get_enf_by_number(6),
                            enfs.get_enf_by_number(40),
                            enfs.get_enf_by_number(10),
                            enfs.get_enf_by_number(7)
                        ]
                    }
                ]
                self.update_result(self.results, self.pi_code.next(),
                                   self.ret_field, field)
            elif (field == "Last_Payment_Amount"):
                self.ret_field = [
                    enforcement.data_status()["conditional"], "N21", {
                        "ENF": [
                            enfs.get_enf_by_number(8),
                            enfs.get_enf_by_number(32)
                        ]
                    }
                ]
                self.update_result(self.results, self.pi_code.next(),
                                   self.ret_field, field)
            elif (field == "Credit_Account_Status"):
                self.ret_field = [
                    enforcement.data_status()["mandatory"], "N1", {
                        "ENF": [
                            enfs.get_enf_by_number(14),
                            enfs.get_enf_by_number(4),
                            enfs.get_enf_by_number(2),
                            enfs.get_enf_by_number(3),
                            enfs.get_enf_by_number(1),
                            enfs.get_enf_by_number(44)
                        ]
                    }
                ]
                self.update_result(self.results, self.pi_code.next(),
                                   self.ret_field, field)

            elif (field == "Last_Status_Change_Date"):
                self.ret_field = [
                    enforcement.data_status()["mandatory"], "N8", {
                        "ENF": [
                            enfs.get_enf_by_number(14),
                            enfs.get_enf_by_number(5),
                            enfs.get_enf_by_number(7)
                        ]
                    }
                ]
                self.update_result(self.results, self.pi_code.next(),
                                   self.ret_field, field)
            elif (field == "Credit_Account_Risk_Classification"):
                self.ret_field = [
                    enforcement.data_status()["mandatory"], "N1",
                    enfs.get_enf_by_number(45)
                ]
                self.update_result(self.results, self.pi_code.next(),
                                   self.ret_field, field)
            elif (field == "Credit_Account_Arrears_Date"):
                self.ret_field = [
                    enforcement.data_status()["conditional"], "N8", {
                        "ENF": [
                            enfs.get_enf_by_number(5),
                            enfs.get_enf_by_number(6),
                            enfs.get_enf_by_number(9),
                            enfs.get_enf_by_number(7),
                            enfs.get_enf_by_number(91)
                        ]
                    }
                ]
                self.update_result(self.results, self.pi_code.next(),
                                   self.ret_field, field)
            elif (field == "Number_of_Days_in_Arrears"):
                self.ret_field = [
                    enforcement.data_status()["conditional"], "N10",
                    enfs.get_enf_by_number(17)
                ]
                self.update_result(self.results, self.pi_code.next(),
                                   self.ret_field, field)
            elif (field == "Balance_Overdue"):
                self.ret_field = [
                    enforcement.data_status()["conditional"], "N21",
                    enfs.get_enf_by_number(18)
                ]
                self.update_result(self.results, self.pi_code.next(),
                                   self.ret_field, field)
            elif (field == "Flag_for_Restructured_Credit"):
                self.ret_field = [
                    enforcement.data_status()["mandatory"], "N1",
                    enfs.get_enf_by_number(77)
                ]
                self.update_result(self.results, self.pi_code.next(),
                                   self.ret_field, field)
            elif (field == "Old_Branch_Code"):
                self.ret_field = [
                    enforcement.data_status()["conditional"], "N3",
                    enfs.get_enf_by_number(23)
                ]
                self.update_result(self.results, self.pi_code.next(),
                                   self.ret_field, field)
            elif (field == "Old_Account_Number"):
                self.ret_field = [
                    enforcement.data_status()["conditional"], "A30",
                    enfs.get_enf_by_number(24)
                ]
                self.update_result(self.results, self.pi_code.next(),
                                   self.ret_field, field)
            elif (field == "Old_Client_Number"):
                self.ret_field = [
                    enforcement.data_status()["optional"], "A30",
                    enfs.get_enf_by_number(15)
                ]
                self.update_result(self.results, self.pi_code.next(),
                                   self.ret_field, field)
            elif (field == "Balance_Overdue_Indicator"):
                self.ret_field = [
                    enforcement.data_status()["conditional"], "N1", {
                        "ENF": [
                            enfs.get_enf_by_number(22),
                            enfs.get_enf_by_number(19)
                        ]
                    }
                ]
                self.update_result(self.results, self.pi_code.next(),
                                   self.ret_field, field)
            elif (field == "Credit_Account_Closure_Date"):
                self.ret_field = [
                    enforcement.data_status()["conditional"], "N8", {
                        "ENF": [
                            enfs.get_enf_by_number(5),
                            enfs.get_enf_by_number(20),
                            enfs.get_enf_by_number(7),
                            enfs.get_enf_by_number(34)
                        ]
                    }
                ]
                self.update_result(self.results, self.pi_code.next(),
                                   self.ret_field, field)
            elif (field == "Credit_Account_Closure_Reason"):
                self.ret_field = [
                    enforcement.data_status()["conditional"], "N1", {
                        "ENF": [
                            enfs.get_enf_by_number(46),
                            enfs.get_enf_by_number(33),
                            enfs.get_enf_by_number(62)
                        ]
                    }
                ]
                self.update_result(self.results, self.pi_code.next(),
                                   self.ret_field, field)
            elif (field == "Specific_Provision_Amount"):
                self.ret_field = [
                    enforcement.data_status()["conditional"], "N21", {}
                ]
                self.update_result(self.results, self.pi_code.next(),
                                   self.ret_field, field)
            elif (field == "Client_Consent_Flag"):
                self.ret_field = [
                    enforcement.data_status()["mandatory"], "A1",
                    enfs.get_enf_by_number(78)
                ]
                self.update_result(self.results, self.pi_code.next(),
                                   self.ret_field, field)
            elif (field == "Client_Advice_Notice_Flag"):
                self.ret_field = [
                    enforcement.data_status()["mandatory"], "A1",
                    enfs.get_enf_by_number(78)
                ]
                self.update_result(self.results, self.pi_code.next(),
                                   self.ret_field, field)
            elif (field == "Term"):
                self.ret_field = [
                    enforcement.data_status()["conditional"], "N5",
                    enfs.get_enf_by_number(38)
                ]
                self.update_result(self.results, self.pi_code.next(),
                                   self.ret_field, field)
            elif (field == "Loan_Purpose"):
                self.ret_field = [
                    enforcement.data_status()["mandatory"], "N5",
                    enfs.get_enf_by_number(14)
                ]
                self.update_result(self.results, self.pi_code.next(),
                                   self.ret_field, field)
        yield self.results