added find Journal entry screen.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@574777 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -25,7 +25,11 @@ AccountingPermissionError=Security Error\: to run ${methodShortDescription} you
|
||||
|
||||
AcctgGlPartyLabel=GL Party :
|
||||
AcctgGlAcctLabel=GL Account :
|
||||
AcctgPartyGlJournalSummary=Summary
|
||||
AcctgGlJournalEntry=GL Journal
|
||||
AcctgFindGlJournalEntry=Find Journal Entry
|
||||
AcctgEditGlJournalEntry=Journal Entry
|
||||
AcctgNewGlJournalEntry=New Journal Entry
|
||||
AcctgAssignGlAccount=Assign GL Account
|
||||
AcctgChartOfAcctsTabMenu=Chart of Accounts
|
||||
AcctgListGlAcctOrg=List GL Organization
|
||||
|
||||
@@ -441,6 +441,10 @@ under the License.
|
||||
<response name="success" type="view" value="EditGlJournalEntry"/>
|
||||
<response name="error" type="view" value="EditGlJournalEntry"/>
|
||||
</request-map>
|
||||
<request-map uri="FindGlJournalEntry">
|
||||
<security https="true" auth="true"/>
|
||||
<response name="success" type="view" value="FindGlJournalEntry"/>
|
||||
</request-map>
|
||||
<request-map uri="EditGlJournalEntry">
|
||||
<security https="true" auth="true"/>
|
||||
<response name="success" type="view" value="EditGlJournalEntry"/>
|
||||
@@ -1445,6 +1449,7 @@ under the License.
|
||||
|
||||
<!-- Party Accounts -->
|
||||
<view-map name="PartyAccountsSummary" type="screen" page="component://accounting/widget/AccountingScreens.xml#PartyAccountsSummary"/>
|
||||
<view-map name="FindGlJournalEntry" type="screen" page="component://accounting/widget/AccountingScreens.xml#FindGlJournalEntry"/>
|
||||
<view-map name="EditGlJournalEntry" type="screen" page="component://accounting/widget/AccountingScreens.xml#EditGlJournalEntry"/>
|
||||
<view-map name="ListUnpostedAcctgTrans" type="screen" page="component://accounting/widget/AccountingScreens.xml#ListUnpostedAcctgTrans"/>
|
||||
|
||||
|
||||
@@ -21,65 +21,6 @@ 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="EditGlJournalEntry" type="single" target="createGlJournalEntry" title="" default-map-name="journal">
|
||||
<field name="acctgTransTypeId" title="${uiLabelMap.AccountingTransactionType}">
|
||||
<drop-down>
|
||||
<entity-options entity-name="AcctgTransType" description="${description}">
|
||||
<entity-order-by field-name="acctgTransTypeId"/>
|
||||
</entity-options>
|
||||
</drop-down>
|
||||
</field>
|
||||
<field name="glFiscalTypeId">
|
||||
<drop-down>
|
||||
<entity-options entity-name="GlFiscalType" description="${description}">
|
||||
<entity-order-by field-name="glFiscalTypeId"/>
|
||||
</entity-options>
|
||||
</drop-down>
|
||||
</field>
|
||||
<field name="organizationPartyId" parameter-name="organizationPartyId">
|
||||
<drop-down>
|
||||
<entity-options entity-name="PartyRoleAndPartyDetail" key-field-name="partyId" description="${partyId}">
|
||||
<!-- entity-options entity-name="PartyRoleAndPartyDetail" description="${organizationPartyId}" -->
|
||||
<entity-constraint name="roleTypeId" value="INTERNAL_ORGANIZATIO"/>
|
||||
<entity-order-by field-name="partyId"/>
|
||||
</entity-options>
|
||||
</drop-down>
|
||||
</field>
|
||||
<field name="partyId" parameter-name="partyId">
|
||||
<drop-down>
|
||||
<entity-options entity-name="Party" key-field-name="partyId" description="${partyId}">
|
||||
<entity-order-by field-name="partyId"/>
|
||||
</entity-options>
|
||||
</drop-down>
|
||||
</field>
|
||||
<field name="roleTypeId" parameter-name="roleTypeId">
|
||||
<drop-down>
|
||||
<entity-options entity-name="RoleType" key-field-name="roleTypeId" description="${description}">
|
||||
<entity-order-by field-name="roleTypeId"/>
|
||||
</entity-options>
|
||||
</drop-down>
|
||||
</field>
|
||||
<field name="invoiceId"><text size="20" maxlength="20"/></field>
|
||||
<field name="paymentId"><text size="20" maxlength="20"/></field>
|
||||
<field name="produtId"><text size="20" maxlength="20"/></field>
|
||||
<field name="debitGlAccountId">
|
||||
<drop-down>
|
||||
<entity-options entity-name="GlAccount" description="${glAccountId}: ${accountName}" key-field-name="glAccountId">
|
||||
<entity-order-by field-name="glAccountId"/>
|
||||
</entity-options>
|
||||
</drop-down>
|
||||
</field>
|
||||
<field name="creditGlAccountId">
|
||||
<drop-down>
|
||||
<entity-options entity-name="GlAccount" description="${glAccountId}: ${accountName}" key-field-name="glAccountId">
|
||||
<entity-order-by field-name="glAccountId"/>
|
||||
</entity-options>
|
||||
</drop-down>
|
||||
</field>
|
||||
<field name="amount"><text size="20" maxlength="20"/></field>
|
||||
<field name="submitButton" title="${uiLabelMap.CommonCreate}" widget-style="smallSubmit"><submit button-type="button"/></field>
|
||||
</form>
|
||||
|
||||
<form name="ListGlAccountOrganization" list-name="listIt" target="" title="" type="list" paginate-target="ListGlAccountOrganization">
|
||||
<actions>
|
||||
<set field="entityName" value="GlAccountOrganization"/>
|
||||
|
||||
@@ -115,11 +115,30 @@ under the License.
|
||||
</section>
|
||||
</screen>
|
||||
|
||||
<screen name="FindGlJournalEntry">
|
||||
<section>
|
||||
<actions>
|
||||
<set field="titleProperty" value="AcctgFindGlJournalEntry"/>
|
||||
<set field="tabButtonItem" value="FindGlJournalEntry"/>
|
||||
<set field="labelTitleProperty" value="AcctgFindGlJournalEntry"/>
|
||||
</actions>
|
||||
<widgets>
|
||||
<decorator-screen name="CommonPartyAccountsDecorator" location="${parameters.mainDecoratorLocation}">
|
||||
<decorator-section name="body">
|
||||
<include-menu name="JournalEntryActionsBar" location="component://accounting/widget/Menus.xml"/>
|
||||
<include-form name="FindGlJournalEntry" location="component://accounting/widget/JournalEntryForms.xml"/>
|
||||
<include-form name="ListJournalEntries" location="component://accounting/widget/JournalEntryForms.xml"/>
|
||||
</decorator-section>
|
||||
</decorator-screen>
|
||||
</widgets>
|
||||
</section>
|
||||
</screen>
|
||||
|
||||
<screen name="EditGlJournalEntry">
|
||||
<section>
|
||||
<actions>
|
||||
<set field="titleProperty" value="AcctgEditGlJournalEntry"/>
|
||||
<set field="tabButtonItem" value="EditGlJournalEntry"/>
|
||||
<set field="tabButtonItem" value="FindGlJournalEntry"/>
|
||||
<set field="labelTitleProperty" value="AcctgEditGlJournalEntry"/>
|
||||
<!-- entity-condition entity-name="GlAccountOrganization" list-name="entityList" use-cache="true" >
|
||||
<condition-expr field-name="glAccountId" operator="greater" value="0" />
|
||||
@@ -132,7 +151,8 @@ under the License.
|
||||
<widgets>
|
||||
<decorator-screen name="CommonPartyAccountsDecorator" location="${parameters.mainDecoratorLocation}">
|
||||
<decorator-section name="body">
|
||||
<include-form name="EditGlJournalEntry" location="component://accounting/webapp/accounting/chartofaccounts/GlAccountForms.xml"/>
|
||||
<include-menu name="JournalEntryActionsBar" location="component://accounting/widget/Menus.xml"/>
|
||||
<include-form name="EditGlJournalEntry" location="component://accounting/widget/JournalEntryForms.xml"/>
|
||||
</decorator-section>
|
||||
</decorator-screen>
|
||||
</widgets>
|
||||
|
||||
@@ -246,12 +246,13 @@ under the License.
|
||||
<widgets>
|
||||
<decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}">
|
||||
<decorator-section name="body">
|
||||
<section>
|
||||
<section><condition><not><if-empty field-name="organizationPartyId"/></not></condition>
|
||||
<widgets>
|
||||
<include-menu name="PartyAccountsTabBar" location="component://accounting/widget/Menus.xml"/>
|
||||
<decorator-section-include name="body"/>
|
||||
</widgets>
|
||||
</section>
|
||||
<!-- Todo: Add fail widget to show partyId missing error -->
|
||||
</decorator-section>
|
||||
</decorator-screen>
|
||||
</widgets>
|
||||
|
||||
@@ -0,0 +1,162 @@
|
||||
<?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.
|
||||
-->
|
||||
|
||||
<forms xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/widget-form.xsd">
|
||||
|
||||
<form name="FindGlJournalEntry" type="single" target="FindGlJournalEntry" title="" default-map-name="journal">
|
||||
<field name="acctgTransTypeId" title="${uiLabelMap.AccountingTransactionType}">
|
||||
<drop-down>
|
||||
<entity-options entity-name="AcctgTransType" description="${description}">
|
||||
<entity-order-by field-name="acctgTransTypeId"/>
|
||||
</entity-options>
|
||||
</drop-down>
|
||||
</field>
|
||||
<field name="glFiscalTypeId">
|
||||
<drop-down>
|
||||
<entity-options entity-name="GlFiscalType" description="${description}">
|
||||
<entity-order-by field-name="glFiscalTypeId"/>
|
||||
</entity-options>
|
||||
</drop-down>
|
||||
</field>
|
||||
<field name="organizationPartyId" parameter-name="organizationPartyId">
|
||||
<drop-down>
|
||||
<entity-options entity-name="PartyRoleAndPartyDetail" key-field-name="partyId" description="${partyId}">
|
||||
<!-- entity-options entity-name="PartyRoleAndPartyDetail" description="${organizationPartyId}" -->
|
||||
<entity-constraint name="roleTypeId" value="INTERNAL_ORGANIZATIO"/>
|
||||
<entity-order-by field-name="partyId"/>
|
||||
</entity-options>
|
||||
</drop-down>
|
||||
</field>
|
||||
<field name="partyId" parameter-name="partyId">
|
||||
<drop-down>
|
||||
<entity-options entity-name="Party" key-field-name="partyId" description="${partyId}">
|
||||
<entity-order-by field-name="partyId"/>
|
||||
</entity-options>
|
||||
</drop-down>
|
||||
</field>
|
||||
<field name="invoiceId"><text size="20" maxlength="20"/></field>
|
||||
<field name="paymentId"><text size="20" maxlength="20"/></field>
|
||||
<field name="produtId"><text size="20" maxlength="20"/></field>
|
||||
<field name="debitGlAccountId">
|
||||
<drop-down>
|
||||
<entity-options entity-name="GlAccount" description="${glAccountId}: ${accountName}" key-field-name="glAccountId">
|
||||
<entity-order-by field-name="glAccountId"/>
|
||||
</entity-options>
|
||||
</drop-down>
|
||||
</field>
|
||||
<field name="creditGlAccountId">
|
||||
<drop-down>
|
||||
<entity-options entity-name="GlAccount" description="${glAccountId}: ${accountName}" key-field-name="glAccountId">
|
||||
<entity-order-by field-name="glAccountId"/>
|
||||
</entity-options>
|
||||
</drop-down>
|
||||
</field>
|
||||
<field name="noConditionFind"><hidden value="Y"/><!-- if this isn't there then with all fields empty no query will be done --></field>
|
||||
<field name="submitButton" title="${uiLabelMap.CommonFind}" widget-style="buttontext"><submit button-type="text-link"/></field>
|
||||
</form>
|
||||
|
||||
<form name="ListJournalEntries" type="list" title="List Journal Transactions" list-name="listIt">
|
||||
<actions>
|
||||
<service result-map-list-name="listIt" result-map-name="result" service-name="performFind">
|
||||
<field-map field-name="inputFields" env-name="parameters"/>
|
||||
<field-map field-name="entityName" value="AcctgTrans"/>
|
||||
</service>
|
||||
</actions>
|
||||
<field name="acctgTransId" widget-style="buttontext">
|
||||
<hyperlink also-hidden="false" description="${acctgTransId}" target="ListAcctgTransEntries?acctgTransId=${acctgTransId}"/>
|
||||
</field>
|
||||
<field name="transactionDate"><display/></field>
|
||||
<field name="acctgTransTypeId"><display-entity entity-name="AcctgTransType" description="${description}"/></field>
|
||||
<field name="glFiscalTypeId"><display-entity entity-name="GlFiscalType" description="${description}"/></field>
|
||||
<field name="invoiceId" use-when="invoiceId!=null" widget-style="buttontext">
|
||||
<hyperlink also-hidden="false" description="${invoiceId}" target="editInvoice?invoiceId=${invoiceId}"/>
|
||||
</field>
|
||||
<field name="invoiceId" use-when="invoiceId==null"><display/></field>
|
||||
<field name="paymentId" use-when="paymentId!=null">
|
||||
<hyperlink also-hidden="false" description="${paymentId}" target="editPayment?paymentId=${paymentId}"/>
|
||||
</field>
|
||||
<field name="paymentId" use-when="paymentId==null"><display/></field>
|
||||
<field name="partyId"><display/></field>
|
||||
<field name="post" title="${uiLabelMap.AccountingPostTransaction}" widget-style="buttontext">
|
||||
<hyperlink description="${uiLabelMap.AccountingPostTransaction}" target="postAcctgTrans?acctgTransId=${acctgTransId}&organizationPartyId=${organizationPartyId}" also-hidden="false"/>
|
||||
</field>
|
||||
</form>
|
||||
|
||||
<form name="EditGlJournalEntry" type="single" target="createGlJournalEntry" title="" default-map-name="journal">
|
||||
<field name="acctgTransTypeId" title="${uiLabelMap.AccountingTransactionType}">
|
||||
<drop-down>
|
||||
<entity-options entity-name="AcctgTransType" description="${description}">
|
||||
<entity-order-by field-name="acctgTransTypeId"/>
|
||||
</entity-options>
|
||||
</drop-down>
|
||||
</field>
|
||||
<field name="glFiscalTypeId">
|
||||
<drop-down>
|
||||
<entity-options entity-name="GlFiscalType" description="${description}">
|
||||
<entity-order-by field-name="glFiscalTypeId"/>
|
||||
</entity-options>
|
||||
</drop-down>
|
||||
</field>
|
||||
<field name="organizationPartyId" parameter-name="organizationPartyId">
|
||||
<drop-down>
|
||||
<entity-options entity-name="PartyRoleAndPartyDetail" key-field-name="partyId" description="${partyId}">
|
||||
<!-- entity-options entity-name="PartyRoleAndPartyDetail" description="${organizationPartyId}" -->
|
||||
<entity-constraint name="roleTypeId" value="INTERNAL_ORGANIZATIO"/>
|
||||
<entity-order-by field-name="partyId"/>
|
||||
</entity-options>
|
||||
</drop-down>
|
||||
</field>
|
||||
<field name="partyId" parameter-name="partyId">
|
||||
<drop-down>
|
||||
<entity-options entity-name="Party" key-field-name="partyId" description="${partyId}">
|
||||
<entity-order-by field-name="partyId"/>
|
||||
</entity-options>
|
||||
</drop-down>
|
||||
</field>
|
||||
<field name="roleTypeId" parameter-name="roleTypeId">
|
||||
<drop-down>
|
||||
<entity-options entity-name="RoleType" key-field-name="roleTypeId" description="${description}">
|
||||
<entity-order-by field-name="roleTypeId"/>
|
||||
</entity-options>
|
||||
</drop-down>
|
||||
</field>
|
||||
<field name="invoiceId"><text size="20" maxlength="20"/></field>
|
||||
<field name="paymentId"><text size="20" maxlength="20"/></field>
|
||||
<field name="produtId"><text size="20" maxlength="20"/></field>
|
||||
<field name="debitGlAccountId">
|
||||
<drop-down>
|
||||
<entity-options entity-name="GlAccount" description="${glAccountId}: ${accountName}" key-field-name="glAccountId">
|
||||
<entity-order-by field-name="glAccountId"/>
|
||||
</entity-options>
|
||||
</drop-down>
|
||||
</field>
|
||||
<field name="creditGlAccountId">
|
||||
<drop-down>
|
||||
<entity-options entity-name="GlAccount" description="${glAccountId}: ${accountName}" key-field-name="glAccountId">
|
||||
<entity-order-by field-name="glAccountId"/>
|
||||
</entity-options>
|
||||
</drop-down>
|
||||
</field>
|
||||
<field name="amount"><text size="20" maxlength="20"/></field>
|
||||
<field name="submitButton" title="${uiLabelMap.CommonCreate}" widget-style="smallSubmit"><submit button-type="button"/></field>
|
||||
</form>
|
||||
|
||||
</forms>
|
||||
@@ -398,16 +398,26 @@ under the License.
|
||||
|
||||
<menu name="PartyAccountsTabBar" default-menu-item-name="PartyAccountsSummary" default-selected-style="selected"
|
||||
menu-container-style="button-bar tab-bar" type="simple">
|
||||
<menu-item name="PartyAccountsSummary" title="${uiLabelMap.CommonSummary}">
|
||||
<menu-item name="PartyAccountsSummary" title="${uiLabelMap.AcctgPartyGlJournalSummary}">
|
||||
<link target="PartyAccountsSummary?organizationPartyId=${organizationPartyId}"/>
|
||||
</menu-item>
|
||||
<menu-item name="EditGlJournalEntry" title="${uiLabelMap.AcctgEditGlJournalEntry}">
|
||||
<link target="EditGlJournalEntry?organizationPartyId=${organizationPartyId}"/>
|
||||
<menu-item name="FindGlJournalEntry" title="${uiLabelMap.AcctgGlJournalEntry}">
|
||||
<link target="FindGlJournalEntry?organizationPartyId=${organizationPartyId}"/>
|
||||
</menu-item>
|
||||
<menu-item name="ListUnpostedAcctgTrans" title="${uiLabelMap.AccountingManualPostTrans}">
|
||||
<link target="ListUnpostedAcctgTrans?organizationPartyId=${organizationPartyId}"/>
|
||||
</menu-item>
|
||||
</menu>
|
||||
|
||||
<menu name="JournalEntryActionsBar" menu-container-style="button-bar button-style-2" type="simple"
|
||||
default-selected-style="selected">
|
||||
<menu-item name="FindGlJournalEntry" title="${uiLabelMap.AcctgFindGlJournalEntry}">
|
||||
<link target="FindGlJournalEntry?organizationPartyId=${organizationPartyId}"/>
|
||||
</menu-item>
|
||||
<menu-item name="NewJournalEnty" title="${uiLabelMap.AcctgNewGlJournalEntry}">
|
||||
<link target="EditGlJournalEntry?organizationPartyId=${organizationPartyId}"/>
|
||||
</menu-item>
|
||||
</menu>
|
||||
|
||||
</menus>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user