Changeset 12271 moves some configuration settings from the database to
the application-wide configuration file. Here the the settings and
their default values:

    ProcessFlow.ClientPendingApprovalStateEnabled=true
    ProcessFlow.GroupPendingApprovalStateEnabled=true
    ProcessFlow.LoanDisbursedToLoanOfficerStateEnabled=false
    ProcessFlow.LoanPendingApprovalStateEnabled=true
    ProcessFlow.SavingsPendingApprovalStateEnabled=true

These settings were previously only configurable by directly modifying
rows in the CUSTOMER_STATE and ACCOUNT_STATE tables.

If you wish to enable the "Loan Disbursed to Loan Officer" setting,
create a file called applicationConfiguration.custom.properties with
the following:

    ProcessFlow.LoanDisbursedToLoanOfficerStateEnabled=true

and place it in your app server's classpath. This procedure will
eventually be added to the "Configuring Mifos" page on mifos.org (
http://tinyurl.com/375mgu ).

If you wish to disable any of the process flow optional state settings
(either because they are currently disabled in your development
database, or because you are starting to use Mifos for the first
time), not only do you have to do the .custom.properties override as
mentioned above, you must also do a custom query against the database.
BOTH OVERRIDES MUST BE PERFORMED BEFORE STARTING THE APP SERVER WITH A
WAR BUILT FROM THIS NEW CODE. This double-override is necessary
because the settings can currently only be turned on, and the database
is used to track if these values have been turned on. A user interface
for turning them off would require business logic that doesn't exist.
Here are the queries to turn off the settings:

ProcessFlow.ClientPendingApprovalStateEnabled
    UPDATE CUSTOMER_STATE WHERE STATUS_ID=2 SET CURRENTLY_IN_USE=0;

ProcessFlow.GroupPendingApprovalStateEnabled
    UPDATE CUSTOMER_STATE WHERE STATUS_ID=8 SET CURRENTLY_IN_USE=0;

ProcessFlow.LoanPendingApprovalStateEnabled
    UPDATE ACCOUNT_STATE WHERE ACCOUNT_STATE_ID=2 SET CURRENTLY_IN_USE=0;

ProcessFlow.SavingsPendingApprovalStateEnabled
    UPDATE ACCOUNT_STATE WHERE ACCOUNT_STATE_ID=14 SET CURRENTLY_IN_USE=0;

Related information on this chunk of code:
http://snipr.com/1y6in
http://mingle.mifos.org:7070/projects/mifos/cards/23


-- 
Adam Monsen

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/

Reply via email to