<commit_before><?xml version="1.0" encoding="UTF-8"?><beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:p="http://www.springframework.org/schema/p" xsi:schemaLocation="http://www.springframework.org/schema/beans         http://www.springframework.org/schema/beans/spring-beans-2.0.xsd">

  <bean id="CashControlDocument" parent="CashControlDocument-parentBean"/>

  <bean id="CashControlDocument-parentBean" abstract="true" parent="TransactionalDocumentEntry">
    
    
    <property name="documentTypeName" value="CTRL"/>
    <property name="documentClass" value="org.kuali.kfs.module.ar.document.CashControlDocument"/>
    <property name="businessRulesClass" value="org.kuali.kfs.module.ar.document.validation.impl.CashControlDocumentRule"/>
<!-- the following businessRuleClass should be used for granular validations, if implemented
    <property name="businessRulesClass" value="org.kuali.kfs.sys.document.validation.impl.AccountingRuleEngineRuleBase" />
-->
    <property name="documentAuthorizerClass" value="org.kuali.kfs.module.ar.document.authorization.CashControlDocumentAuthorizer"/>
    <property name="documentPresentationControllerClass" value="org.kuali.kfs.module.ar.document.authorization.CashControlDocumentPresentationController"/>
    <property name="allowsErrorCorrection" value="false"/>
    <property name="defaultExistenceChecks">
      <list>
        <bean parent="ReferenceDefinition" p:attributeName="customerPaymentMedium" p:attributeToHighlightOnFail="customerPaymentMediumCode"/>
      </list>
    </property>
    <property name="attributes">
      <list>
        <ref bean="CashControlDocument-referenceFinancialDocumentNumber"/>
        <ref bean="CashControlDocument-customerPaymentMediumCode"/>
        <ref bean="CashControlDocument-bankCode"/>
      </list>
    </property>
    <property name="workflowAttributes">
      <ref bean="CashControlDocument-workflowAttributes"/>
    </property>
    <property name="validationMap" ref="CashControlDocument-validations"/>
  </bean>

<!-- Attribute Definitions -->


  <bean id="CashControlDocument-referenceFinancialDocumentNumber" parent="CashControlDocument-referenceFinancialDocumentNumber-parentBean"/>

  <bean id="CashControlDocument-referenceFinancialDocumentNumber-parentBean" abstract="true" parent="DocumentHeader-documentNumber">
    <property name="name" value="referenceFinancialDocumentNumber"/>
    <property name="label" value="Reference Document Number"/>
    <property name="shortLabel" value="Reference Document Number"/>
    <property name="validationPattern">
      <bean parent="NumericValidationPattern"/>
    </property>
  </bean>
  <bean id="CashControlDocument-customerPaymentMediumCode" parent="CashControlDocument-customerPaymentMediumCode-parentBean"/>

  <bean id="CashControlDocument-customerPaymentMediumCode-parentBean" abstract="true" parent="AttributeDefinition">
    <property name="name" value="customerPaymentMediumCode"/>
    <property name="forceUppercase" value="true"/>
    <property name="label" value="Payment Medium Code"/>
    <property name="shortLabel" value="Medium Code"/>
    <property name="maxLength" value="2"/>
    <property name="required" value="true"/>
    <property name="control">
      <bean parent="SelectControlDefinition" p:valuesFinderClass="org.kuali.kfs.module.ar.businessobject.options.PaymentMediumValuesFinder" p:includeKeyInLabel="false"/>
    </property>
  </bean>
  
  <bean id="CashControlDocument-bankCode" parent="CashControlDocument-bankCode-parentBean"/>

  <bean id="CashControlDocument-bankCode-parentBean" abstract="true" parent="Bank-bankCode">
    <property name="name" value="bankCode"/>
    <property name="label" value="Bank Code"/>
    <property name="shortLabel" value="Bank Code"/><commit_msg>KULAR-629  Cash Control - "reference document number" field is required and is now marked that way<commit_after><?xml version="1.0" encoding="UTF-8"?><beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:p="http://www.springframework.org/schema/p" xsi:schemaLocation="http://www.springframework.org/schema/beans         http://www.springframework.org/schema/beans/spring-beans-2.0.xsd">

  <bean id="CashControlDocument" parent="CashControlDocument-parentBean"/>

  <bean id="CashControlDocument-parentBean" abstract="true" parent="TransactionalDocumentEntry">
    
    
    <property name="documentTypeName" value="CTRL"/>
    <property name="documentClass" value="org.kuali.kfs.module.ar.document.CashControlDocument"/>
    <property name="businessRulesClass" value="org.kuali.kfs.module.ar.document.validation.impl.CashControlDocumentRule"/>
<!-- the following businessRuleClass should be used for granular validations, if implemented
    <property name="businessRulesClass" value="org.kuali.kfs.sys.document.validation.impl.AccountingRuleEngineRuleBase" />
-->
    <property name="documentAuthorizerClass" value="org.kuali.kfs.module.ar.document.authorization.CashControlDocumentAuthorizer"/>
    <property name="documentPresentationControllerClass" value="org.kuali.kfs.module.ar.document.authorization.CashControlDocumentPresentationController"/>
    <property name="allowsErrorCorrection" value="false"/>
    <property name="defaultExistenceChecks">
      <list>
        <bean parent="ReferenceDefinition" p:attributeName="customerPaymentMedium" p:attributeToHighlightOnFail="customerPaymentMediumCode"/>
      </list>
    </property>
    <property name="attributes">
      <list>
        <ref bean="CashControlDocument-referenceFinancialDocumentNumber"/>
        <ref bean="CashControlDocument-customerPaymentMediumCode"/>
        <ref bean="CashControlDocument-bankCode"/>
      </list>
    </property>
    <property name="workflowAttributes">
      <ref bean="CashControlDocument-workflowAttributes"/>
    </property>
    <property name="validationMap" ref="CashControlDocument-validations"/>
  </bean>

<!-- Attribute Definitions -->


  <bean id="CashControlDocument-referenceFinancialDocumentNumber" parent="CashControlDocument-referenceFinancialDocumentNumber-parentBean"/>

  <bean id="CashControlDocument-referenceFinancialDocumentNumber-parentBean" abstract="true" parent="DocumentHeader-documentNumber">
    <property name="name" value="referenceFinancialDocumentNumber"/>
    <property name="label" value="Reference Document Number"/>
    <property name="shortLabel" value="Reference Document Number"/>
    <property name="required" value="true"/>      
    <property name="validationPattern">
      <bean parent="NumericValidationPattern"/>
    </property>
  </bean>
  <bean id="CashControlDocument-customerPaymentMediumCode" parent="CashControlDocument-customerPaymentMediumCode-parentBean"/>

  <bean id="CashControlDocument-customerPaymentMediumCode-parentBean" abstract="true" parent="AttributeDefinition">
    <property name="name" value="customerPaymentMediumCode"/>
    <property name="forceUppercase" value="true"/>
    <property name="label" value="Payment Medium Code"/>
    <property name="shortLabel" value="Medium Code"/>
    <property name="maxLength" value="2"/>
    <property name="required" value="true"/>
    <property name="control">
      <bean parent="SelectControlDefinition" p:valuesFinderClass="org.kuali.kfs.module.ar.businessobject.options.PaymentMediumValuesFinder" p:includeKeyInLabel="false"/>
    </property>
  </bean>
  
  <bean id="CashControlDocument-bankCode" parent="CashControlDocument-bankCode-parentBean"/>

  <bean id="CashControlDocument-bankCode-parentBean" abstract="true" parent="Bank-bankCode">
    <property name="name" value="bankCode"/>
    <property name="label" value="Bank Code"/>
    <property name="shortLabel" value="Bank Code"/>
{'fraction_non_alphanumeric': 0.1378558604770454, 'fraction_numerical': 0.0032059502436522186, 'mean_word_length': 5.764093668690373, 'pattern_counts': {'":': 0, '<': 116, '<?xml version=': 2, '>': 116, 'https://': 0, 'lorem ipsum': 0, 'www.': 10, 'xml': 8}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7153997', 'n_tokens_mistral': 2147, 'n_tokens_neox': 2090, 'n_words': 332}