Milan,

> there still seems to be a notional relationship between that
> field and other fields in the database/application--

yes the field is used to identify an entity from an application/user
perspective. users will search for accounts/customers using this (not
the primary key in the database) etc

so in the code you might see something like
customerDao.findClientBySystemId(String globalCustNum) which would
return a Client.

However the customer table is responsible for holding clients, groups
and centers (the hierarchy of customer) so when your inserting or
migrating data into the customer table you need to be sure to apply
the correct customer_level_id whoose values map to the CustomerLevel
in the code..

CustomerLevel.Client = 1
CustomerLevel.Group = 2
CustomerLevel.Center = 3

otherwise things will break in the application.

The value of the 'globalCustNum' is not important so long as its unique.

does this help?

Regards,
KeithW.

On Fri, Nov 12, 2010 at 4:49 PM, Milan Patel
<[email protected]> wrote:
> Thanks Keith
> So understanding that the relationship may not be officially defined at
> schema level--there still seems to be a notional relationship between that
> field and other fields in the database/application--you mentioned
> customertype, group, center etc. as possibilities, but as there seems to be
> a clear-cut definition of what needs to go into that field, what is that
> definition?
>
>
> 2010/11/12 Keith Woodlock <[email protected]>
>>
>> Milan,
>>
>> the customer.global_cust_num field is required.
>>
>> A global_number or system identity is generated by 'mifos' application
>> when creating entities such as customer, office, account etc and it is
>> typically used in display on screens and for searching for entities
>> (but not used in database for relationships)
>>
>> if you self generated it as you said:
>>
>> > I then attempted to self-generate this number (in format office number -
>> > number of customer_id)
>>
>> then there should be no problem (as long as its unique). Possibly the
>> customerType against the value ' 0002-000001042' is not a client
>> (might be group/center etc)
>>
>> Regards,
>> KeithW.
>>
>> On Fri, Nov 12, 2010 at 4:21 PM, Milan Patel
>> <[email protected]> wrote:
>> > Hello,
>> > Having a bit of trouble with field CUSTOMER.GLOBAL_CUST_NUM.
>> > I've loaded basic data onto the customer table, leaving global_cust_num
>> > as
>> > null.  I've then tried to retrieve this data via the front-end, but get
>> > an
>> > error.  Log indicates as follows:
>> > SEVERE: Servlet.service() for servlet Controller threw exception
>> > org.mifos.core.MifosRuntimeException: Client not found for
>> > globalCustNum,
>> > levelId:
>> >
>> > I then attempted to self-generate this number (in format office number -
>> > number of customer_id)
>> > SEVERE: Servlet.service() for servlet Controller threw exception
>> > org.mifos.core.MifosRuntimeException: Client not found for
>> > globalCustNum,
>> > levelId: 0002-000001042
>> >
>> > Looking at schema:
>> > http://ci.mifos.org/schema/head/latest/tables/customer.html
>> >
>> > This field is not a key to or from any other table, but errors above
>> > seem to
>> > suggest otherwise.  I know that customer data on other tables is
>> > required
>> > and will populate, but existing documentation does not seem to indicate
>> > exactly how this field needs to be populated--as such, any information
>> > would
>> > be appreciated.
>> >
>> > Thanks
>> > Milan
>> >
>> > ------------------------------------------------------------------------------
>> > Centralized Desktop Delivery: Dell and VMware Reference Architecture
>> > Simplifying enterprise desktop deployment and management using
>> > Dell EqualLogic storage and VMware View: A highly scalable, end-to-end
>> > client virtualization framework. Read more!
>> > http://p.sf.net/sfu/dell-eql-dev2dev
>> > _______________________________________________
>> > Mifos-users mailing list
>> > [email protected]
>> > https://lists.sourceforge.net/lists/listinfo/mifos-users
>> >
>> >
>>
>>
>> ------------------------------------------------------------------------------
>> Centralized Desktop Delivery: Dell and VMware Reference Architecture
>> Simplifying enterprise desktop deployment and management using
>> Dell EqualLogic storage and VMware View: A highly scalable, end-to-end
>> client virtualization framework. Read more!
>> http://p.sf.net/sfu/dell-eql-dev2dev
>> _______________________________________________
>> Mifos-users mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/mifos-users
>
>
> ------------------------------------------------------------------------------
> Centralized Desktop Delivery: Dell and VMware Reference Architecture
> Simplifying enterprise desktop deployment and management using
> Dell EqualLogic storage and VMware View: A highly scalable, end-to-end
> client virtualization framework. Read more!
> http://p.sf.net/sfu/dell-eql-dev2dev
> _______________________________________________
> Mifos-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/mifos-users
>
>

------------------------------------------------------------------------------
Centralized Desktop Delivery: Dell and VMware Reference Architecture
Simplifying enterprise desktop deployment and management using
Dell EqualLogic storage and VMware View: A highly scalable, end-to-end
client virtualization framework. Read more!
http://p.sf.net/sfu/dell-eql-dev2dev
_______________________________________________
Mifos-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mifos-users

Reply via email to