Author: jacopoc
Date: Sun Jun 3 07:39:35 2007
New Revision: 543906
URL:
http://svn.apache.org/viewvc?view=rev&rev=543906Log:
Added column to the list of invoices with a 'capture' link, useful tu capture payments for an invoice.
Modified:
ofbiz/trunk/applications/accounting/webapp/accounting/WEB-INF/controller.xml
ofbiz/trunk/applications/accounting/webapp/accounting/invoice/InvoiceForms.xml
Modified: ofbiz/trunk/applications/accounting/webapp/accounting/WEB-INF/controller.xml
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/accounting/webapp/accounting/WEB-INF/controller.xml?view=diff&rev=543906&r1=543905&r2=543906==============================================================================
--- ofbiz/trunk/applications/accounting/webapp/accounting/WEB-INF/controller.xml (original)
+++ ofbiz/trunk/applications/accounting/webapp/accounting/WEB-INF/controller.xml Sun Jun 3 07:39:35 2007
@@ -168,11 +168,16 @@
<security https="true" auth="true"/>
<response name="success" type="view" value="BillingAccountInvoices"/>
</request-map>
+ <request-map uri="capturePaymentsByInvoice">
+ <security https="true" auth="true"/>
+ <event type="service" invoke="capturePaymentsByInvoice"/>
+ <response name="success" type="view" value="BillingAccountInvoices"/>
+ </request-map>
<request-map uri="BillingAccountPayments">
<security https="true" auth="true"/>
<response name="success" type="view" value="BillingAccountPayments"/>
- </request-map>
-
+ </request-map>
+
<!-- invoice requests -->
<request-map uri="findInvoices">
<security https="true" auth="true"/>
Modified: ofbiz/trunk/applications/accounting/webapp/accounting/invoice/InvoiceForms.xml
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/accounting/webapp/accounting/invoice/InvoiceForms.xml?view=diff&rev=543906&r1=543905&r2=543906==============================================================================
--- ofbiz/trunk/applications/accounting/webapp/accounting/invoice/InvoiceForms.xml (original)
+++ ofbiz/trunk/applications/accounting/webapp/accounting/invoice/InvoiceForms.xml Sun Jun 3 07:39:35 2007
@@ -83,6 +83,7 @@
<field name="invoiceDate"><display description="${bsh:invoiceDate.toString().substring(0,10)}"/></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>
+ <field name="capture"><hyperlink target="capturePaymentsByInvoice?invoiceId=${invoiceId}&billingAccountId=${billingAccountId}" description="${uiLabelMap.AccountingCapture}"/></field>
</form>
<form name="invoiceHeader" type="single" title="Invoice header information" default-map-name="invoice">