Thanks Sumit, Rishi, Amit and Awdesh. Patch from OFBIZ-2713 git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@796289 13f79535-47bb-0310-9956-ffa450edef68
160 lines
9.8 KiB
XML
160 lines
9.8 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.
|
|
-->
|
|
|
|
<forms xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/widget-form.xsd">
|
|
<form name="ListReports" type="list" separate-columns="true" title="${uiLabelMap.AccountingInvoice} ${uiLabelMap.CommonList}" list-name="listIt" target="" default-entity-name="Invoice"
|
|
odd-row-style="alternate-row" default-table-style="basic-table hover-bar">
|
|
<actions>
|
|
<entity-condition entity-name="Invoice" list="invoices">
|
|
<condition-list>
|
|
<condition-expr field-name="statusId" value="INVOICE_SENT"/>
|
|
<condition-expr field-name="dueDate" operator="greater" value="${nowTimestamp}"/>
|
|
</condition-list>
|
|
<order-by field-name="dueDate"/>
|
|
<limit-range start="0" size="10"/>
|
|
</entity-condition>
|
|
</actions>
|
|
<row-actions>
|
|
<service service-name="getPartyNameForDate" result-map="partyNameResultFrom">
|
|
<field-map field-name="partyId" from-field="partyIdFrom"/>
|
|
<field-map field-name="compareDate" from-field="invoiceDate"/>
|
|
<field-map field-name="lastNameFirst" value="Y"/>
|
|
</service>
|
|
<service service-name="getPartyNameForDate" result-map="partyNameResultTo">
|
|
<field-map field-name="partyId" from-field="partyId"/>
|
|
<field-map field-name="compareDate" from-field="invoiceDate"/>
|
|
<field-map field-name="lastNameFirst" value="Y"/>
|
|
</service>
|
|
<set field="amountToApply" value="${bsh:
|
|
import java.text.NumberFormat;
|
|
return(NumberFormat.getNumberInstance(context.get("locale")).format(org.ofbiz.accounting.invoice.InvoiceWorker.getInvoiceNotApplied(delegator,invoiceId)));}"/>
|
|
<set field="total" value="${bsh:
|
|
import java.text.NumberFormat;
|
|
return(NumberFormat.getNumberInstance(context.get("locale")).format(org.ofbiz.accounting.invoice.InvoiceWorker.getInvoiceTotal(delegator,invoiceId)));}"/>
|
|
</row-actions>
|
|
<field name="invoiceId" widget-style="buttontext">
|
|
<hyperlink description="${invoiceId}" target="invoiceOverview">
|
|
<parameter param-name="invoiceId"/>
|
|
</hyperlink>
|
|
</field>
|
|
<field name="invoiceTypeId"><display-entity entity-name="InvoiceType" description="${description}"/></field>
|
|
<field name="invoiceDate"><display/></field>
|
|
<field name="statusId"><display-entity entity-name="StatusItem" description="${description}"/></field>
|
|
<field name="description"><display/></field>
|
|
<field name="partyIdFrom"><display description="${partyNameResultFrom.fullName} [${partyIdFrom}]"/></field>
|
|
<field name="partyIdTo" parameter-name="partyId"><display description="${partyNameResultTo.fullName} [${partyId}]"/></field>
|
|
<field name="invoiceDate"><display/></field>
|
|
<field name="dueDate"><display/></field>
|
|
<field name="total" widget-area-style="align-text"><display type="currency" currency="${currencyUomId}"/></field>
|
|
<field name="amountToApply" widget-area-style="align-text"><display type="currency" currency="${currencyUomId}"/></field>
|
|
</form>
|
|
|
|
<form name="FindApInvoices" type="single" target="FindApInvoices" extends="FindInvoices" extends-resource="component://accounting/webapp/accounting/invoice/InvoiceForms.xml">
|
|
<field name="parentTypeId"><hidden value="PURCHASE_INVOICE"/></field>
|
|
<field position="1" name="invoiceTypeId">
|
|
<drop-down allow-empty="true">
|
|
<entity-options entity-name="InvoiceType" description="${description}">
|
|
<entity-constraint name="parentTypeId" value="PURCHASE_INVOICE"/>
|
|
</entity-options>
|
|
</drop-down>
|
|
</field>
|
|
</form>
|
|
|
|
<form name="ListApInvoices" type="list" separate-columns="true" list-name="invoices" default-entity-name="Invoice"
|
|
odd-row-style="alternate-row" header-row-style="header-row-2" default-table-style="basic-table hover-bar">
|
|
<row-actions>
|
|
<service service-name="getPartyNameForDate" result-map="partyNameResultFrom">
|
|
<field-map field-name="partyId" from-field="partyIdFrom"/>
|
|
<field-map field-name="compareDate" from-field="invoiceDate"/>
|
|
<field-map field-name="lastNameFirst" value="Y"/>
|
|
</service>
|
|
<service service-name="getPartyNameForDate" result-map="partyNameResultTo">
|
|
<field-map field-name="partyId" from-field="partyId"/>
|
|
<field-map field-name="compareDate" from-field="invoiceDate"/>
|
|
<field-map field-name="lastNameFirst" value="Y"/>
|
|
</service>
|
|
<set field="amountToApply" default-value="0" value="${groovy:org.ofbiz.accounting.invoice.InvoiceWorker.getInvoiceNotApplied(delegator,invoiceId)
|
|
.multiply(org.ofbiz.accounting.invoice.InvoiceWorker.getInvoiceCurrencyConversionRate(delegator,invoiceId))}"/>
|
|
<set field="total" default-value="0" value="${groovy:org.ofbiz.accounting.invoice.InvoiceWorker.getInvoiceTotal(delegator,invoiceId)
|
|
.multiply(org.ofbiz.accounting.invoice.InvoiceWorker.getInvoiceCurrencyConversionRate(delegator,invoiceId))}"/>
|
|
<set field="currencyUomId" from-field="defaultOrganizationPartyCurrencyUomId"/>
|
|
</row-actions>
|
|
|
|
<field name="invoiceId" widget-style="buttontext" sort-field="true">
|
|
<hyperlink description="${invoiceId}" target="invoiceOverview">
|
|
<parameter param-name="invoiceId"/>
|
|
</hyperlink>
|
|
</field>
|
|
<field name="invoiceTypeId" sort-field="true"><display-entity entity-name="InvoiceType" description="${description}"/></field>
|
|
<field name="invoiceDate" sort-field="true"><display type="date"/></field>
|
|
<field name="statusId" sort-field="true"><display-entity entity-name="StatusItem" description="${description}"/></field>
|
|
<field name="description" sort-field="true"><display/></field>
|
|
<field name="partyIdFrom" sort-field="true">
|
|
<hyperlink target="/partymgr/control/PartyFinancialHistory" target-type="inter-app" description="${partyNameResultFrom.fullName} [${partyIdFrom}]">
|
|
<parameter param-name="partyId" from-field="partyIdFrom"/>
|
|
</hyperlink>
|
|
</field>
|
|
<field name="partyIdTo" parameter-name="partyId">
|
|
<hyperlink target="/partymgr/control/PartyFinancialHistory" target-type="inter-app" description="${partyNameResultTo.fullName} [${partyId}]">
|
|
<parameter param-name="partyId"/>
|
|
</hyperlink>
|
|
</field>
|
|
<field name="total" widget-area-style="align-text"><display type="currency" currency="${currencyUomId}"/></field>
|
|
<field name="amountToApply" widget-area-style="align-text"><display type="currency" currency="${currencyUomId}"/></field>
|
|
</form>
|
|
|
|
<form name="FindPurchaseInvoices" type="single" target="FindPurchaseInvoices">
|
|
<actions>
|
|
<set field="organizationPartyId" from-field="parameters.organizationPartyId" default-value="${defaultOrganizationPartyId}"/>
|
|
</actions>
|
|
<field name="partyIdFrom" title="${uiLabelMap.AccountingVendorParty}" position="1"><lookup target-form-name="LookupPartyName"/></field>
|
|
<field name="statusId" position="2">
|
|
<drop-down allow-empty="true">
|
|
<entity-options entity-name="StatusItem" description="${description}">
|
|
<entity-constraint name="statusTypeId" operator="equals" value="INVOICE_STATUS"/>
|
|
</entity-options>
|
|
</drop-down>
|
|
</field>
|
|
<field name="organizationPartyId"><hidden/></field>
|
|
<field name="invoiceTypeId"><hidden value="PURCHASE_INVOICE"/></field>
|
|
<field name="fromInvoiceDate" position="1"><date-time/></field>
|
|
<field name="thruInvoiceDate" position="2"><date-time/></field>
|
|
<field name="fromDueDate" position="1"><date-time/></field>
|
|
<field name="thruDueDate" position="2"><date-time/></field>
|
|
<field name="search" widget-style="smallSubmit"><submit button-type="button"/></field>
|
|
</form>
|
|
|
|
<form name="CommissionRun" type="single" target="CommissionRun">
|
|
<field name="partyIds" field-name="partyId" title="${uiLabelMap.PartyPartyId}">
|
|
<drop-down allow-multiple="true">
|
|
<entity-options entity-name="PartyRole" description="${partyId}">
|
|
<entity-constraint name="roleTypeId" operator="equals" value="SALES_REP"/>
|
|
</entity-options>
|
|
</drop-down>
|
|
</field>
|
|
<field name="invoiceTypeId"><hidden value="SALES_INVOICE"/></field>
|
|
<field name="statusId"><hidden value="INVOICE_PAID"/></field>
|
|
<field name="fromDate" position="1"><date-time/></field>
|
|
<field name="thruDate" position="2"><date-time/></field>
|
|
<field name="search" widget-style="smallSubmit"><submit button-type="button"/></field>
|
|
</form>
|
|
</forms>
|