ilscipio/scipio-erp

View on GitHub
applications/accounting/widget/AccountingScreens.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="main">
        <section>
            <actions>
                <set field="activeSubMenuItem" value="main"/>
                <set field="organizationPartyId" from-field="parameters.organizationPartyId" default-value="${defaultOrganizationPartyId}" global="true"/>                
                <set field="viewSize" value="10" />
                <set field="titleProperty" value="Accounting"/>
            </actions>
            <widgets>
                <!-- <platform-specific><html><html-template location="component://accounting/webapp/accounting/main.ftl"/></html></platform-specific> -->  
                <decorator-screen name="CommonAccountingAppDecorator" location="${parameters.mainDecoratorLocation}">                    
                    <decorator-section name="body">
                        <container style="${styles.grid_row}">
                            <container style="${styles.grid_large}6 ${styles.grid_cell}">
                                    <include-screen name="ListPayments" location="component://accounting/widget/payments/PaymentScreens.xml" />
                            </container>
                            <container style="${styles.grid_large}6 ${styles.grid_cell}">
                                 <include-screen name="ScipioIncomesExpenses" location="${parameters.mainDecoratorLocation}"/>
                            </container>
                        </container>
                    
                        <container style="${styles.grid_row}">
                            <container style="${styles.grid_large}6 ${styles.grid_cell}">
                                 <include-screen name="ApPastDueInvoices" location="${parameters.mainDecoratorLocation}"/>      
                            </container>
                            <container style="${styles.grid_large}6 ${styles.grid_cell}">
                                <include-screen name="ArPastDueInvoices" location="${parameters.mainDecoratorLocation}"/>
                            </container>
                        </container>
                        
                        <container style="${styles.grid_row}">
                            <container style="${styles.grid_large}12 ${styles.grid_cell}">
                            </container>                            
                        </container>
                    </decorator-section>
                </decorator-screen>
            </widgets>
        </section>
    </screen>

    <screen name="ScpEgltCommon.js">
        <section>
            <actions>
                <property-map resource="CommonUiLabels" map-name="uiLabelMap" global="true"/>
                <service service-name="getUserPreferenceGroup" result-map="prefResult">
                    <field-map field-name="userPrefGroupTypeId" value="GLOBAL_PREFERENCES"/>
                </service>
                <set field="userPreferences" from-field="prefResult.userPrefMap" global="true"/>
                <script location="component://common/webcommon/WEB-INF/actions/includes/GetLayoutSettingsVisualThemeResources.groovy" />
            </actions>
            <widgets>
                <platform-specific><html><html-template location="component://accounting/webapp/accounting/static/ScpEgltCommon.js.ftl"/></html></platform-specific>
            </widgets>
        </section>
    </screen>
    
</screens>