<commit_before><?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="titleProperty" value="OrderManager"/>
                <set field="activeSubMenuItem" value="main"/>
            </actions>
            <widgets>
                <decorator-screen name="CommonOrderAppDecorator" location="${parameters.mainDecoratorLocation}">
                    <decorator-section name="body">
                        <container style="${styles.grid_row}">
                            <container style="${styles.grid_large}4 ${styles.grid_cell}">
                                <include-screen name="DashboardStatsOrderTotalDay" location="component://order/widget/ordermgr/CommonWidgets.xml"/>
                            </container>
                            <container style="${styles.grid_large}4 ${styles.grid_cell}">
                                <include-screen name="DashboardStatsOrderTotalMonth" location="component://order/widget/ordermgr/CommonWidgets.xml"/>
                            </container>
                            <container style="${styles.grid_large}4 ${styles.grid_cell}">
                                <include-screen name="DashboardStatsReturnReasonWeek" location="component://order/widget/ordermgr/CommonWidgets.xml"/>
                            </container>
                        </container>
                        <container style="${styles.grid_row}">
                            <container style="${styles.grid_large}6 ${styles.grid_cell}">
                                <include-screen name="ListSalesOrders" location="component://order/widget/ordermgr/OrderViewScreens.xml"/>
                            </container>
                            <container style="${styles.grid_large}6 ${styles.grid_cell}">
                                <include-screen name="BestSellingProducts" location="component://product/widget/catalog/ProductScreens.xml"/>
                            </container>
                            <!-- SCIPIO: Removed for now. Add back in if you want to use the Portal Concept instead.
                            <container style="${styles.grid_large}12 ${styles.grid_cell}">
                                <include-portal-page id="OrderPortalPage"/>
                            </container>-->
                        </container>
                    </decorator-section>
                </decorator-screen>
            </widgets>
        </section>
    </screen>
    
    <screen name="OrderHeaderView">
        <section>
            <actions>
                <property-map resource="OrderUiLabels" map-name="uiLabelMap"/>
                <set field="title" value="${uiLabelMap.OrderOrder}: ${parameters.orderId}"/>
                <set field="activeSubMenuItem" value="Summary"/>
                <set field="layoutSettings.javaScripts[]" value="/ordermgr-js/order.js" global="true"/>
                <set field="layoutSettings.javaScripts[]" value="/ordermgr-js/OrderShippingInfo.js" global="true"/>
                <!-- <set field="layoutSettings.javaScripts[]" value="/ordermgr-js/geoAutoCompleter.js" global="true"/>-->
                <script location="component://order/webapp/ordermgr/WEB-INF/actions/order/OrderView.groovy"/>
                <script location="component://order/webapp/ordermgr/WEB-INF/actions/order/OrderViewWebSecure.groovy"/>
            </actions>
            <widgets>
                <decorator-screen name="CommonOrderDecorator" location="${parameters.mainDecoratorLocation}">
                    <decorator-section name="body">
                        <section>
                            <condition>
                                <not><if-empty field="orderHeader"/></not>
                            </condition>
                            <widgets>
                                <!--<include-menu location="component://order/widget/ordermgr/OrderMenus.xml" name="OrderSubTabBar"/> replaced by orderaction-->
                                <include-screen name="orderHeader"/>
                                <container style="${styles.grid_row}">
                                    <container style="${styles.grid_large}12 ${styles.grid_cell}">
                                        <platform-specific>
                                            <html><html-template location="component://order/webapp/ordermgr/order/orderitems.ftl"/></html>
                                        </platform-specific>
                                    </container>
                                </container>
                                <include-screen name="orderFooter"/>
                            </widgets>
                            <fail-widgets>
                                <label style="common-msg-error" text="${uiLabelMap.OrderNoOrderFound}: ${parameters.orderId}"/>
                            </fail-widgets>
                        </section>
                    </decorator-section>
                </decorator-screen>
            </widgets>
        </section>
    </screen>
    
    <screen name="orderHeader">
        <section>
            <condition>
                <not><if-empty field="orderHeader"/></not>
            </condition>
            <widgets>
               <include-screen name="orderactions"/>
               <container style="${styles.grid_row}">
                    <container style="${styles.grid_large}4 ${styles.grid_cell}">
                            <include-screen name="orderinfo"/>
                            <include-screen name="orderterms"/>
                    </container>
                    <container style="${styles.grid_large}4 ${styles.grid_cell}">
                            <include-screen name="ordercontactinfo"/>
                    </container>
                    <container style="${styles.grid_large}4 ${styles.grid_cell}">
                            <include-screen name="orderpaymentinfo"/>
                            <include-screen name="projectAssoOrder"/>
                    </container>
                </container>
            </widgets>
            <fail-widgets>
                <label style="common-msg-error" text="${uiLabelMap.OrderNoOrderFound}: [${orderId}]"></label>
            </fail-widgets>
        </section>
    </screen>
    <screen name="orderFooter">
        <section>
            <condition>
                <not><if-empty field="orderHeader"/></not>
            </condition>
            <widgets>
               <container style="${styles.grid_row}">
                    <container style="${styles.grid_large}12 ${styles.grid_cell}">
                                <!--  Move to seperate screen
                                <include-screen name="ordershippinginfo"/>-->
                                <platform-specific>
                                    <html><html-template location="component://order/webapp/ordermgr/order/ordernotes.ftl"/></html>
                                </platform-specific>
                                <platform-specific>
                                    <html><html-template location="component://order/webapp/ordermgr/order/transitions.ftl"/></html>
                                </platform-specific>
                                <include-screen name="OrderSalesReps"/>
                    </container>
                </container><commit_msg>Added customerstats to order info screen<commit_after><?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="titleProperty" value="OrderManager"/>
                <set field="activeSubMenuItem" value="main"/>
            </actions>
            <widgets>
                <decorator-screen name="CommonOrderAppDecorator" location="${parameters.mainDecoratorLocation}">
                    <decorator-section name="body">
                        <container style="${styles.grid_row}">
                            <container style="${styles.grid_large}4 ${styles.grid_cell}">
                                <include-screen name="DashboardStatsOrderTotalDay" location="component://order/widget/ordermgr/CommonWidgets.xml"/>
                            </container>
                            <container style="${styles.grid_large}4 ${styles.grid_cell}">
                                <include-screen name="DashboardStatsOrderTotalMonth" location="component://order/widget/ordermgr/CommonWidgets.xml"/>
                            </container>
                            <container style="${styles.grid_large}4 ${styles.grid_cell}">
                                <include-screen name="DashboardStatsReturnReasonWeek" location="component://order/widget/ordermgr/CommonWidgets.xml"/>
                            </container>
                        </container>
                        <container style="${styles.grid_row}">
                            <container style="${styles.grid_large}6 ${styles.grid_cell}">
                                <include-screen name="ListSalesOrders" location="component://order/widget/ordermgr/OrderViewScreens.xml"/>
                            </container>
                            <container style="${styles.grid_large}6 ${styles.grid_cell}">
                                <include-screen name="BestSellingProducts" location="component://product/widget/catalog/ProductScreens.xml"/>
                            </container>
                            <!-- SCIPIO: Removed for now. Add back in if you want to use the Portal Concept instead.
                            <container style="${styles.grid_large}12 ${styles.grid_cell}">
                                <include-portal-page id="OrderPortalPage"/>
                            </container>-->
                        </container>
                    </decorator-section>
                </decorator-screen>
            </widgets>
        </section>
    </screen>
    
    <screen name="OrderHeaderView">
        <section>
            <actions>
                <property-map resource="OrderUiLabels" map-name="uiLabelMap"/>
                <set field="title" value="${uiLabelMap.OrderOrder}: ${parameters.orderId}"/>
                <set field="activeSubMenuItem" value="Summary"/>
                <set field="layoutSettings.javaScripts[]" value="/ordermgr-js/order.js" global="true"/>
                <set field="layoutSettings.javaScripts[]" value="/ordermgr-js/OrderShippingInfo.js" global="true"/>
                <!-- <set field="layoutSettings.javaScripts[]" value="/ordermgr-js/geoAutoCompleter.js" global="true"/>-->
                <script location="component://order/webapp/ordermgr/WEB-INF/actions/order/OrderView.groovy"/>
                <script location="component://order/webapp/ordermgr/WEB-INF/actions/order/OrderViewWebSecure.groovy"/>
            </actions>
            <widgets>
                <decorator-screen name="CommonOrderDecorator" location="${parameters.mainDecoratorLocation}">
                    <decorator-section name="body">
                        <section>
                            <condition>
                                <not><if-empty field="orderHeader"/></not>
                            </condition>
                            <widgets>
                                <!--<include-menu location="component://order/widget/ordermgr/OrderMenus.xml" name="OrderSubTabBar"/> replaced by orderaction-->
                                <include-screen name="orderHeader"/>
                                <container style="${styles.grid_row}">
                                    <container style="${styles.grid_large}12 ${styles.grid_cell}">
                                        <platform-specific>
                                            <html><html-template location="component://order/webapp/ordermgr/order/orderitems.ftl"/></html>
                                        </platform-specific>
                                    </container>
                                </container>
                                <include-screen name="orderFooter"/>
                            </widgets>
                            <fail-widgets>
                                <label style="common-msg-error" text="${uiLabelMap.OrderNoOrderFound}: ${parameters.orderId}"/>
                            </fail-widgets>
                        </section>
                    </decorator-section>
                </decorator-screen>
            </widgets>
        </section>
    </screen>
    
    <screen name="orderHeader">
        <section>
            <condition>
                <not><if-empty field="orderHeader"/></not>
            </condition>
            <widgets>
               <include-screen name="orderactions"/>
               <container style="${styles.grid_row}">
                    <container style="${styles.grid_large}4 ${styles.grid_cell}">
                            <include-screen name="orderinfo"/>
                            <include-screen name="orderterms"/>
                    </container>
                    <container style="${styles.grid_large}4 ${styles.grid_cell}">
                            <include-screen name="ordercontactinfo"/>
                    </container>
                    <container style="${styles.grid_large}4 ${styles.grid_cell}">
                            <include-screen name="orderpaymentinfo"/>
                            <include-screen name="ordercustomerinfo"/>
                        <include-screen name="projectAssoOrder"/>
                    </container>
                </container>
            </widgets>
            <fail-widgets>
                <label style="common-msg-error" text="${uiLabelMap.OrderNoOrderFound}: [${orderId}]"></label>
            </fail-widgets>
        </section>
    </screen>
    <screen name="orderFooter">
        <section>
            <condition>
                <not><if-empty field="orderHeader"/></not>
            </condition>
            <widgets>
               <container style="${styles.grid_row}">
                    <container style="${styles.grid_large}12 ${styles.grid_cell}">
                                <!--  Move to seperate screen
                                <include-screen name="ordershippinginfo"/>-->
                                <platform-specific>
                                    <html><html-template location="component://order/webapp/ordermgr/order/ordernotes.ftl"/></html>
                                </platform-specific>
                                <platform-specific>
                                    <html><html-template location="component://order/webapp/ordermgr/order/transitions.ftl"/></html>
                                </platform-specific>
                                <include-screen name="OrderSalesReps"/>
                    </container>
                </container>
{'fraction_non_alphanumeric': 0.12679797848905014, 'fraction_numerical': 0.002850848775430867, 'mean_word_length': 1.4109653233364574, 'pattern_counts': {'":': 0, '<': 284, '<?xml version=': 2, '>': 284, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 16}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 16, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4888668', 'n_tokens_mistral': 3675, 'n_tokens_neox': 3485, 'n_words': 540}