ilscipio/scipio-erp

View on GitHub
applications/accounting/widget/tools/ImportExportScreens.xml

Summary

Maintainability
Test Coverage
<?xml version="1.0" encoding="UTF-8"?>
<!--
This file is subject to the terms and conditions defined in the
files 'LICENSE' and 'NOTICE', which are part of this source
code package.
-->

<screens xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/widget-screen.xsd"> 
    <screen name="ImportExport">
        <section>
            <actions>
                <set field="activeSubMenuItem" value="importExport"/>
                <set field="titleProperty" value="CommonImportExport"/>
            </actions>
            <widgets>
                <decorator-screen name="CommonImportExportDecorator" location="${parameters.mainDecoratorLocation}">
                    <decorator-section name="body">
                        <screenlet>
                            <label>${uiLabelMap.CommonThisIsAPlaceholder}</label>
                        </screenlet>
                    </decorator-section>
                </decorator-screen>
            </widgets>
        </section>
    </screen>    
    <screen name="ImportExportInvoice"><!-- Renamed from ImportExport -->
        <section>
            <actions>
                <set field="activeSubMenuItem" value="importInvoice"/>
                <set field="titleProperty" value="AccountingInvoice"/>
                <entity-one entity-name="PartyGroup" value-field="partyGroup">
                    <field-map field-name="partyId" from-field="parameters.organizationPartyId"/>
                </entity-one>
            </actions>
            <widgets>
                <decorator-screen name="CommonImportExportDecorator" location="${parameters.mainDecoratorLocation}">
                    <decorator-section name="body">   
                        <label style="heading">${uiLabelMap.CommonImport}</label>
                        <include-form name="ImportInvoice" location="component://accounting/widget/tools/ImportExportForms.xml"/>

                        <label style="heading">${uiLabelMap.CommonExport}</label>
                        <include-form name="ExportInvoice" location="component://accounting/widget/tools/ImportExportForms.xml"/>
                    </decorator-section>
                </decorator-screen>
            </widgets>
        </section>
    </screen>
    <screen name="ExportInvoiceCsv">
        <section>
            <actions>
                <property-map resource="CommonUiLabels" map-name="uiLabelMap" global="true"/>
                <property-map resource="AccountingUiLabels" map-name="uiLabelMap" global="true"/>
                <set field="organizationPartyId" from-field="parameters.organizationPartyId"/>
            </actions>
            <widgets>
                <include-form name="ExportInvoiceCsv" location="component://accounting/widget/tools/ImportExportForms.xml"/>           
            </widgets>
        </section>
    </screen>
    
    <!-- Transactions -->
    <screen name="ExportTransactions">
        <section>
            <actions>
                <set field="activeSubMenuItem" value="exportTransactions"/>
                <set field="titleProperty" value="AccountingAcctgTrans"/>
                <entity-one entity-name="PartyGroup" value-field="partyGroup">
                    <field-map field-name="partyId" from-field="parameters.organizationPartyId"/>
                </entity-one>
            </actions>
            <widgets>
                <decorator-screen name="CommonImportExportDecorator" location="${parameters.mainDecoratorLocation}">
                    <decorator-section name="body">   
                        <include-form name="ExportTransactions" location="component://accounting/widget/tools/ImportExportForms.xml"/>
                    </decorator-section>
                </decorator-screen>
            </widgets>
        </section>
    </screen>
    <screen name="ExportTransactionCsv">
        <section>
            <actions>
                <property-map resource="CommonUiLabels" map-name="uiLabelMap" global="true"/>
                <property-map resource="AccountingUiLabels" map-name="uiLabelMap" global="true"/>
                <set field="organizationPartyId" from-field="parameters.organizationPartyId"/>
            </actions>
            <widgets>
                <include-form name="ExportTransactionCsv" location="component://accounting/widget/tools/ImportExportForms.xml"/>           
            </widgets>
        </section>
    </screen>
</screens>