Contract在B2B
model中顯得極為重要,從產(chǎn)品的顯示,價(jià)格選擇,到最后的支付等等,都跟Contract相關(guān),Commerce中有關(guān)Contract的概念有
Business Account,Contract,Terms and Conditions,Participants等。
Business
Account代表著store和customer organization的關(guān)系,每個(gè)buyer
Organization擁有一個(gè)Business account,在account下可定義多個(gè)Contract,account中的內(nèi)容主要包括:
1. Organization name,contact person name
2. 該Organization所屬store的department和account representative,
3. purchase orders information
4. Invoice related info.
5. shipping method available
6. payment terms.
7. 該Organization的定制信息,可顯示在store的頁面上。
Contract
定義了organization在特定的時(shí)間段內(nèi)以特定的價(jià)格購買特定的產(chǎn)品。當(dāng)創(chuàng)建store的時(shí)候,系統(tǒng)就已經(jīng)產(chǎn)生了個(gè)default
conract,這個(gè)Contract不屬于Business
account,它適用于guest,unentitled和anon等沒有customer
Contract的用戶,當(dāng)用戶擁有多個(gè)Contract的時(shí)候,系統(tǒng)會比較,選出一個(gè)最適合用戶的合同。 Contract主要包括:
1. Participants:Contract的受眾,可以是buyer/seller organization,以及contacts。
2. Terms and conditions:定義了Contract的實(shí)現(xiàn)細(xì)節(jié),像產(chǎn)品目錄選擇,產(chǎn)品的價(jià)格,shipping,billing,order approval等。
相關(guān)文章:
TERMCOND database table column mapping
Case Study: WebSphere Commerce contract modeling
Contract Data Model圖:
整
個(gè)data model的核心是contract,account和trading三張表,contract和account和
trading是唯一性關(guān)系,contract和account是trading的一種,這個(gè)設(shè)計(jì)跟member的設(shè)計(jì)一樣,在member data
model中,orgentity和user跟member也是唯一性關(guān)系。理解了這一點(diǎn),整張圖看起來就比較好理解了。
Trading表
trading是所有的trading agreement的集合,包括account,contract,還包括RFQ,Auction等等,所有的這些aggreement type定義在TRDTYPE表中。
trdattach,attachment,termcond, tcsubtype,participant,policytc表: 這些表都是跟trading aggreement相關(guān)的,所以都跟trading表有關(guān)聯(lián)。
Account表
跟
account關(guān)聯(lián)的表是member和store,member表示該account的owner,store表示該account是屬于哪個(gè)
store。前面曾經(jīng)提到過每個(gè)Organization都可建立一個(gè)Business
account,但要注意該Organization并不是acccount的owner,而只是一個(gè)participant,所有Business
account的owner其實(shí)都是所屬store的owner。
以下是一個(gè)為ecom china創(chuàng)建的Business
account的片段,可以看到ecom china只是一個(gè)account holder,而真正的owner是ecom seller
organizationecom,該owner也就是store的owner。
<Participant role = "AccountHolder"
createTime = "2009-06-12T09:17:21" updateTime = "2009-06-12T09:17:21">
<ParticipantMember>
<OrganizationRef distinguishName = "o=ecom china,o=ecom buyer
organization,o=basics buyer organization,o=root organization"/>
</ParticipantMember>
</Participant>
<AccountUniqueKey name = "ecom China-10601">
<AccountOwner>
<OrganizationRef distinguishName = "ou=ecom seller
organizationecom,o=ecom seller organization,o=basics seller
organization,o=root organization"/>
</AccountOwner>
</AccountUniqueKey>
contract表
與contract相關(guān)的表有cntrstore,storecntr,catcntr,store.
在
創(chuàng)建一個(gè)store的時(shí)候,系統(tǒng)會創(chuàng)建一個(gè)usgae為‘reseller’的contract,這個(gè)contract是跟store本身相關(guān)的。
store表中CRTDBYCNTR_ID這個(gè)字段就指的是這個(gè)contract。該contract不是base
contract也不是default contract。
cntrstore表中存放的是用來創(chuàng)建store的xml信息和創(chuàng)建store的contract的id。
storecntr存放的是在該store中成功部署的contracts。
catcntr存放contract允許的catalog。
posted on 2009-09-01 14:29
Aaron.Chu 閱讀(189)
評論(0) 編輯 收藏