git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@826954 13f79535-47bb-0310-9956-ffa450edef68
264 lines
15 KiB
XML
264 lines
15 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.
|
|
-->
|
|
|
|
<screens xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/widget-screen.xsd">
|
|
|
|
|
|
<screen name="CommonTaxAuthorityDecorator">
|
|
<section>
|
|
<actions>
|
|
<set field="headerItem" value="TaxAuthorities"/>
|
|
|
|
<set field="taxAuthPartyId" from-field="parameters.taxAuthPartyId"/>
|
|
<set field="taxAuthGeoId" from-field="parameters.taxAuthGeoId"/>
|
|
<entity-one entity-name="TaxAuthority" value-field="taxAuthority"/>
|
|
<entity-one entity-name="PartyNameView" value-field="taxAuthPartyName" auto-field-map="false">
|
|
<field-map field-name="partyId" from-field="taxAuthority.taxAuthPartyId"/>
|
|
</entity-one>
|
|
<get-related-one value-field="taxAuthority" relation-name="TaxAuthGeo" to-value-field="taxAuthGeo" use-cache="true"/>
|
|
</actions>
|
|
<widgets>
|
|
<decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}">
|
|
<decorator-section name="body">
|
|
<section>
|
|
<!-- do check for ACCOUNTING, _VIEW permission -->
|
|
<condition>
|
|
<if-has-permission permission="ACCOUNTING" action="_VIEW"/>
|
|
</condition>
|
|
<widgets>
|
|
<section>
|
|
<condition>
|
|
<and>
|
|
<not><if-empty field="taxAuthPartyId"/></not>
|
|
<not><if-empty field="taxAuthGeoId"/></not>
|
|
</and>
|
|
</condition>
|
|
<widgets>
|
|
<include-menu name="TaxAuthorityTabBar" location="component://accounting/widget/TaxAuthorityMenus.xml"/>
|
|
<container><link target="EditTaxAuthority" text="${uiLabelMap.AccountingNewTaxAuthority}" style="buttontext"/></container>
|
|
<label style="h1" text="${uiLabelMap[labelTitleProperty]} ${uiLabelMap.CommonFor}: ${uiLabelMap.AccountingTaxAuthorityParty} "${taxAuthPartyName.firstName} ${taxAuthPartyName.lastName} ${taxAuthPartyName.groupName}" [${uiLabelMap.CommonId}:${taxAuthPartyId}], ${uiLabelMap.CommonGeo} "${taxAuthGeo.geoName}" [${uiLabelMap.CommonId}:${taxAuthGeoId}] ${${extraFunctionName}}"/>
|
|
</widgets>
|
|
</section>
|
|
</widgets>
|
|
<fail-widgets>
|
|
<label style="h3">${uiLabelMap.AccountingViewPermissionError}</label>
|
|
</fail-widgets>
|
|
</section>
|
|
<decorator-section-include name="body"/>
|
|
</decorator-section>
|
|
</decorator-screen>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
|
|
<screen name="FindTaxAuthority">
|
|
<section>
|
|
<actions>
|
|
<set field="titleProperty" value="PageTitleFindTaxAuthority"/>
|
|
<set field="tabButtonItem" value="FindTaxAuthority"/>
|
|
</actions>
|
|
<widgets>
|
|
<decorator-screen name="CommonTaxAuthorityDecorator" location="${parameters.taxAuthDecoratorLocation}">
|
|
<decorator-section name="body">
|
|
<screenlet title="${uiLabelMap.PageTitleFindTaxAuthority}">
|
|
<container><link target="EditTaxAuthority" text="${uiLabelMap.AccountingNewTaxAuthority}" style="buttontext"/></container>
|
|
<include-form name="FindTaxAuthority" location="component://accounting/widget/TaxAuthorityForms.xml"/>
|
|
</screenlet>
|
|
</decorator-section>
|
|
</decorator-screen>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
|
|
<screen name="EditTaxAuthority">
|
|
<section>
|
|
<actions>
|
|
<set field="titleProperty" value="PageTitleEditTaxAuthority"/>
|
|
<set field="tabButtonItem" value="EditTaxAuthority"/>
|
|
<set field="labelTitleProperty" value="PageTitleEditTaxAuthority"/>
|
|
|
|
<set field="taxAuthPartyId" from-field="parameters.taxAuthPartyId"/>
|
|
<set field="taxAuthGeoId" from-field="parameters.taxAuthGeoId"/>
|
|
<entity-one entity-name="TaxAuthority" value-field="taxAuthority"/>
|
|
</actions>
|
|
<widgets>
|
|
<decorator-screen name="CommonTaxAuthorityDecorator" location="${parameters.taxAuthDecoratorLocation}">
|
|
<decorator-section name="body">
|
|
<screenlet title="${uiLabelMap.PageTitleEditTaxAuthority}">
|
|
<include-form name="EditTaxAuthority" location="component://accounting/widget/TaxAuthorityForms.xml"/>
|
|
</screenlet>
|
|
</decorator-section>
|
|
</decorator-screen>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
|
|
<screen name="EditTaxAuthorityCategories">
|
|
<section>
|
|
<actions>
|
|
<set field="titleProperty" value="PageTitleEditTaxAuthorityCategories"/>
|
|
<set field="tabButtonItem" value="EditTaxAuthorityCategories"/>
|
|
<set field="labelTitleProperty" value="PageTitleEditTaxAuthorityCategories"/>
|
|
|
|
<set field="taxAuthPartyId" from-field="parameters.taxAuthPartyId"/>
|
|
<set field="taxAuthGeoId" from-field="parameters.taxAuthGeoId"/>
|
|
</actions>
|
|
<widgets>
|
|
<decorator-screen name="CommonTaxAuthorityDecorator" location="${parameters.taxAuthDecoratorLocation}">
|
|
<decorator-section name="body">
|
|
<screenlet id="TaxAuthorityCategoriesPanel" title="${uiLabelMap.PageTitleAddTaxAuthorityCategory}" collapsible="true">
|
|
<include-form name="AddTaxAuthorityCategory" location="component://accounting/widget/TaxAuthorityForms.xml"/>
|
|
</screenlet>
|
|
<include-form name="ListTaxAuthorityCategories" location="component://accounting/widget/TaxAuthorityForms.xml"/>
|
|
</decorator-section>
|
|
</decorator-screen>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
<screen name="EditTaxAuthorityAssocs">
|
|
<section>
|
|
<actions>
|
|
<set field="titleProperty" value="PageTitleEditTaxAuthorityAssocs"/>
|
|
<set field="tabButtonItem" value="EditTaxAuthorityAssocs"/>
|
|
<set field="labelTitleProperty" value="PageTitleEditTaxAuthorityAssocs"/>
|
|
|
|
<set field="taxAuthPartyId" from-field="parameters.taxAuthPartyId"/>
|
|
<set field="taxAuthGeoId" from-field="parameters.taxAuthGeoId"/>
|
|
</actions>
|
|
<widgets>
|
|
<decorator-screen name="CommonTaxAuthorityDecorator" location="${parameters.taxAuthDecoratorLocation}">
|
|
<decorator-section name="body">
|
|
<screenlet id="TaxAuthorityAssocsPanel" title="${uiLabelMap.PageTitleAddTaxAuthorityAssoc}" collapsible="true">
|
|
<include-form name="AddTaxAuthorityAssoc" location="component://accounting/widget/TaxAuthorityForms.xml"/>
|
|
</screenlet>
|
|
<include-form name="ListTaxAuthorityAssocs" location="component://accounting/widget/TaxAuthorityForms.xml"/>
|
|
</decorator-section>
|
|
</decorator-screen>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
<screen name="EditTaxAuthorityGlAccounts">
|
|
<section>
|
|
<actions>
|
|
<set field="titleProperty" value="PageTitleEditTaxAuthorityGlAccounts"/>
|
|
<set field="tabButtonItem" value="EditTaxAuthorityGlAccounts"/>
|
|
<set field="labelTitleProperty" value="PageTitleEditTaxAuthorityGlAccounts"/>
|
|
|
|
<set field="taxAuthPartyId" from-field="parameters.taxAuthPartyId"/>
|
|
<set field="taxAuthGeoId" from-field="parameters.taxAuthGeoId"/>
|
|
</actions>
|
|
<widgets>
|
|
<decorator-screen name="CommonTaxAuthorityDecorator" location="${parameters.taxAuthDecoratorLocation}">
|
|
<decorator-section name="body">
|
|
<screenlet id="TaxAuthorityGlAccountPanel" title="${uiLabelMap.PageTitleAddTaxAuthorityGlAccount}" collapsible="true">
|
|
<include-form name="AddTaxAuthorityGlAccount" location="component://accounting/widget/TaxAuthorityForms.xml"/>
|
|
</screenlet>
|
|
<include-form name="ListTaxAuthorityGlAccounts" location="component://accounting/widget/TaxAuthorityForms.xml"/>
|
|
</decorator-section>
|
|
</decorator-screen>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
<screen name="EditTaxAuthorityRateProducts">
|
|
<section>
|
|
<actions>
|
|
<set field="titleProperty" value="PageTitleEditTaxAuthorityRateProducts"/>
|
|
<set field="tabButtonItem" value="EditTaxAuthorityRateProducts"/>
|
|
<set field="labelTitleProperty" value="PageTitleEditTaxAuthorityRateProducts"/>
|
|
|
|
<set field="taxAuthPartyId" from-field="parameters.taxAuthPartyId"/>
|
|
<set field="taxAuthGeoId" from-field="parameters.taxAuthGeoId"/>
|
|
</actions>
|
|
<widgets>
|
|
<decorator-screen name="CommonTaxAuthorityDecorator" location="${parameters.taxAuthDecoratorLocation}">
|
|
<decorator-section name="body">
|
|
<screenlet id="TaxAuthorityCategoryPanel" title="${uiLabelMap.PageTitleAddTaxAuthorityCategory}" collapsible="true">
|
|
<include-form name="AddTaxAuthorityRateProduct" location="component://accounting/widget/TaxAuthorityForms.xml"/>
|
|
</screenlet>
|
|
<include-form name="ListTaxAuthorityRateProducts" location="component://accounting/widget/TaxAuthorityForms.xml"/>
|
|
</decorator-section>
|
|
</decorator-screen>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
|
|
<screen name="ListTaxAuthorityParties">
|
|
<section>
|
|
<actions>
|
|
<set field="titleProperty" value="PageTitleListTaxAuthorityParties"/>
|
|
<set field="tabButtonItem" value="ListTaxAuthorityParties"/>
|
|
<set field="labelTitleProperty" value="Standard costs"/>
|
|
|
|
<set field="taxAuthPartyId" from-field="parameters.taxAuthPartyId"/>
|
|
<set field="taxAuthGeoId" from-field="parameters.taxAuthGeoId"/>
|
|
</actions>
|
|
<widgets>
|
|
<decorator-screen name="CommonTaxAuthorityDecorator" location="${parameters.taxAuthDecoratorLocation}">
|
|
<decorator-section name="body">
|
|
<screenlet title="${uiLabelMap.PageTitleListTaxAuthorityParties}">
|
|
<container>
|
|
<link target="EditTaxAuthorityPartyInfo" text="${uiLabelMap.AccountingNewTaxAuthorityPartyInfo}" style="buttontext">
|
|
<parameter param-name="taxAuthPartyId"/>
|
|
<parameter param-name="taxAuthGeoId"/>
|
|
</link>
|
|
</container>
|
|
<include-form name="FindTaxAuthorityParties" location="component://accounting/widget/TaxAuthorityForms.xml"/>
|
|
</screenlet>
|
|
<screenlet title="${uiLabelMap.PageTitleListTaxAuthorityParties}">
|
|
<include-form name="ListTaxAuthorityParties" location="component://accounting/widget/TaxAuthorityForms.xml"/>
|
|
</screenlet>
|
|
</decorator-section>
|
|
</decorator-screen>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
<screen name="EditTaxAuthorityPartyInfo">
|
|
<section>
|
|
<actions>
|
|
<set field="titleProperty" value="PageTitleEditTaxAuthorityPartyInfo"/>
|
|
<set field="tabButtonItem" value="EditTaxAuthorityPartyInfo"/>
|
|
|
|
<set field="taxAuthPartyId" from-field="parameters.taxAuthPartyId"/>
|
|
<set field="taxAuthGeoId" from-field="parameters.taxAuthGeoId"/>
|
|
<set field="partyId" from-field="parameters.partyId"/>
|
|
<set field="fromDate" from-field="parameters.fromDate"/>
|
|
|
|
<entity-one entity-name="PartyTaxAuthInfo" value-field="partyTaxAuthInfo"/>
|
|
</actions>
|
|
<widgets>
|
|
<decorator-screen name="CommonTaxAuthorityDecorator" location="${parameters.taxAuthDecoratorLocation}">
|
|
<decorator-section name="body">
|
|
<screenlet title="${uiLabelMap.PageTitleEditTaxAuthorityPartyInfo}">
|
|
<container>
|
|
<link target="EditTaxAuthorityPartyInfo" text="${uiLabelMap.AccountingNewTaxAuthorityPartyInfo}" style="buttontext">
|
|
<parameter param-name="taxAuthPartyId"/>
|
|
<parameter param-name="taxAuthGeoId"/>
|
|
</link>
|
|
</container>
|
|
<include-form name="EditTaxAuthorityPartyInfo" location="component://accounting/widget/TaxAuthorityForms.xml"/>
|
|
</screenlet>
|
|
</decorator-section>
|
|
</decorator-screen>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
</screens>
|