-
EBS
中客户表的关系
注:包括销售的客户,采购的供应商。
hz_parties
是比较基本的表,
里面可以是组织,<
/p>
也可以是人,
这里面只是存储了基本的
信
息,
这些信息会被其它表
shared,
hz_relations
表里是这些
hz_partie
s
之前的关系,
里面用
subject
_id
和
object_id
形成对应
关系。
HZ_PARTY_SITES
里面有关于
hz_parties
的细节联系信息,如
mailstop,
addressee,
但
注意,这个表里面没有电话,邮箱等这些信息,这些信息是放在
HZ_CONTACT_POINTS
表
里面的,
在
HZ_CONTACT_POINTS
表里用
字段
OWNER_TABLE_NAME/OWNER_TABLE_ID
进行对
应
在,
OWNER_TABLE_NAME
可能是
hz_
party_sites
,也可能是
hz_parties
p>
,这时候
OWNER_TABLE_ID
与
之对应
的可能是
PARTY_SIT
E_ID
,
也可能是
party_id
,
hz_locations
存有具体的
address
信息,
hz_party_sites
p>
通过
LOCATION_ID
与之相关联。
HZ_CUST_ACCOUNTS
存有客户
account
信息,一个
h
z_party
可能有多个
accounts,
hz_party
和
account
的有关系用表
HZ_CUST_ACCOUNT_ROLES
< br>表记录,
HZ_CUST_ACCT_SITES_A
LL
存了
account
的所有
site
信息,
我理解这个表是存了这些
p>
site
可以有哪些作用,然后通过其
<
/p>
字段
PARTY_SITE_ID
关联到
hz_party_sites,
HZ_CUST_SITE
_USES_ALL
这个表是比较实用的,好像做
OM
时
ship_to,bill_to
,最终是<
/p>
用的这个表里面的信息,
包括
account
科目信息
,
这个表里
面同样没有
address
具体信
息,
是通过
CUST_ACCT_SITE_ID
关联到
HZ_CUST_ACCT_SITES_ALL
,
进而再关联到
hz_party_sites->hz_l
ocations
HZ_PERSON_PROFILES
和
HZ_ORGANIZATION_PROFILES
分别是<
/p>
hz_parties
里为
person
和
organization
时的补充
信息,都是通过
party_id
相关联。
我觉得这些表之前的关系还是比较复杂,还有其他一些表,在这里就不说了,觉得
比较
搞笑的是
hz_contact_points
这个表设计的比较精巧啊。我觉得搞这么多表,最主要应
该是两个目的:<
/p>
1
,灵活,
2
,
减少冗余。
整理了从
Oracle<
/p>
官网上的表说明如下:
/*
-------------------------------------------
--------------------------------
-------
----------------------------------------------*/
/* ------------------------------------
--------------------- AR
--------------
--------------------------------------------------
---*/
/* ------------------------------
---------------------------*/
/*--
客户题头表
,The
HZ_CUST_ACCOUNTS table stores information about
customer
accounts , or business
relationships that the deploying company
establishes with a party of type
Organization or Person. This table focuses on
business relationships and how
transactions are conducted
in
the
a
party
can
have
multiple
customer
accounts,
this
table
might contain several
records for a single party.
For
example, an individual person can establish a
personal account, family
account, and a
professional account for a consulting practice. */
select * from
_CUST_ACCOUNTS;
/*--
客户地址表
The
HZ_CUST_ACCT_SITES_ALL table stores all customer
account
sites across all operating
units. Customer account sites are
addresses,
for
customer
accounts,
where
the
deploying
company
does
business
with
its customers. One
customer account can have multiple
customer
account
sites,
and
customer
account
sites
for
one
customer
account
can
belong to multiple
operating units. */
select * from
_CUST_ACCT_SITES_ALL;
/*--
客户业务目的表
The
HZ_CUST_SITE_USES_ALL table stores business
purposes
assigned to customer account
sites, for example Bill-To, Ship-To, and
Statements. Each customer account site
can have one or more purposes.
This
table is a child of the HZ_CUST_ACCT_SITES_ALL
table, with the foreign
key
CUST_ACCT_SITE_ID. The HZ_CUST_SITE_USES_ALL table
also stores operating
unit identifier,
though the HZ_CUST_ACCT_SITES_ALL table itself
stores the
operating unit for customer
account sites.*/
select * from
_CUST_SITE_USES_ALL;
/*The
HZ_LOCATIONS table
stores information
about a delivery or postal
address
such as building
number, street address, postal code,
and
directions
to
a
location.
This
table
provides
physical
location
information
about parties
(organizations and people) and customer
accounts.
For
example,
you
can
store
information
such
as
Building
300,
500
Oracle
Parkway, 94065, and
from
highway 101, go east on Twin Dolphins Drive, turn
left on Oracle Parkway,
watch for the
Building 300 sign on your right.
Records
in
the
HZ_LOCATIONS
table
can
store
delivery
and
postal
information
about
a location through
columns such as the LOCATION_DIRECTIONS,
POST_OFFICE, and TIME_ZONE columns. You
can also use the HZ_LOCATIONS table to
store latitude and longitude
information. Data in the
HZ_LOCATIONS
table is also used to determine the appropriate
tax authority and
tax rates for sales
tax and VAT calculations..
The primary
key for this table is LOCATION_ID. */
select * from _locations;
/*The HZ_PARTY_SITES table links a
party (see HZ_PARTIES) and a location (see
HZ_LOCATIONS. in hz_locations, there is
no column of part_id) and stores
location-specific party information
such
as
MAILSTOP
and
ADDRESSEE.
One
party
can
optionally
have
one
or
more
party
sites. One location
can optionally be used by one or more
parties. For example, 500 Oracle
Parkway can be specified as a party site for
Oracle Corporation. This party site can
then be used for
multiple customer
accounts within the same party.
The
primary key for this table is PARTY_SITE_ID.*/
select * from _PARTY_SITES;
-
-
-
-
-
-
-
-
-
上一篇:radius详细配置步骤
下一篇:欧陆银行中英文对照版