blob: 60f4b0df319fdaefb3d4646056a485166d166f55 [file] [log] [blame]
<?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.
-->
<site-conf xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/site-conf.xsd">
<include location="component://common/webcommon/WEB-INF/common-controller.xml"/>
<include location="component://accounting/webapp/accounting/WEB-INF/controller.xml"/>
<description>Accounting Manager : AP Module Site Configuration File</description>
<!-- Request Mappings -->
<request-map uri="main">
<security https="true" auth="true"/>
<response name="success" type="view" value="main"/>
</request-map>
<request-map uri="listReports">
<security https="true" auth="true"/>
<response name="success" type="view" value="ListReports"/>
</request-map>
<request-map uri="FindPurchaseInvoices">
<security https="true" auth="true"/>
<response name="success" type="view" value="FindPurchaseInvoices"/>
</request-map>
<request-map uri="FindApInvoices">
<security https="true" auth="true"/>
<response name="success" type="view" value="FindApInvoices"/>
</request-map>
<request-map uri="NewPurchaseInvoice">
<security https="true" auth="true"/>
<response name="success" type="view" value="NewPurchaseInvoice"/>
</request-map>
<request-map uri="processMassCheckRun">
<security https="true" auth="true"/>
<event type="service" invoke="createPaymentAndPaymentGroupForInvoices"/>
<response name="success" type="request" value="PaymentGroupOverview"/>
<response name="error" type="view" value="FindPurchaseInvoices"/>
</request-map>
<request-map uri="findInvoices">
<security https="true" auth="true"/>
<response name="success" type="view" value="FindApInvoices"/>
</request-map>
<request-map uri="createInvoice">
<security https="true" auth="true"/>
<event type="service" invoke="createInvoice"/>
<response name="success" type="request" value="editInvoice"/>
<response name="error" type="view" value="NewPurchaseInvoice"/>
</request-map>
<request-map uri="findPayments">
<security https="true" auth="true"/>
<response name="success" type="view" value="FindApPayments"/>
</request-map>
<request-map uri="FindApPayments">
<security https="true" auth="true"/>
<response name="success" type="view" value="FindApPayments"/>
</request-map>
<request-map uri="newPayment">
<security https="true" auth="true"/>
<response name="success" type="view" value="NewOutgoingPayment"/>
</request-map>
<request-map uri="createPayment">
<security https="true" auth="true"/>
<event type="service" invoke="createPaymentAndFinAccountTrans"/>
<response name="success" type="view" value="editPayment"/>
<response name="error" type="view" value="NewOutgoingPayment"/>
</request-map>
<request-map uri="FindCommissions">
<security https="true" auth="true"/>
<response name="success" type="view" value="CommissionReport"/>
</request-map>
<request-map uri="newInvoice">
<security https="true" auth="true"/>
<response name="success" type="view" value="NewPurchaseInvoice"/>
</request-map>
<request-map uri="FindApPaymentGroups">
<security https="true" auth="true"/>
<response name="success" type="view" value="FindApPaymentGroups"/>
</request-map>
<request-map uri="massChangeInvoiceStatus">
<security https="true" auth="true"/>
<event type="service" invoke="massChangeInvoiceStatus"/>
<response name="success" type="view" value="FindPurchaseInvoices"/>
</request-map>
<request-map uri="cancelCheckRunPayments">
<security https="true" auth="true"/>
<event type="service" invoke="cancelCheckRunPayments"/>
<response name="success" type="view" value="PaymentGroupOverview"/>
<response name="error" type="view" value="FindApPaymentGroups"/>
</request-map>
<!-- ================ Vendor requests ================ -->
<request-map uri="findVendors">
<security https="true" auth="true"/>
<response name="success" type="view" value="FindVendors"/>
</request-map>
<request-map uri="editVendor">
<security https="true" auth="true"/>
<response name="success" type="view" value="EditVendor"/>
</request-map>
<request-map uri="createVendor">
<security https="true" auth="true"/>
<event type="service" invoke="createVendor"></event>
<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="FindVendors"/>
<response name="error" type="view" value="FindVendors"/>
</request-map>
<!-- ================ PDF generation requests ================== -->
<request-map uri="CommissionReport.pdf">
<security https="true" auth="true"/>
<response name="success" type="view" value="CommissionReportPdf"/>
</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"/>
<view-map name="FindPurchaseInvoices" type="screen" page="component://accounting/widget/ap/InvoiceScreens.xml#FindPurchaseInvoices"/>
<view-map name="FindApInvoices" type="screen" page="component://accounting/widget/ap/InvoiceScreens.xml#FindApInvoices"/>
<view-map name="NewPurchaseInvoice" type="screen" page="component://accounting/widget/ap/InvoiceScreens.xml#NewPurchaseInvoice"/>
<view-map name="FindApPayments" type="screen" page="component://accounting/widget/ap/ApScreens.xml#FindApPayments"/>
<view-map name="NewOutgoingPayment" type="screen" page="component://accounting/widget/ap/ApScreens.xml#NewOutgoingPayment"/>
<view-map name="CommissionReport" type="screen" page="component://accounting/widget/ap/InvoiceScreens.xml#CommissionReport"/>
<view-map name="FindApPaymentGroups" type="screen" page="component://accounting/widget/ap/ApScreens.xml#FindApPaymentGroups"/>
<!-- PDFs -->
<view-map name="CommissionReportPdf" type="screenfop" page="component://accounting/widget/ap/ApPrintScreens.xml#CommissionReportPdf" content-type="application/pdf" encoding="none"/>
<!-- 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"/>
<view-map name="LookupInvoice" type="screen" page="component://accounting/widget/ap/LookupScreens.xml#LookupInvoice"/>
<view-map name="LookupPayment" type="screen" page="component://accounting/widget/ap/LookupScreens.xml#LookupPayment"/>
</site-conf>