Files
ofbiz-plugins/birt/entitydef/ServiceReportsView.xml
T
Jacques Le Roux 7c4afbc1e9 Fixed: Implement and demonstrate few services in Birt Report Builder
(OFBIZ-9192)

Jacopo reported an issue on dev ML on the Party view profile 
The InvoiceItemProductAndParty view use a partyName from the Party
entity, but there is no partyName in the Party.

I simply commented out this line in the view definition. 
PartyNameView could be used later there.

I also fixed partyName in BirtMasterReportServices class,
formatted it and used Debug.logError instead of printStackTrace()

Thanks: Jacopo for report

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-plugins/trunk@1790499 13f79535-47bb-0310-9956-ffa450edef68
2017-04-07 04:23:17 +00:00

69 lines
3.2 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->
<entitymodel xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/entitymodel.xsd">
<title>View definitions for master report services</title>
<description>None</description>
<version>1.0</version>
<view-entity entity-name="OrderAndProductStore" package-name="org.ofbiz.birt">
<member-entity entity-alias="OH" entity-name="OrderHeader"/>
<member-entity entity-alias="PS" entity-name="ProductStore"/>
<alias-all entity-alias="PS"/>
<alias name="orderId" entity-alias="OH"/>
<view-link entity-alias="OH" rel-entity-alias="PS">
<key-map field-name="productStoreId"/>
</view-link>
</view-entity>
<view-entity entity-name="InvoiceItemProductAndParty" package-name="org.ofbiz.birt">
<member-entity entity-alias="INV" entity-name="Invoice"/>
<member-entity entity-alias="INITM" entity-name="InvoiceItem"/>
<member-entity entity-alias="PA" entity-name="Party"/>
<member-entity entity-alias="PRO" entity-name="Product"/>
<alias entity-alias="INV" name="invoiceId"/>
<alias entity-alias="INV" name="invoiceTypeId"/>
<alias entity-alias="INV" name="invoicePartyId" field="partyId"/>
<alias entity-alias="INV" name="statusId"/>
<alias entity-alias="INV" name="invoiceDate"/>
<alias entity-alias="INV" name="dueDate"/>
<alias entity-alias="INV" name="currencyUomId"/>
<!-- <alias entity-alias="INITM" name="invoiceId"/> -->
<alias entity-alias="INITM" name="invoiceItemSeqId"/>
<alias entity-alias="INITM" name="invoiceItemTypeId"/>
<alias entity-alias="INITM" name="quantity"/>
<alias entity-alias="INITM" name="amount"/>
<alias entity-alias="PA" name="partyId"/>
<!-- <alias entity-alias="PA" name="partyName"/> -->
<alias entity-alias="PRO" name="productId"/>
<alias entity-alias="PRO" name="primaryProductCategoryId"/>
<view-link entity-alias="INV" rel-entity-alias="INITM">
<key-map field-name="invoiceId"/>
</view-link>
<view-link entity-alias="INV" rel-entity-alias="PA">
<key-map field-name="partyId"/>
</view-link>
<view-link entity-alias="INITM" rel-entity-alias="PRO" rel-optional="true">
<key-map field-name="productId"/>
</view-link>
</view-entity>
</entitymodel>