Files
ofbiz-framework/applications/accounting/widget/PaymentScreens.xml
T
Jacques Le Roux b9c3ddef08 2d part and end of an effort to remove trailing spaces
[ \t]+$ => "" (empty)
Should be easier to review when committing changes with trailing spaces removed automatically by anyedit or such tool (please refer to http://docs.ofbiz.org/x/mg)

Of course this effort to remove trailing spaces has no functional implications.

Actually, I was doing a 1st commit and as it's long to upload, I got conflicts with r763135
In the meantime I did some refactoring also in *.java and *.groovy files :
){ => ) {
if( => if (
while( => while (
}else => } else
else{ => else {
switch( => switch (
try{ => try {
}catch => } catch
catch( => catch (
}finally{ => } finally {

So these changes are also in this commit, should not be a problem anyway.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@763175 13f79535-47bb-0310-9956-ffa450edef68
2009-04-08 10:54:51 +00:00

564 lines
35 KiB
XML

<?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.
-->
<screens xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/widget-screen.xsd">
<screen name="FindPayments">
<section>
<actions>
<set field="titleProperty" value="PageTitleFindPayment"/>
<set field="headerItem" value="payments"/>
</actions>
<widgets>
<decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<section>
<widgets>
<decorator-screen name="FindScreenDecorator" location="component://common/widget/CommonScreens.xml">
<decorator-section name="menu-bar">
<container style="button-bar">
<link target="newPayment" text="${uiLabelMap.CommonCreateNew} ${uiLabelMap.AccountingPayment}" style="buttontext"/>
<link target="FindSalesInvoicesByDueDate" text="${uiLabelMap.AccountingFindSalesInvoicesByDueDate}" style="buttontext"/>
<link target="FindPurchaseInvoicesByDueDate" text="${uiLabelMap.AccountingFindPurchaseInvoicesByDueDate}" style="buttontext"/>
</container>
</decorator-section>
<decorator-section name="search-options">
<include-form name="FindPayments" location="component://accounting/webapp/accounting/payment/PaymentForms.xml"/>
</decorator-section>
<decorator-section name="search-results">
<include-form name="ListPayments" location="component://accounting/webapp/accounting/payment/PaymentForms.xml"/>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="NewPayment">
<section>
<actions>
<set field="titleProperty" value="PageTitleEditPayment"/>
<set field="headerItem" value="payments"/>
<set field="tabButtonItem" value="editPayment"/>
<set field="paymentId" from-field="parameters.paymentId"/>
<property-to-field field="defaultCurrencyUomId" resource="general" property="currency.uom.id.default" default="USD"/>
</actions>
<widgets>
<decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<section>
<widgets>
<container style="screenlet">
<container style="screenlet-title-bar">
<container style="h3">
<label text="${uiLabelMap.AccountingNewPaymentIncoming}"/>
</container>
</container>
<container style="screenlet-body">
<section>
<widgets>
<include-form name="NewPaymentIn" location="component://accounting/webapp/accounting/payment/PaymentForms.xml"/>
</widgets>
</section>
</container>
</container>
<container style="screenlet">
<container style="screenlet-title-bar">
<container style="h3">
<label text="${uiLabelMap.AccountingNewPaymentOutgoing}"/>
</container>
</container>
<container style="screenlet-body">
<section>
<widgets>
<include-form name="NewPaymentOut" location="component://accounting/webapp/accounting/payment/PaymentForms.xml"/>
</widgets>
</section>
</container>
</container>
</widgets>
</section>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="EditPayment">
<section>
<actions>
<set field="titleProperty" value="PageTitleEditPayment"/>
<set field="tabButtonItem" value="editPayment"/>
<set field="paymentId" from-field="parameters.paymentId"/>
<entity-one entity-name="Payment" value-field="payment">
<field-map field-name="paymentId" from-field="parameters.paymentId"/>
</entity-one>
<property-to-field field="defaultCurrencyUomId" resource="general" property="currency.uom.id.default" default="USD"/>
</actions>
<widgets>
<decorator-screen name="CommonPaymentDecorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<section>
<widgets>
<container style="screenlet">
<container style="screenlet-title-bar">
<container style="h3">
<label text="${uiLabelMap.AccountingInvoiceHeaderDetailedInformation}"/>
</container>
</container>
<container style="screenlet-body">
<section>
<widgets>
<include-form name="EditPayment" location="component://accounting/webapp/accounting/payment/PaymentForms.xml"/>
</widgets>
</section>
</container>
</container>
</widgets>
</section>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="EditPaymentApplications">
<section>
<actions>
<set field="titleProperty" value="PageTitleListPaymentApplications"/>
<set field="tabButtonItem" value="editPaymentApplications"/>
<set field="paymentId" from-field="parameters.paymentId"/>
<entity-one entity-name="Payment" value-field="payment"/>
<set field="appliedAmount" type="String" value="${bsh:
import java.text.NumberFormat;
return(NumberFormat.getNumberInstance(context.get(&quot;locale&quot;)).format(org.ofbiz.accounting.payment.PaymentWorker.getPaymentApplied(payment)));}"/>
<set field="notAppliedAmount" type="BigDecimal" value="${bsh:org.ofbiz.accounting.payment.PaymentWorker.getPaymentNotApplied(payment)}"/>
<set field="notAppliedAmountStr" type="String" value="${bsh:
import java.text.NumberFormat;
return(NumberFormat.getCurrencyInstance(context.get(&quot;locale&quot;)).format(org.ofbiz.accounting.payment.PaymentWorker.getPaymentNotApplied(payment)));}"/>
<script location="component://accounting/webapp/accounting/WEB-INF/actions/payment/ListNotAppliedInvoices.groovy"/>
<script location="component://accounting/webapp/accounting/WEB-INF/actions/payment/ListNotAppliedPayments.groovy"/>
<entity-one entity-name="PartyNameView" value-field="partyNameViewTo">
<field-map field-name="partyId" from-field="payment.partyIdTo"/>
</entity-one>
<entity-one entity-name="PartyNameView" value-field="partyNameViewFrom">
<field-map field-name="partyId" from-field="payment.partyIdFrom"/>
</entity-one>
<entity-condition entity-name="PaymentApplication" list="paymentApplications">
<condition-expr field-name="paymentId" operator="equals" value="${paymentId}"/>
</entity-condition>
<entity-condition entity-name="PaymentApplication" list="paymentApplicationsInv">
<condition-list combine="and">
<condition-expr field-name="paymentId" operator="equals" value="${paymentId}"/>
<condition-expr field-name="invoiceId" operator="not-equals" from-field="null"/>
</condition-list>
<order-by field-name="invoiceId"/>
<order-by field-name="invoiceItemSeqId"/>
</entity-condition>
<entity-condition entity-name="PaymentApplication" list="paymentApplicationsPay">
<condition-list combine="and">
<condition-expr field-name="paymentId" operator="equals" from-field="paymentId"/>
<condition-expr field-name="toPaymentId" operator="not-equals" from-field="null"/>
</condition-list>
<order-by field-name="toPaymentId"/>
</entity-condition>
<entity-condition entity-name="PaymentApplication" list="paymentApplicationsBil">
<condition-list combine="and">
<condition-expr field-name="paymentId" from-field="paymentId"/>
<condition-expr field-name="billingAccountId" operator="not-equals" from-field="null"/>
</condition-list>
<order-by field-name="billingAccountId"/>
</entity-condition>
<entity-condition entity-name="PaymentApplication" list="paymentApplicationsTax">
<condition-list combine="and">
<condition-expr field-name="paymentId" from-field="paymentId"/>
<condition-expr field-name="taxAuthGeoId" operator="not-equals" from-field="null"/>
</condition-list>
<order-by field-name="taxAuthGeoId"/>
</entity-condition>
</actions>
<widgets>
<decorator-screen name="CommonPaymentDecorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<section>
<condition>
<if-empty field="paymentApplications"/>
</condition>
<widgets>
<container><label style="h1" text="${uiLabelMap.AccountingPayment} ${uiLabelMap.AccountingApplications}"/></container>
<container><label style="h1" text="${uiLabelMap.CommonAmount} ${uiLabelMap.CommonTotal} ${payment.amount?currency(${payment.currencyUomId})} ${uiLabelMap.AccountingAmountNotApplied} ${notAppliedAmount?currency(${payment.currencyUomId})}"/></container>
<container><label style="h3" text="${uiLabelMap.AccountingNoPaymentsApplicationsfound}"></label></container>
</widgets>
<fail-widgets>
<section>
<condition>
<not><if-empty field="paymentApplicationsInv"/></not>
</condition>
<widgets>
<screenlet title="${uiLabelMap.AccountingPayment} ${uiLabelMap.AccountingApplications}">
<include-form name="editPaymentApplicationsInv" location="component://accounting/webapp/accounting/payment/PaymentForms.xml"/>
</screenlet>
</widgets>
</section>
<section>
<condition>
<or>
<not><if-empty field="paymentApplicationsPay"/></not>
<not><if-empty field="paymentApplicationsBil"/></not>
<not><if-empty field="paymentApplicationsTax"/></not>
</or>
</condition>
<widgets>
<screenlet title="${uiLabelMap.CommonAmount} ${uiLabelMap.CommonTotal} ${payment.amount?currency(${payment.currencyUomId})} ${uiLabelMap.AccountingAmountNotApplied} ${notAppliedAmount?currency(${payment.currencyUomId})}">
<section>
<condition>
<not><if-empty field="paymentApplicationsPay"/></not>
</condition>
<widgets>
<include-form name="editPaymentApplicationsPay" location="component://accounting/webapp/accounting/payment/PaymentForms.xml"/>
</widgets>
</section>
<section>
<condition>
<not><if-empty field="paymentApplicationsBil"/></not>
</condition>
<widgets>
<include-form name="editPaymentApplicationsBil" location="component://accounting/webapp/accounting/payment/PaymentForms.xml"/>
</widgets>
</section>
<section>
<condition>
<not><if-empty field="paymentApplicationsTax"/></not>
</condition>
<widgets>
<include-form name="editPaymentApplicationsTax" location="component://accounting/webapp/accounting/payment/PaymentForms.xml"/>
</widgets>
</section>
</screenlet>
</widgets>
</section>
</fail-widgets>
</section>
<section>
<condition>
<if-compare field="notAppliedAmount" operator="greater" value="0.00" type="BigDecimal"/>
</condition>
<widgets>
<section>
<condition>
<or>
<not><if-empty field="invoices"/></not>
<not><if-empty field="invoicesOtherCurrency"/></not>
</or>
</condition>
<widgets>
<screenlet title="${uiLabelMap.AccountingListInvoicesNotYetApplied}">
<container>
<label style="h2" text="${uiLabelMap.CommonFrom} ${partyNameViewTo.groupName}${partyNameViewTo.lastName},${partyNameViewTo.firstName} ${partyNameViewTo.middleName}[${payment.partyIdTo}]"/>
<label style="h2" text="${uiLabelMap.CommonTo} ${partyNameViewFrom.groupName}${partyNameViewFrom.lastName},${partyNameViewFrom.firstName} ${partyNameViewFrom.middleName} [${payment.partyIdFrom}]"/>
</container>
<section>
<condition>
<not><if-empty field="invoices"/></not>
</condition>
<widgets>
<include-form name="listInvoicesNotApplied" location="component://accounting/webapp/accounting/payment/PaymentForms.xml"/>
</widgets>
</section>
<section>
<condition>
<not><if-empty field="invoicesOtherCurrency"/></not>
</condition>
<widgets>
<label style="h2" text="${uiLabelMap.FormFieldTitle_otherCurrency}"/>
<include-form name="listInvoicesNotAppliedOtherCurrency" location="component://accounting/webapp/accounting/payment/PaymentForms.xml"/>
</widgets>
</section>
</screenlet>
</widgets>
</section>
<section>
<condition>
<not><if-empty field="payments"/></not>
</condition>
<widgets>
<screenlet title="${uiLabelMap.AccountingListPaymentsNotYetApplied}">
<container>
<label style="h2" text="${uiLabelMap.CommonFrom}: ${partyNameViewTo.groupName}${partyNameViewTo.lastName},${partyNameViewTo.firstName} ${partyNameViewTo.middleName}[${payment.partyIdTo}]"/>
<label style="h2" text="${uiLabelMap.CommonTo}: ${partyNameViewFrom.groupName}${partyNameViewFrom.lastName},${partyNameViewFrom.firstName} ${partyNameViewFrom.middleName} [${payment.partyIdFrom}]"/>
</container>
<include-form name="listPaymentsNotApplied" location="component://accounting/webapp/accounting/payment/PaymentForms.xml"/>
</screenlet>
</widgets>
</section>
<screenlet title="${uiLabelMap.AccountingApplyPaymentoTo}">
<include-form name="addPaymentApplication" location="component://accounting/webapp/accounting/payment/PaymentForms.xml"/>
</screenlet>
</widgets>
</section>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="PaymentOverview">
<section>
<actions>
<set field="titleProperty" value="PageTitlePaymentOverview"/>
<set field="tabButtonItem" value="paymentOverview"/>
<set field="labelTitleProperty" value="PageTitlePaymentOverview"/>
<set field="paymentId" from-field="parameters.paymentId"/>
<entity-one entity-name="Payment" value-field="payment"/>
<set field="appliedAmount" value="${bsh:org.ofbiz.accounting.payment.PaymentWorker.getPaymentApplied(payment).toString()}"/>
<set field="notAppliedAmount" value="${bsh:org.ofbiz.accounting.payment.PaymentWorker.getPaymentNotApplied(payment).toString()}"/>
</actions>
<widgets>
<decorator-screen name="CommonPaymentDecorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<section>
<condition>
<if-compare field="payment.statusId" operator="equals" value="PMNT_NOT_PAID"/>
</condition>
<widgets>
<container style="lefthalf">
<screenlet title="${uiLabelMap.AccountingPaymentHeader}">
<link target="editPayment" text="${uiLabelMap.CommonUpdate}" style="buttontext">
<parameter param-name="paymentId"/>
</link>
<include-form name="paymentHeader" location="component://accounting/webapp/accounting/payment/PaymentForms.xml"/>
</screenlet>
</container>
<container style="righthalf">
<screenlet title="${uiLabelMap.AccountingPaymentsApplied} ${appliedAmount?currency(${payment.currencyUomId})} ${uiLabelMap.AccountingOpenPayments} ${notAppliedAmount?currency(${payment.currencyUomId})}">
<link target="editPaymentApplications" text="${uiLabelMap.CommonUpdate}" style="buttontext">
<parameter param-name="paymentId"/>
</link>
<include-form name="paymentApplications" location="component://accounting/webapp/accounting/payment/PaymentForms.xml"/>
</screenlet>
</container>
<container style="screenlet clear">
<screenlet title="${uiLabelMap.AccountingTransactions}" navigation-form-name="AcctgTransAndEntries">
<include-form name="AcctgTransAndEntries" location="component://accounting/webapp/accounting/payment/PaymentForms.xml"/>
</screenlet>
</container>
</widgets>
<fail-widgets>
<container style="lefthalf">
<screenlet title="${uiLabelMap.AccountingPaymentHeader}">
<include-form name="paymentHeader" location="component://accounting/webapp/accounting/payment/PaymentForms.xml"/>
</screenlet>
</container>
<container style="righthalf">
<screenlet title="${uiLabelMap.AccountingPaymentsApplied} ${appliedAmount?currency(${payment.currencyUomId})} ${uiLabelMap.AccountingOpenPayments} ${notAppliedAmount?currency(${payment.currencyUomId})}">
<include-form name="paymentApplications" location="component://accounting/webapp/accounting/payment/PaymentForms.xml"/>
</screenlet>
</container>
<container style="screenlet clear">
<screenlet title="${uiLabelMap.AccountingTransactions}" navigation-form-name="AcctgTransAndEntries">
<include-form name="AcctgTransAndEntries" location="component://accounting/webapp/accounting/payment/PaymentForms.xml"/>
</screenlet>
</container>
</fail-widgets>
</section>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="ManualTransaction">
<section>
<actions>
<set field="titleProperty" value="AccountingManualTransaction"/>
<set field="headerItem" value="transaction"/>
<set field="tabButtonItem" value="manualtransactiontab"/>
<script location="component://accounting/webapp/accounting/WEB-INF/actions/payment/ManualTx.groovy"/>
</actions>
<widgets>
<decorator-screen name="GenericTransactionDecorator" location="component://accounting/widget/TransactionScreens.xml">
<decorator-section name="body">
<container style="screenlet">
<container style="screenlet-title-bar">
<container style="h3">
<label text="${uiLabelMap.AccountingManualTransaction}"/>
</container>
</container>
<container style="screenlet-body">
<section>
<widgets>
<platform-specific>
<html><html-template location="component://accounting/webapp/accounting/payment/manualTx.ftl"/></html>
</platform-specific>
</widgets>
</section>
</container>
</container>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="manualCCTx">
<section>
<widgets>
<platform-specific>
<html><html-template location="component://accounting/webapp/accounting/payment/manualCCTx.ftl"/></html>
</platform-specific>
</widgets>
</section>
</screen>
<screen name="manualGCTx">
<section>
<widgets>
<platform-specific>
<!-- TODO: problem here: the original manualTx file referred to manualGCTx, but no such ftl files seems to exist, so this will blow up -->
<html><html-template location="component://accounting/webapp/accounting/payment/manualGCTx.ftl"/></html>
</platform-specific>
</widgets>
</section>
</screen>
<screen name="PrintChecks">
<section>
<actions>
<!-- pass in paymentId to print one check, otherwise use multi form input -->
<set field="paymentId" from-field="parameters.paymentId"/>
<property-map resource="AccountingUiLabels" map-name="uiLabelMap" global="true"/>
<property-map resource="CommonUiLabels" map-name="uiLabelMap" global="true"/>
<script location="component://accounting/webapp/accounting/WEB-INF/actions/payment/PrintChecks.groovy"/>
<entity-condition entity-name="InvoiceItemType" list="PayrolGroup">
<condition-expr field-name="parentTypeId" value="PAYROL"/>
</entity-condition>
</actions>
<widgets>
<platform-specific>
<xsl-fo><html-template location="component://accounting/webapp/accounting/payment/PrintChecks.fo.ftl"/></xsl-fo>
</platform-specific>
</widgets>
</section>
</screen>
<screen name="FindSalesInvoicesByDueDate">
<section>
<actions>
<set field="titleProperty" value="AccountingFindSalesInvoicesByDueDate"/>
<set field="headerItem" value="payments"/>
<set field="viewIndex" from-field="parameters.VIEW_INDEX" type="Integer" default-value="0"/>
<set field="viewSize" from-field="parameters.VIEW_SIZE" type="Integer" default-value="50"/>
<set field="invoicePaymentInfoList" from-field="parameters.invoicePaymentInfoList" type="List"/>
</actions>
<widgets>
<decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<container style="screenlet">
<container style="screenlet-title-bar">
<container style="h3">
<label text="${uiLabelMap.AccountingFindSalesInvoicesByDueDate}"/>
</container>
</container>
<container style="screenlet-body">
<section>
<widgets>
<include-form name="FindSalesInvoicesByDueDate" location="component://accounting/webapp/accounting/payment/PaymentForms.xml"/>
</widgets>
</section>
</container>
</container>
<section>
<condition>
<not><if-empty field="invoicePaymentInfoList"/></not>
</condition>
<widgets>
<container style="screenlet">
<container style="screenlet-title-bar">
<container style="h3">
<label text="${uiLabelMap.AccountingFindSalesInvoicesByDueDate}"/>
</container>
</container>
<container style="screenlet-body">
<section>
<widgets>
<include-form name="ListInvoicesByDueDate" location="component://accounting/webapp/accounting/payment/PaymentForms.xml"/>
</widgets>
</section>
</container>
</container>
</widgets>
</section>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="FindPurchaseInvoicesByDueDate">
<section>
<actions>
<set field="titleProperty" value="AccountingFindPurchaseInvoicesByDueDate"/>
<set field="headerItem" value="payments"/>
<set field="viewIndex" from-field="parameters.VIEW_INDEX" type="Integer" default-value="0"/>
<set field="viewSize" from-field="parameters.VIEW_SIZE" type="Integer" default-value="50"/>
<set field="invoicePaymentInfoList" from-field="parameters.invoicePaymentInfoList" type="List"/>
</actions>
<widgets>
<decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<container style="screenlet">
<container style="screenlet-title-bar">
<container style="h3">
<label text="${uiLabelMap.AccountingFindPurchaseInvoicesByDueDate}"/>
</container>
</container>
<container style="screenlet-body">
<section>
<widgets>
<include-form name="FindPurchaseInvoicesByDueDate" location="component://accounting/webapp/accounting/payment/PaymentForms.xml"/>
</widgets>
</section>
</container>
</container>
<section>
<condition>
<not><if-empty field="invoicePaymentInfoList"/></not>
</condition>
<widgets>
<container style="screenlet">
<container style="screenlet-title-bar">
<container style="h3">
<label text="${uiLabelMap.AccountingFindPurchaseInvoicesByDueDate}"/>
</container>
</container>
<container style="screenlet-body">
<section>
<widgets>
<include-form name="ListInvoicesByDueDate" location="component://accounting/webapp/accounting/payment/PaymentForms.xml"/>
</widgets>
</section>
</container>
</container>
</widgets>
</section>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
</screens>