-
Notifications
You must be signed in to change notification settings - Fork 73
Expand file tree
/
Copy pathPopCommerceDemoData.xml
More file actions
229 lines (219 loc) · 16.6 KB
/
Copy pathPopCommerceDemoData.xml
File metadata and controls
229 lines (219 loc) · 16.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
<?xml version="1.0" encoding="UTF-8"?>
<!--
This software is in the public domain under CC0 1.0 Universal plus a
Grant of Patent License.
To the extent possible under law, the author(s) have dedicated all
copyright and related and neighboring rights to this software to the
public domain worldwide. This software is distributed without any
warranty.
You should have received a copy of the CC0 Public Domain Dedication
along with this software (see the LICENSE.md file). If not, see
<http://creativecommons.org/publicdomain/zero/1.0/>.
-->
<entity-facade-xml type="demo">
<!-- NOTE: other store/product demo data in mantle-udm in ZcaProductDemoData.xml -->
<!-- demo store settings for email/etc -->
<mantle.product.store.ProductStore productStoreId="POPC_DEFAULT" defaultLocale="en_US" defaultCurrencyUomId="USD"
storeDomain="demo.moqui.org" profileUrlPath="popc/Customer/Profile" productDataDocumentId="PopcProduct"/>
<mantle.product.store.ProductStoreDataDocument productStoreId="POPC_DEFAULT" typeEnumId="PsdtProduct" dataDocumentId="PopcProduct"/>
<moqui.basic.email.EmailTemplate emailTemplateId="PopcOrderPlaced" description="电商已下订单"
emailServerId="SYSTEM" bodyScreenLocation="component://SimpleScreens/screen/email/OrderPlaced.xml" webappName="webroot"
fromAddress="noreply@moqui.org" fromName="电商演示" ccAddresses="" bccAddresses="" sendPartial="Y"
subject="${fromName} 订单 ${orderId}"/>
<mantle.product.store.ProductStoreEmail productStoreId="POPC_DEFAULT" emailTypeEnumId="PsetOrderPlaced" fromDate="0"
emailTemplateId="PopcOrderPlaced" headerImagePath="images/MoquiLogoSmall.png" detailLinkPath="popc/Customer/OrderDetail"/>
<moqui.basic.email.EmailTemplate emailTemplateId="PopcShipmentShipped" description="电商发货已完成"
emailServerId="SYSTEM" bodyScreenLocation="component://SimpleScreens/screen/email/ShipmentShipped.xml" webappName="webroot"
fromAddress="noreply@moqui.org" fromName="电商演示" ccAddresses="" bccAddresses="" sendPartial="Y"
subject="${fromName} Shipment ${shipmentId}">
<attachments fileName="发票-${invoiceId}.pdf" screenRenderMode="xsl-fo" attachmentCondition="invoiceId"
attachmentLocation="component://SimpleScreens/screen/SimpleScreens/Accounting/Invoice/PrintInvoice.xml"/>
</moqui.basic.email.EmailTemplate>
<mantle.product.store.ProductStoreEmail productStoreId="POPC_DEFAULT" emailTypeEnumId="PsetShipmentShipped" fromDate="0"
emailTemplateId="PopcShipmentShipped" headerImagePath="images/MoquiLogoSmall.png" detailLinkPath="popc/Customer/OrderDetail"/>
<moqui.basic.email.EmailTemplate emailTemplateId="PopcInvoiceFinalized" description="电商发票已完成"
emailServerId="SYSTEM" bodyScreenLocation="component://SimpleScreens/screen/email/InvoiceFinalized.xml" webappName="webroot"
fromAddress="noreply@moqui.org" fromName="电商演示" ccAddresses="" bccAddresses="" sendPartial="Y"
subject="${fromName} 发票 ${invoiceId}">
<attachments fileName="发票-${invoiceId}.pdf" screenRenderMode="xsl-fo"
attachmentLocation="component://SimpleScreens/screen/SimpleScreens/Accounting/Invoice/PrintInvoice.xml"/>
</moqui.basic.email.EmailTemplate>
<mantle.product.store.ProductStoreEmail productStoreId="POPC_DEFAULT" emailTypeEnumId="PsetInvoiceFinalized" fromDate="0"
emailTemplateId="PopcInvoiceFinalized" headerImagePath="images/MoquiLogoSmall.png" detailLinkPath=""/>
<moqui.basic.email.EmailTemplate emailTemplateId="PopcInvoicesPastDue" description="电商逾期发票"
emailServerId="SYSTEM" bodyScreenLocation="component://SimpleScreens/screen/email/InvoicesPastDue.xml" webappName="webroot"
fromAddress="noreply@moqui.org" fromName="电商演示" ccAddresses="" bccAddresses="" sendPartial="Y"
subject="电商逾期发票">
<attachments fileName="发票-${invoiceId}.pdf" screenRenderMode="xsl-fo" forEachIn="invoiceList"
attachmentLocation="component://SimpleScreens/screen/SimpleScreens/Accounting/Invoice/PrintInvoice.xml"/>
</moqui.basic.email.EmailTemplate>
<mantle.product.store.ProductStoreEmail productStoreId="POPC_DEFAULT" emailTypeEnumId="PsetInvoicesPastDue" fromDate="0"
emailTemplateId="PopcInvoicesPastDue" headerImagePath="images/MoquiLogoSmall.png" detailLinkPath=""/>
<!-- ScreenScheduled report Receivable Summary, empty by default with demo and test data, with noResultsAbort=Y should just generate warning log -->
<moqui.screen.ScreenScheduled screenScheduledId="PopcAccRecAging" screenPath="/apps/PopcAdmin/Accounting/Reports/InvoiceAgingDetail"
formListFindId="AC_REP_INVAGD_RECSUM" renderMode="csv" noResultsAbort="Y"
cronExpression="0 0/30 * * * ?" fromDate="" thruDate="" emailTemplateId="SCREEN_RENDER" userId="EX_JOHN_DOE" userGroupId="ADMIN"
emailSubject="应收帐款帐龄汇总 CSV ${ec.l10n.format(ec.user.nowTimestamp, null)}"
saveToLocation="dbresource://mantle/report/accounting/PopcAccRecAging-${ec.l10n.format(ec.user.nowTimestamp, 'yyyy-MM-dd-HH-mm')}.csv"/>
<!-- ScreenScheduled report Payable Summary, has results after tests run -->
<!-- for testing, commented by default:
<moqui.screen.ScreenScheduled screenScheduledId="PopcAccPblAgingCsv" screenPath="/apps/PopcAdmin/Accounting/Reports/InvoiceAgingDetail"
formListFindId="AC_REP_INVAGD_PAYSUM" renderMode="csv" noResultsAbort="Y"
cronExpression="0 0/30 * * * ?" fromDate="" thruDate="" emailTemplateId="SCREEN_RENDER" userId="EX_JOHN_DOE" userGroupId="ADMIN"
emailSubject="Accounts Payable Aging Summary CSV ${ec.l10n.format(ec.user.nowTimestamp, null)}"
saveToLocation="dbresource://mantle/report/accounting/PopcAccPblAging-${ec.l10n.format(ec.user.nowTimestamp, 'yyyy-MM-dd-HH-mm')}.csv"/>
-->
<!-- ScreenScheduled report Payable Summary, has results after tests run -->
<!-- for testing, commented by default:
<moqui.screen.ScreenScheduled screenScheduledId="PopcAccPblAgingXlsx" screenPath="/apps/PopcAdmin/Accounting/Reports/InvoiceAgingDetail"
formListFindId="AC_REP_INVAGD_PAYDET" renderMode="xlsx" noResultsAbort="Y"
cronExpression="0 0/30 * * * ?" fromDate="" thruDate="" emailTemplateId="SCREEN_RENDER" userId="EX_JOHN_DOE" userGroupId="ADMIN"
emailSubject="Accounts Payable Aging Detail XLSX ${ec.l10n.format(ec.user.nowTimestamp, null)}"
saveToLocation="dbresource://mantle/report/accounting/PopcAccPblAging-${ec.l10n.format(ec.user.nowTimestamp, 'yyyy-MM-dd-HH-mm')}.xlsx"/>
-->
<!-- demo POPC Admin app users -->
<!-- 电商系统中常见角色定义
开发人员:张伟、王芳
测试人员:刘强、李娜
客户:王小明
会计:陈丽
目录管理:李明
系统管理员:赵军
电商管理员:王磊
采购员:周静
销售员:刘涛
销售主管:林华
仓库管理员:张强
仓库办事员:王艳
仓库总经理:杨杰
-->
<parties partyId="WangPopc" partyTypeEnumId="PtyPerson">
<person firstName="王" middleName="" lastName="磊"/>
<roles roleTypeId="Employee"/>
<fromRelationships relationshipTypeEnumId="PrtEmployee" fromRoleTypeId="Employee" toPartyId="ORG_ZIZI_RETAIL" toRoleTypeId="OrgInternal"/>
<mantle.party.contact.ContactMech contactMechTypeEnumId="CmtEmailAddress" infoString="wang.popc@upservce.com">
<mantle.party.contact.PartyContactMech contactMechPurposeId="EmailPrimary"/></mantle.party.contact.ContactMech>
<users userId="WangPopc" username="wanglei" userFullName="王磊"
currentPassword="16ac58bbfa332c1c55bd98b53e60720bfa90d394" passwordHashType="SHA"
passwordHint="莫基框架名,小写字母" currencyUomId="USD" locale="en_US" timeZone="US/Pacific"
emailAddress="wang.popc@upservce.com">
<groups userGroupId="POP_COMMERCE_ADMIN"/>
</users>
</parties>
<!-- 会计:陈丽 -->
<parties partyId="ChenAccounting" partyTypeEnumId="PtyPerson">
<person firstName="陈" middleName="" lastName="丽"/>
<roles roleTypeId="Employee"/><roles roleTypeId="Accountant"/>
<fromRelationships relationshipTypeEnumId="PrtEmployee" fromRoleTypeId="Employee" toPartyId="ORG_ZIZI_RETAIL" toRoleTypeId="OrgInternal"/>
<mantle.party.contact.ContactMech contactMechTypeEnumId="CmtEmailAddress" infoString="chen.accounting@upservce.com">
<mantle.party.contact.PartyContactMech contactMechPurposeId="EmailPrimary"/></mantle.party.contact.ContactMech>
<users userId="ChenAccounting" username="chenli" userFullName="陈丽"
currentPassword="16ac58bbfa332c1c55bd98b53e60720bfa90d394" passwordHashType="SHA"
passwordHint="莫基框架名,小写字母" currencyUomId="USD" locale="en_US" timeZone="US/Pacific"
emailAddress="chen.accounting@upservce.com">
<groups userGroupId="PopcAdminAccounting"/>
</users>
</parties>
<!-- 目录管理:李明 -->
<parties partyId="LiCatalog" partyTypeEnumId="PtyPerson">
<person firstName="李" middleName="" lastName="明"/>
<roles roleTypeId="Employee"/>
<fromRelationships relationshipTypeEnumId="PrtEmployee" fromRoleTypeId="Employee" toPartyId="ORG_ZIZI_RETAIL" toRoleTypeId="OrgInternal"/>
<mantle.party.contact.ContactMech contactMechTypeEnumId="CmtEmailAddress" infoString="li.catalog@Upservce.com">
<mantle.party.contact.PartyContactMech contactMechPurposeId="EmailPrimary"/></mantle.party.contact.ContactMech>
<users userId="LiCatalog" username="liming" userFullName="李明"
currentPassword="16ac58bbfa332c1c55bd98b53e60720bfa90d394" passwordHashType="SHA"
passwordHint="莫基框架名,小写字母" currencyUomId="USD" locale="en_US" timeZone="US/Pacific"
emailAddress="li.catalog@upservce.com">
<groups userGroupId="PopcAdminCatalogContent"/>
</users>
</parties>
<!-- 采购员:周静 -->
<parties partyId="ZhouPurchasing" partyTypeEnumId="PtyPerson">
<person firstName="周" middleName="" lastName="静"/>
<roles roleTypeId="Employee"/>
<fromRelationships relationshipTypeEnumId="PrtEmployee" fromRoleTypeId="Employee" toPartyId="ORG_ZIZI_RETAIL" toRoleTypeId="OrgInternal"/>
<mantle.party.contact.ContactMech contactMechTypeEnumId="CmtEmailAddress" infoString="zhou.purchasing@upservce.com">
<mantle.party.contact.PartyContactMech contactMechPurposeId="EmailPrimary"/></mantle.party.contact.ContactMech>
<users userId="ZhouPurchasing" username="zhoujing" userFullName="周静"
currentPassword="16ac58bbfa332c1c55bd98b53e60720bfa90d394" passwordHashType="SHA"
passwordHint="莫基框架名,小写字母" currencyUomId="USD" locale="en_US" timeZone="US/Pacific"
emailAddress="zhou.purchasing@upservce.com">
<groups userGroupId="PopcAdminPurchasing"/>
</users>
</parties>
<!-- 销售员:刘涛 -->
<parties partyId="LiuSales" partyTypeEnumId="PtyPerson">
<person firstName="刘" middleName="" lastName="涛"/>
<roles roleTypeId="Employee"/>
<fromRelationships relationshipTypeEnumId="PrtEmployee" fromRoleTypeId="Employee" toPartyId="ORG_ZIZI_RETAIL" toRoleTypeId="OrgInternal"/>
<mantle.party.contact.ContactMech contactMechTypeEnumId="CmtEmailAddress" infoString="liu.sales@upservce.com">
<mantle.party.contact.PartyContactMech contactMechPurposeId="EmailPrimary"/></mantle.party.contact.ContactMech>
<users userId="LiuSales" username="liutao" userFullName="刘涛"
currentPassword="16ac58bbfa332c1c55bd98b53e60720bfa90d394" passwordHashType="SHA"
passwordHint="莫基框架名,小写字母" currencyUomId="USD" locale="en_US" timeZone="US/Pacific"
emailAddress="liu.sales@upservce.com">
<groups userGroupId="PopcAdminSales"/>
</users>
</parties>
<!-- 销售主管:林华 -->
<parties partyId="LinSalesSup" partyTypeEnumId="PtyPerson">
<person firstName="林" middleName="" lastName="华"/>
<roles roleTypeId="Employee"/>
<fromRelationships relationshipTypeEnumId="PrtEmployee" fromRoleTypeId="Employee" toPartyId="ORG_ZIZI_RETAIL" toRoleTypeId="OrgInternal"/>
<mantle.party.contact.ContactMech contactMechTypeEnumId="CmtEmailAddress" infoString="lin.sales.sup@moqui.org">
<mantle.party.contact.PartyContactMech contactMechPurposeId="EmailPrimary"/></mantle.party.contact.ContactMech>
<users userId="LinSalesSup" username="linhua" userFullName="林华"
currentPassword="16ac58bbfa332c1c55bd98b53e60720bfa90d394" passwordHashType="SHA"
passwordHint="莫基框架名,小写字母" currencyUomId="USD" locale="en_US" timeZone="US/Pacific"
emailAddress="lin.sales.sup@upservce.com">
<groups userGroupId="PopcAdminSalesSup"/>
</users>
</parties>
<!-- 仓库管理员:张强 -->
<parties partyId="ZhangWarehouse" partyTypeEnumId="PtyPerson">
<person firstName="张" middleName="" lastName="强"/>
<roles roleTypeId="Employee"/>
<fromRelationships relationshipTypeEnumId="PrtEmployee" fromRoleTypeId="Employee" toPartyId="ORG_ZIZI_RETAIL" toRoleTypeId="OrgInternal"/>
<mantle.party.contact.ContactMech contactMechTypeEnumId="CmtEmailAddress" infoString="zhang.warehouse@upservce.com">
<mantle.party.contact.PartyContactMech contactMechPurposeId="EmailPrimary"/></mantle.party.contact.ContactMech>
<users userId="ZhangWarehouse" username="zhangqiang" userFullName="张强"
currentPassword="16ac58bbfa332c1c55bd98b53e60720bfa90d394" passwordHashType="SHA"
passwordHint="莫基框架名,小写字母" currencyUomId="USD" locale="en_US" timeZone="US/Pacific"
emailAddress="zhang.warehouse@upservce.com">
<groups userGroupId="PopcAdminWarehouse"/>
</users>
</parties>
<!-- demo POPC Admin app users - in user org limited groups -->
<!-- 仓库办事员:王艳 -->
<parties partyId="WangWhClerical" partyTypeEnumId="PtyPerson">
<person firstName="王" middleName="" lastName="艳"/>
<roles roleTypeId="Employee"/>
<fromRelationships relationshipTypeEnumId="PrtEmployee" fromRoleTypeId="Employee" toPartyId="ORG_ZIZI_RETAIL" toRoleTypeId="OrgInternal"/>
<mantle.party.contact.ContactMech contactMechTypeEnumId="CmtEmailAddress" infoString="wang.wh.clerical@upservce.com">
<mantle.party.contact.PartyContactMech contactMechPurposeId="EmailPrimary"/></mantle.party.contact.ContactMech>
<users userId="WangWhClerical" username="wangyang" userFullName="王艳"
currentPassword="16ac58bbfa332c1c55bd98b53e60720bfa90d394" passwordHashType="SHA"
passwordHint="莫基框架名,小写字母" currencyUomId="USD" locale="en_US" timeZone="US/Pacific"
emailAddress="wang.wh.clerical@upservce.com">
<groups userGroupId="PopcWhClericalLtd"/>
</users>
</parties>
<!-- 仓库总经理:杨杰 -->
<parties partyId="YangWhGeneral" partyTypeEnumId="PtyPerson">
<person firstName="杨" middleName="" lastName="杰"/>
<roles roleTypeId="Employee"/>
<fromRelationships relationshipTypeEnumId="PrtEmployee" fromRoleTypeId="Employee" toPartyId="ORG_ZIZI_RETAIL" toRoleTypeId="OrgInternal"/>
<mantle.party.contact.ContactMech contactMechTypeEnumId="CmtEmailAddress" infoString="yang.wh.general@upservce.com">
<mantle.party.contact.PartyContactMech contactMechPurposeId="EmailPrimary"/></mantle.party.contact.ContactMech>
<users userId="YangWhGeneral" username="yangjie" userFullName="杨杰"
currentPassword="16ac58bbfa332c1c55bd98b53e60720bfa90d394" passwordHashType="SHA"
passwordHint="莫基框架名,小写字母" currencyUomId="USD" locale="en_US" timeZone="US/Pacific"
emailAddress="Yang.wh.general@upservce.com">
<groups userGroupId="PopcWhGeneralLtd"/>
</users>
</parties>
<!-- run index for search -->
<org.moqui.search.SearchServices.indexDataFeedDocuments dataFeedId="MantleSearch"/>
<org.moqui.search.SearchServices.indexDataFeedDocuments dataFeedId="PopCommerceSearch"/>
</entity-facade-xml>