[KULRICE-11848] Inactivation Blocking doesn't work in KNS Created: 12/Feb/14  Updated: 16/Jan/15

Status: Open
Project: Kuali Rice Development
Component/s: Development
Affects Version/s: None
Fix Version/s: Backlog
Security Level: Public (Public: Anyone can view)

Type: Bug Fix Priority: Major
Reporter: Claus Niesen Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: Old
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Rice Module:
KNS
KAI Review Status: Not Required
KTI Review Status: Not Required
Code Review Status: Not Required
Include in Release Notes?:
Yes

 Description   

I failed to successfully add the Inactivation Blocking to State so that I should not be able to mark the Country "US" as inactive. I followed the documentation at https://wiki.kuali.org/display/KULDOC/Inactivation+Blocking+5 and added the following to the State-parentBean

    <property name="inactivationBlockingDefinitions">
      <list>
        <bean parent="InactivationBlockingDefinition" p:blockedReferencePropertyName="countryCode"/>
      </list>
    </property>
Non working KFS sample:

configured in CreditCardVendor.xml

    <property name="inactivationBlockingDefinitions">
      <list>
        <bean parent="InactivationBlockingDefinition" p:blockedReferencePropertyName="financialDocumentCreditCardType"/>
      </list>
    </property>
Working KFS sample:

BTW the link to view all records blocking the inactivation only lists the "BL" chart record. This seems to be incorrect.

Looks like Chart is using some alternate setting to do things reversed that I haven't tried:

    <property name="inactivationBlockingDefinitions">
      <list>
        <bean parent="InactivationBlockingDefinition" p:blockedReferencePropertyName="finAccountsPayableObject" p:relationshipLabel="Accounts Payable Object" p:inactivationBlockingDetectionServiceBeanName="objectCodeCurrentInactivationBlockingDetectionService"/>
        <bean parent="InactivationBlockingDefinition" p:blockedReferencePropertyName="incBdgtEliminationsFinObj" p:relationshipLabel="Income Budget Elimination Object" p:inactivationBlockingDetectionServiceBeanName="objectCodeCurrentInactivationBlockingDetectionService"/>
        <bean parent="InactivationBlockingDefinition" p:blockedReferencePropertyName="expBdgtEliminationsFinObj" p:relationshipLabel="Expense Budget Elimination Object" p:inactivationBlockingDetectionServiceBeanName="objectCodeCurrentInactivationBlockingDetectionService"/>
        <bean parent="InactivationBlockingDefinition" p:blockedReferencePropertyName="finExternalEncumbranceObj" p:relationshipLabel="External Encumbrances Object" p:inactivationBlockingDetectionServiceBeanName="objectCodeCurrentInactivationBlockingDetectionService"/>
        <bean parent="InactivationBlockingDefinition" p:blockedReferencePropertyName="finInternalEncumbranceObj" p:relationshipLabel="Internal Encumbrances Object" p:inactivationBlockingDetectionServiceBeanName="objectCodeCurrentInactivationBlockingDetectionService"/>
        <bean parent="InactivationBlockingDefinition" p:blockedReferencePropertyName="finPreEncumbranceObject" p:relationshipLabel="Pre Encumbrances Object" p:inactivationBlockingDetectionServiceBeanName="objectCodeCurrentInactivationBlockingDetectionService"/>
        <bean parent="InactivationBlockingDefinition" p:blockedReferencePropertyName="financialCashObject" p:relationshipLabel="Cash Object" p:inactivationBlockingDetectionServiceBeanName="objectCodeCurrentInactivationBlockingDetectionService"/>
        <bean parent="InactivationBlockingDefinition" p:blockedReferencePropertyName="icrIncomeFinancialObject" p:relationshipLabel="Indirect Cost Recovery Income Object" p:inactivationBlockingDetectionServiceBeanName="objectCodeCurrentInactivationBlockingDetectionService"/>
        <bean parent="InactivationBlockingDefinition" p:blockedReferencePropertyName="icrExpenseFinancialObject" p:relationshipLabel="Indirect Cost Recovery Expense" p:inactivationBlockingDetectionServiceBeanName="objectCodeCurrentInactivationBlockingDetectionService"/>
        <bean parent="InactivationBlockingDefinition" p:blockedReferencePropertyName="finAccountsReceivableObj" p:relationshipLabel="Accounts Receivable Object" p:inactivationBlockingDetectionServiceBeanName="objectCodeCurrentInactivationBlockingDetectionService"/>
        <bean parent="InactivationBlockingDefinition" p:blockedReferencePropertyName="fundBalanceObject" p:relationshipLabel="Fund Balance Object" p:inactivationBlockingDetectionServiceBeanName="objectCodeCurrentInactivationBlockingDetectionService"/>
        <bean parent="InactivationBlockingDefinition" p:blockedReferencePropertyName="reportsToChartOfAccounts"/>
      </list>
    </property>

Generated at Thu Oct 29 20:04:25 CDT 2020 using JIRA 7.0.11#70121-sha1:19d24976997c1d95f06f3e327e087be0b71f28d4.