Misc improvements in AR/AP webapp, part of Jira issue OFBIZ-1668. Thanks Sumit Pandit for this patch
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@655033 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -450,6 +450,12 @@
|
||||
<property key="AccountingApCompanyName">
|
||||
<value xml:lang="en">OFBiz: AP Manager</value>
|
||||
</property>
|
||||
<property key="AccountingApPageTitleFindVendors">
|
||||
<value xml:lang="en">Find Vendors</value>
|
||||
</property>
|
||||
<property key="AccountingApPageTitleFindVendorResults">
|
||||
<value xml:lang="en">Find Vendor Results</value>
|
||||
</property>
|
||||
<property key="AccountingApPageTitleListVendors">
|
||||
<value xml:lang="en">List Vendors</value>
|
||||
</property>
|
||||
|
||||
@@ -36,10 +36,9 @@ under the License.
|
||||
<response name="success" type="view" value="ListReports"/>
|
||||
</request-map>
|
||||
<!-- ================ Vendor requests ================ -->
|
||||
<request-map uri="listVendors">
|
||||
<request-map uri="findVendors">
|
||||
<security https="true" auth="true"/>
|
||||
<response name="success" type="view" value="ListVendors"/>
|
||||
<response name="error" type="view" value="ListVendors"/>
|
||||
<response name="success" type="view" value="FindVendors"/>
|
||||
</request-map>
|
||||
<request-map uri="editVendor">
|
||||
<security https="true" auth="true"/>
|
||||
@@ -49,21 +48,22 @@ under the License.
|
||||
<request-map uri="createVendor">
|
||||
<security https="true" auth="true"/>
|
||||
<event type="service" invoke="createVendor"></event>
|
||||
<response name="success" type="view" value="ListVendors"/>
|
||||
<response name="error" type="view" value="ListVendors"/>
|
||||
<response name="success" type="view" value="FindVendors"/>
|
||||
<response name="error" type="view" value="FindVendors"/>
|
||||
</request-map>
|
||||
<request-map uri="updateVendor">
|
||||
<security https="true" auth="true"/>
|
||||
<event type="service" invoke="updateVendor"></event>
|
||||
<response name="success" type="view" value="ListVendors"/>
|
||||
<response name="error" type="view" value="ListVendors"/>
|
||||
<response name="success" type="view" value="FindVendors"/>
|
||||
<response name="error" type="view" value="FindVendors"/>
|
||||
</request-map>
|
||||
|
||||
<!-- end of request mappings -->
|
||||
|
||||
<!-- View Mappings -->
|
||||
<view-map name="main" type="screen" page="component://accounting/widget/ap/CommonScreens.xml#main"/>
|
||||
<view-map name="ListReports" type="screen" page="component://accounting/widget/ap/InvoiceScreens.xml#ListReports"/>
|
||||
<!-- Vendor Mappings -->
|
||||
<view-map name="ListVendors" type="screen" page="component://accounting/widget/ap/CommonScreens.xml#ListVendors"/>
|
||||
<!-- Vendor Mappings -->
|
||||
<view-map name="FindVendors" type="screen" page="component://accounting/widget/ap/CommonScreens.xml#FindVendors"/>
|
||||
<view-map name="EditVendor" type="screen" page="component://accounting/widget/ap/CommonScreens.xml#EditVendor"/>
|
||||
</site-conf>
|
||||
@@ -156,49 +156,6 @@ under the License.
|
||||
</section>
|
||||
</screen>
|
||||
|
||||
<screen name="ReportsDecorator">
|
||||
<section>
|
||||
<actions>
|
||||
<set field="tabButtonItem" value="listReports"/>
|
||||
</actions>
|
||||
<widgets>
|
||||
<decorator-screen name="main-decorator" location="${parameter.mainDecoratorLocation}">
|
||||
<decorator-section name="body">
|
||||
<decorator-section-include name="body"/>
|
||||
</decorator-section>
|
||||
</decorator-screen>
|
||||
</widgets>
|
||||
</section>
|
||||
</screen>
|
||||
|
||||
<screen name="ListVendors">
|
||||
<section>
|
||||
<actions>
|
||||
<set field="tabButtonItem" value="listVendors"/>
|
||||
<set field="titleProperty" value="AccountingApPageTitleListVendors"/>
|
||||
<set field="viewIndex" from-field="parameters.VIEW_INDEX" type="Integer"/>
|
||||
<set field="viewSize" from-field="parameters.VIEW_SIZE" type="Integer" default-value="10"/>
|
||||
<entity-condition entity-name="Vendor" list-name="vendors">
|
||||
<condition-expr field-name="partyId" value="${parameters.partyId}"/>
|
||||
</entity-condition>
|
||||
</actions>
|
||||
<widgets>
|
||||
<decorator-screen name="main-decorator" location="${parameter.mainDecoratorLocation}">
|
||||
<decorator-section name="body">
|
||||
<section>
|
||||
<widgets>
|
||||
<container style="button-bar"><link target="editVendor" text="${uiLabelMap.CommonNew} ${uiLabelMap.PartyVendor}" style="buttontext"/></container>
|
||||
<screenlet title="${uiLabelMap.PartyVendor} ${uiLabelMap.CommonList}" navigation-form-name="ListVendors">
|
||||
<include-form name="ListVendors" location="component://accounting/widget/ap/forms/VendorForms.xml"/>
|
||||
</screenlet>
|
||||
</widgets>
|
||||
</section>
|
||||
</decorator-section>
|
||||
</decorator-screen>
|
||||
</widgets>
|
||||
</section>
|
||||
</screen>
|
||||
|
||||
<screen name="EditVendor">
|
||||
<section>
|
||||
<actions>
|
||||
@@ -215,4 +172,28 @@ under the License.
|
||||
</widgets>
|
||||
</section>
|
||||
</screen>
|
||||
|
||||
<screen name="FindVendors">
|
||||
<section>
|
||||
<actions>
|
||||
<set field="tabButtonItem" value="findVendors"></set>
|
||||
<set field="titleProperty" value="AccountingApPageTitleFindVendors"/>
|
||||
<set field="viewIndex" from-field="parameters.VIEW_INDEX" type="Integer"/>
|
||||
<set field="viewSize" from-field="parameters.VIEW_SIZE" type="Integer" default-value="10"/>
|
||||
</actions>
|
||||
<widgets>
|
||||
<decorator-screen name="main-decorator" location="${parameter.mainDecoratorLocation}">
|
||||
<decorator-section name="body">
|
||||
<container style="button-bar"><link target="editVendor" text="${uiLabelMap.CommonNew} ${uiLabelMap.PartyVendor}" style="buttontext"/></container>
|
||||
<screenlet name="findVendors" collapsible="true" title="${uiLabelMap.AccountingApPageTitleFindVendors}">
|
||||
<include-form name="FindVendors" location="component://accounting/widget/ap/forms/VendorForms.xml"/>
|
||||
</screenlet>
|
||||
<screenlet title="${uiLabelMap.AccountingApPageTitleFindVendorResults}" navigation-form-name="ListVendors">
|
||||
<include-form name="ListVendors" location="component://accounting/widget/ap/forms/VendorForms.xml"/>
|
||||
</screenlet>
|
||||
</decorator-section>
|
||||
</decorator-screen>
|
||||
</widgets>
|
||||
</section>
|
||||
</screen>
|
||||
</screens>
|
||||
@@ -24,13 +24,13 @@ under the License.
|
||||
<screen name="ListReports">
|
||||
<section>
|
||||
<actions>
|
||||
<set field="headerItem" value="Reports"/>
|
||||
<set field="tabButtonItem" value="reports"/>
|
||||
<set field="titleProperty" value="AccountingArPageTitleListReports"/>
|
||||
<set field="viewIndex" from-field="parameters.VIEW_INDEX" type="Integer"/>
|
||||
<set field="viewIndex" from-field="parameters.VIEW_INDEX" type="Integer"/>
|
||||
<set field="viewSize" from-field="parameters.VIEW_SIZE" type="Integer" default-value="10"/>
|
||||
</actions>
|
||||
<widgets>
|
||||
<decorator-screen name="ReportsDecorator" location="component://accounting/widget/ap/CommonScreens.xml">
|
||||
<decorator-screen name="main-decorator" location="component://accounting/widget/ap/CommonScreens.xml">
|
||||
<decorator-section name="body">
|
||||
<screenlet title="${uiLabelMap.AccountingReports}" navigation-form-name="ListReports">
|
||||
<include-form name="ListReports" location="component://accounting/widget/ap/forms/InvoiceForms.xml"/>
|
||||
|
||||
@@ -24,8 +24,8 @@ under the License.
|
||||
<menu-item name="agreements" title="${uiLabelMap.AccountingAgreements}"><link target="FindAgreement"/></menu-item>
|
||||
<menu-item name="invoices" title="${uiLabelMap.AccountingInvoicesMenu}"><link target="findInvoices"/></menu-item>
|
||||
<menu-item name="payments" title="${uiLabelMap.AccountingPaymentsMenu}"><link target="findPayments"/></menu-item>
|
||||
<menu-item name="listVendors" title="${uiLabelMap.PartyVendor} ${uiLabelMap.CommonList}"><link target="listVendors"/></menu-item>
|
||||
<menu-item name="listReports" title="${uiLabelMap.AccountingReports}"><link target="listReports"/></menu-item>
|
||||
<menu-item name="findVendors" title="${uiLabelMap.PartyVendor} ${uiLabelMap.CommonList}"><link target="findVendors"/></menu-item>
|
||||
<menu-item name="reports" title="${uiLabelMap.AccountingReports}"><link target="listReports"/></menu-item>
|
||||
<menu-item name="Logout" title="${uiLabelMap.CommonLogout}" align-style="col-right" selected-style="selected">
|
||||
<condition><not><if-empty field-name="userLogin"/></not></condition>
|
||||
<link target="logout"/>
|
||||
@@ -39,7 +39,7 @@ under the License.
|
||||
<menu-item name="findAgreement" title="${uiLabelMap.AccountingAgreementAvailable}"><link target="FindAgreement"></link></menu-item>
|
||||
</menu>
|
||||
<menu name="ApMainVendorMenu" type="simple" default-selected-style="tabButtonSelected">
|
||||
<menu-item name="listVendors" title="${uiLabelMap.CommonShowAll} ${uiLabelMap.PartyVendor}"><link target="listVendors"></link></menu-item>
|
||||
<menu-item name="listVendors" title="${uiLabelMap.CommonShowAll} ${uiLabelMap.PartyVendor}"><link target="findVendors"></link></menu-item>
|
||||
</menu>
|
||||
<menu name="ApMainReportMenu" type="simple" default-selected-style="tabButtonSelected">
|
||||
<menu-item name="listReport" title="${uiLabelMap.CommonShowAll} ${uiLabelMap.AccountingReports}"><link target="listReports"></link></menu-item>
|
||||
|
||||
@@ -20,9 +20,13 @@ under the License.
|
||||
|
||||
<forms xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/widget-form.xsd">
|
||||
<form name="ListVendors" type="list" list-name="listIt" paginate-target="listVendors" odd-row-style="alternate-row" default-table-style="basic-table hover-bar">
|
||||
<form name="ListVendors" type="list" list-name="listIt" paginate-target="findVendors" odd-row-style="alternate-row" default-table-style="basic-table hover-bar">
|
||||
<actions>
|
||||
<entity-condition entity-name="Vendor"><order-by field-name="partyId"/></entity-condition>
|
||||
<service service-name="performFind" result-map-name="result" result-map-list-name="listIt">
|
||||
<field-map field-name="inputFields" env-name="parameters"/>
|
||||
<field-map field-name="entityName" value="Vendor"/>
|
||||
<field-map field-name="orderBy" value="partyId"/>
|
||||
</service>
|
||||
</actions>
|
||||
<field name="partyId" title="${uiLabelMap.PartyPartyId}" widget-style="buttontext">
|
||||
<hyperlink also-hidden="false" description="${partyId}" target="editVendor?partyId=${partyId}"/>
|
||||
@@ -51,4 +55,14 @@ under the License.
|
||||
<field name="submitButton" use-when="partyId==null" title="${uiLabelMap.CommonCreate}"><submit button-type="button"/></field>
|
||||
<field name="submitButton" use-when="partyId!=null&&vendor!=null" title="${uiLabelMap.CommonUpdate}"><submit button-type="button"/></field>
|
||||
</form>
|
||||
<form name="FindVendors" type="single" target="findVendors" title="Find and List Vendors"
|
||||
header-row-style="header-row" default-table-style="basic-table">
|
||||
<field name="partyId" title="${uiLabelMap.PartyVendor} ${uiLabelMap.CommonId}" parameter-name="partyId"><text-find size="25" default-option="contains"></text-find></field>
|
||||
<field name="manifestCompanyName" title="${uiLabelMap.PartyManifestCompanyName}" parameter-name="manifestCompanyName"><text-find size="25" default-option="contains"></text-find></field>
|
||||
<field name="manifestCompanyTitle" title="${uiLabelMap.PartyManifestCompanyTitle}" parameter-name="manifestCompanyTitle"><text-find size="25" default-option="contains"></text-find></field>
|
||||
<field name="manifestLogoUrl" title="${uiLabelMap.PartyManifestLogoUrl}" parameter-name="manifestLogoUrl"><text-find size="25" default-option="contains"></text-find></field>
|
||||
<field name="manifestPolicies" title="${uiLabelMap.PartyManifestPolicies}" parameter-name="manifestPolicies"><text-find size="25" default-option="contains"></text-find></field>
|
||||
<field name="noConditionFind"><hidden value="Y"/></field>
|
||||
<field name="find" title="${uiLabelMap.CommonFind}"><submit/></field>
|
||||
</form>
|
||||
</forms>
|
||||
@@ -72,21 +72,6 @@ under the License.
|
||||
</section>
|
||||
</screen>
|
||||
|
||||
<screen name="ReportsDecorator">
|
||||
<section>
|
||||
<actions>
|
||||
<set field="headerItem" value="${uiLabelMap.AccountingReports}"/>
|
||||
</actions>
|
||||
<widgets>
|
||||
<decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}">
|
||||
<decorator-section name="body">
|
||||
<decorator-section-include name="body"/>
|
||||
</decorator-section>
|
||||
</decorator-screen>
|
||||
</widgets>
|
||||
</section>
|
||||
</screen>
|
||||
|
||||
<screen name="CommonPaymentDecorator">
|
||||
<section>
|
||||
<actions>
|
||||
|
||||
@@ -29,7 +29,7 @@ under the License.
|
||||
<set field="titleProperty" value="AccountingArPageTitleListReports"/>
|
||||
</actions>
|
||||
<widgets>
|
||||
<decorator-screen name="ReportsDecorator" location="${parameters.mainDecoratorLocation}">
|
||||
<decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}">
|
||||
<decorator-section name="body">
|
||||
<screenlet title="${uiLabelMap.CommonList} ${uiLabelMap.AccountingReports}">
|
||||
<section>
|
||||
|
||||
Reference in New Issue
Block a user