Files
ofbiz-framework/applications/accounting/widget/InvoiceScreens.xml
T
Jacopo Cappellato 280f6c4086 Conversion from MIT to ASL2.0 for the files of the accounting component.
Many thanks to Scott Gray for the patch (Apache OFBIZ-87).

git-svn-id: https://svn.apache.org/repos/asf/incubator/ofbiz/trunk@422402 13f79535-47bb-0310-9956-ffa450edef68
2006-07-16 08:09:27 +00:00

305 lines
20 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright 2001-2006 The Apache Software Foundation
Licensed 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://www.ofbiz.org/dtds/widget-screen.xsd">
<screen name="FindInvoices">
<section>
<actions>
<set field="title" value="Find an Invoice"/>
<set field="headerItem" value="invoices"/>
<set field="titleProperty" value="PageTitleFindInvoice"/>
<set field="viewIndex" from-field="parameters.VIEW_INDEX" type="Integer"/>
<set field="viewSize" from-field="parameters.VIEW_SIZE" type="Integer" default-value="30"/>
</actions>
<widgets>
<decorator-screen name="mainAccountingDecorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<container><link target="editInvoice" text="${uiLabelMap.CommonCreateNew} ${uiLabelMap.AccountingInvoice}" style="buttontext"/></container>
<container><label style="head1" text="${uiLabelMap.AccountingFindInvoices}"/></container>
<include-form name="FindInvoices" location="component://accounting/webapp/accounting/invoice/InvoiceForms.xml"/>
<include-form name="ListInvoices" location="component://accounting/webapp/accounting/invoice/InvoiceForms.xml"/>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="EditInvoice">
<section>
<actions>
<set field="title" value="Edit Invoice"/>
<set field="titleProperty" value="PageTitleEditInvoice"/>
<set field="tabButtonItem" value="editInvoice"/>
<set field="invoiceId" from-field="parameters.invoiceId"/>
<property-to-field field="defaultCurrencyUomId" resource="general" property="currency.uom.id.default" default="USD" />
<entity-one entity-name="Invoice" value-name="invoice"/>
</actions>
<widgets>
<decorator-screen name="CommonInvoiceDecorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<section>
<widgets>
<label style="head1" text="${uiLabelMap.AccountingInvoiceHeaderDetailedInformation}"/>
<include-form name="EditInvoice" location="component://accounting/webapp/accounting/invoice/InvoiceForms.xml"/>
</widgets>
</section>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="invoiceOverview">
<section>
<actions>
<set field="title" value="Invoice Overview"/>
<set field="titleProperty" value="PageTitleInvoiceOverview"/>
<set field="tabButtonItem" value="invoiceOverview"/>
<set field="invoiceId" from-field="parameters.invoiceId"/>
<entity-one entity-name="Invoice" value-name="invoice"/>
<entity-and entity-name="InvoiceRole" list-name="invoiceRoles">
<field-map env-name="parameters.invoiceId" field-name="invoiceId"/>
<order-by field-name="partyId"/>
</entity-and>
<entity-and entity-name="InvoiceStatus" list-name="invoiceStatus">
<field-map env-name="parameters.invoiceId" field-name="invoiceId"/>
<order-by field-name="statusDate"/>
</entity-and>
<script location="component://accounting/webapp/accounting/WEB-INF/actions/invoice/createApplicationList.bsh"/>
<entity-and entity-name="InvoiceItem" list-name="invoiceItems">
<field-map field-name="invoiceId" value="${parameters.invoiceId}"/>
<order-by field-name="invoiceItemSeqId"/>
</entity-and>
<set field="invoiceAmount" value="${bsh:org.ofbiz.accounting.invoice.InvoiceWorker.getInvoiceTotalBd(invoice)}"/>
<set field="notAppliedAmount" value="${bsh:org.ofbiz.accounting.invoice.InvoiceWorker.getInvoiceNotApplied(invoice)}"/>
<set field="appliedAmount" value="${bsh:org.ofbiz.accounting.invoice.InvoiceWorker.getInvoiceAppliedBd(invoice)}"/>
</actions>
<widgets>
<decorator-screen name="CommonInvoiceDecorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<container><label style="head1" text="${uiLabelMap.AccountingInvoiceHeader}"/></container>
<section>
<condition>
<if-compare field-name="invoice.statusId" operator="equals" value="INVOICE_IN_PROCESS"/>
</condition>
<widgets>
<container><link target="editInvoice?invoiceId=${invoiceId}" text="${uiLabelMap.CommonUpdate}" style="buttontext"/></container>
<include-form name="invoiceHeader" location="component://accounting/webapp/accounting/invoice/InvoiceForms.xml"/>
<container><label style="head1" text="${uiLabelMap.AccountingInvoiceRoles}"/></container>
<container><link target="invoiceRoles?invoiceId=${invoiceId}" text="${uiLabelMap.CommonUpdate}" style="buttontext"/></container>
<include-form name="invoiceRoles" location="component://accounting/webapp/accounting/invoice/InvoiceForms.xml"/>
<container><label style="head1" text="${uiLabelMap.AccountingInvoiceStatus}"/></container>
<include-form name="ListInvoiceStatus" location="component://accounting/webapp/accounting/invoice/InvoiceForms.xml"/>
<container><label style="head1" text="${uiLabelMap.AccountingAppliedPayments}: ${appliedAmount?currency(${invoice.currencyUomId})}, ${uiLabelMap.AccountingOpenPayments}: ${notAppliedAmount?currency(${invoice.currencyUomId})}"/></container>
<container><link target="editInvoiceApplications?invoiceId=${invoiceId}" text="${uiLabelMap.CommonUpdate}" style="buttontext"/></container>
<include-form name="ListInvoiceApplications" location="component://accounting/webapp/accounting/invoice/InvoiceForms.xml"/>
<container><label style="head1" text="${uiLabelMap.AccountingInvoiceItems}"/></container>
<container><link target="listInvoiceItems?invoiceId=${invoiceId}" text="${uiLabelMap.CommonUpdate}" style="buttontext"/></container>
<include-form name="invoiceItems" location="component://accounting/webapp/accounting/invoice/InvoiceForms.xml"/>
<container><label style="head1" text="${uiLabelMap.AccountingTransactions}"/></container>
<include-form name="AcctgTransAndEntries" location="component://accounting/webapp/accounting/invoice/InvoiceForms.xml"/>
</widgets>
<fail-widgets>
<include-form name="invoiceHeader" location="component://accounting/webapp/accounting/invoice/InvoiceForms.xml"/>
<container><label style="head1" text="${uiLabelMap.AccountingInvoiceRoles}"/></container>
<include-form name="invoiceRoles" location="component://accounting/webapp/accounting/invoice/InvoiceForms.xml"/>
<container><label style="head1" text="${uiLabelMap.AccountingInvoiceStatus}"/></container>
<include-form name="ListInvoiceStatus" location="component://accounting/webapp/accounting/invoice/InvoiceForms.xml"/>
<container><label style="head1" text="${uiLabelMap.AccountingAppliedPayments}: ${appliedAmount?currency(${invoice.currencyUomId})}, ${uiLabelMap.AccountingOpenPayments}: ${notAppliedAmount?currency(${invoice.currencyUomId})}"/></container>
<include-form name="ListInvoiceApplications" location="component://accounting/webapp/accounting/invoice/InvoiceForms.xml"/>
<container><label style="head1" text="${uiLabelMap.AccountingInvoiceItems}"/></container>
<include-form name="invoiceItems" location="component://accounting/webapp/accounting/invoice/InvoiceForms.xml"/>
<container><label style="head1" text="${uiLabelMap.AccountingTransactions}"/></container>
<include-form name="AcctgTransAndEntries" location="component://accounting/webapp/accounting/invoice/InvoiceForms.xml"/>
</fail-widgets>
</section>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="InvoiceStatus">
<section>
<actions>
<set field="title" value="List status records for an invoice"/>
<set field="titleProperty" value="PageTitleListInvoices"/>
<set field="tabButtonItem" value="invoiceStatus"/>
<set field="invoiceId" from-field="parameters.invoiceId"/>
<entity-one entity-name="Invoice" value-name="invoice" auto-field-map="true"/>
<entity-and entity-name="InvoiceStatus" list-name="invoiceStatus">
<field-map env-name="invoice.invoiceId" field-name="invoiceId"/>
<order-by field-name="statusDate"/>
</entity-and>
</actions>
<widgets>
<decorator-screen name="CommonInvoiceDecorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<label style="head1" text="${uiLabelMap.AccountingInvoiceStatusHistory}"/>
<include-form name="ListInvoiceStatus" location="component://accounting/webapp/accounting/invoice/InvoiceForms.xml"/>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="EditInvoiceApplications">
<section>
<actions>
<set field="title" value="List payments records for an invoice"/>
<set field="titleProperty" value="PageTitleListEditInvoiceApplications"/>
<set field="tabButtonItem" value="editInvoiceApplications"/>
<set field="invoiceId" from-field="parameters.invoiceId"/>
<script location="component://accounting/webapp/accounting/WEB-INF/actions/invoice/createApplicationList.bsh"/>
<script location="component://accounting/webapp/accounting/WEB-INF/actions/invoice/listNotAppliedPayments.bsh"/>
<set field="invoiceAmount" value="${bsh:org.ofbiz.accounting.invoice.InvoiceWorker.getInvoiceTotalBd(invoice)}"/>
<set field="notAppliedAmount" value="${bsh:org.ofbiz.accounting.invoice.InvoiceWorker.getInvoiceNotApplied(invoice)}"/>
<set field="appliedAmount" value="${bsh:org.ofbiz.accounting.invoice.InvoiceWorker.getInvoiceAppliedBd(invoice)}"/>
</actions>
<widgets>
<decorator-screen name="CommonInvoiceDecorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<section>
<condition>
<if-compare field-name="notAppliedAmount" operator="greater" value="0"/>
</condition>
<widgets>
<container><label style="head1" text="${uiLabelMap.AccountingPaymentsApplied}: ${appliedAmount?currency(${invoice.currencyUomId})}, ${uiLabelMap.AccountingOpenPayments}: ${notAppliedAmount?currency(${invoice.currencyUomId})}"/></container>
<include-form name="EditInvoiceApplications" location="component://accounting/webapp/accounting/invoice/InvoiceForms.xml"/>
<section>
<condition>
<if-empty field-name="invoiceApplications"/>
</condition>
<widgets>
<container><label style="head3" text="${uiLabelMap.AccountingNoPaymentsApplicationsfound}"></label></container>
</widgets>
</section>
<section>
<condition>
<not><if-empty field-name="payments"/></not>
</condition>
<widgets>
<container><label style="head1" text="${uiLabelMap.AccountingListPaymentsNotYetApplied}: [${invoice.partyIdFrom}], ${uiLabelMap.AccountingPaymentSentForm}: [${invoice.partyId}]"/></container>
<include-form name="ListPaymentsNotApplied" location="component://accounting/webapp/accounting/invoice/InvoiceForms.xml"/>
</widgets>
</section>
<container><label style="head1" text="${uiLabelMap.AccountingAssignPaymentToInvoice}"/></container>
<include-form name="AddPayment" location="component://accounting/webapp/accounting/invoice/InvoiceForms.xml"/>
</widgets>
<fail-widgets>
<label style="head1" text="${uiLabelMap.AccountingPaymentsApplied}: ${appliedAmount?currency(${invoice.currencyUomId})}, ${uiLabelMap.AccountingOpenPayments}: ${notAppliedAmount?currency(${invoice.currencyUomId})}"/>
<include-form name="EditInvoiceApplications" location="component://accounting/webapp/accounting/invoice/InvoiceForms.xml"/>
<section>
<condition>
<if-empty field-name="invoiceApplications"/>
</condition>
<widgets>
<container><label style="head3" text="${uiLabelMap.AccountingNoPaymentsApplicationsfound}"></label></container>
</widgets>
</section>
</fail-widgets>
</section>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="EditInvoiceItems">
<section>
<actions>
<set field="title" value="List item lines for an invoice"/>
<set field="titleProperty" value="PageTitleListInvoices"/>
<set field="tabButtonItem" value="listInvoiceItems"/>
<set field="invoiceId" from-field="parameters.invoiceId"/>
<set field="invoiceItemSeqd" from-field="parameters.invoiceItemSeqId"/>
<property-to-field field="defaultCurrencyUomId" resource="general" property="currency.uom.id.default" default="USD" />
<entity-one entity-name="Invoice" value-name="invoice"/>
<entity-one entity-name="InvoiceItem" value-name="invoiceItem"/>
<entity-and entity-name="InvoiceItem" list-name="invoiceItems">
<field-map field-name="invoiceId" env-name="parameters.invoiceId"/>
<order-by field-name="invoiceItemSeqId"/>
</entity-and>
</actions>
<widgets>
<decorator-screen name="CommonInvoiceDecorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<label style="head1" text="${uiLabelMap.AccountingInvoiceItems}"/>
<include-form name="EditInvoiceItems" location="component://accounting/webapp/accounting/invoice/InvoiceForms.xml"/>
<container><label style="head1" text="${uiLabelMap.AccountingInvoiceItemAdd}"/></container>
<include-form name="EditInvoiceItem" location="component://accounting/webapp/accounting/invoice/InvoiceForms.xml"/>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="InvoiceRoles">
<section>
<actions>
<set field="title" value="List roles for an invoice"/>
<set field="titleProperty" value="PageTitleListInvoiceRoles"/>
<set field="tabButtonItem" value="invoiceRoles"/>
<set field="invoiceId" from-field="parameters.invoiceId"/>
<entity-one entity-name="Invoice" value-name="invoice"/>
<entity-and entity-name="InvoiceRole" list-name="invoiceRoles">
<field-map env-name="invoiceId" field-name="invoiceId"/>
<order-by field-name="partyId"/>
</entity-and>
</actions>
<widgets>
<decorator-screen name="CommonInvoiceDecorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<label style="head1" text="${uiLabelMap.AccountingPartyRoleList}"/>
<include-form name="ListInvoiceRoles" location="component://accounting/webapp/accounting/invoice/InvoiceForms.xml"/>
<container><label style="head1" text="${uiLabelMap.AccountingPartyRoleAdd}"/></container>
<include-form name="EditInvoiceRole" location="component://accounting/webapp/accounting/invoice/InvoiceForms.xml"/>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="SendPerEmail">
<section>
<actions>
<set field="titleProperty" value="PageTitleSendInvoicePerEmail"/>
<set field="invoiceId" from-field="parameters.invoiceId"/>
<entity-one entity-name="Invoice" value-name="invoice"/>
<set field="tabButtonItem" value="sendPerEmail"/>
</actions>
<widgets>
<decorator-screen name="CommonInvoiceDecorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<label style="head1" text="${uiLabelMap.CommonSendPerEmail}"/>
<include-form name="SendPerEmail" location="component://accounting/webapp/accounting/invoice/InvoiceForms.xml"/>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="sendPerEmailBody">
<section>
<widgets>
<platform-specific><html><html-template location="component://accounting/webapp/accounting/invoice/sendPerEmail.ftl"/></html></platform-specific>
</widgets>
</section>
</screen>
</screens>