Files
ofbiz-framework/applications/accounting/servicedef/services_payment.xml
T
Ashish Vijaywargiya ae9d9ff482 Applied patch from jira issue OFBIZ-3310 - Cancel Pyament Group issue - Can't cancel reconciled payment batch and issued payment check.
Steps to reproduce -
Issue : -1
1.Create few payments in AR .
2.Create a batch payment for newly created payments from screen https://localhost:28443/ar/control/batchPayments (where finAccountId=SC_CHECKING).
3.Go to Financial Account screen and click on transaction tab https://localhost:28443/accounting/control/FindFinAccountTrans?finAccountId=SC_CHECKING.
4.Select GlReconciliationId as "Not Assigned" and click on serach button.
5.Select newly created FinAccountTrans from checkbox.Then select GlReconciliationName from selectbox and click on button "Assign TO reconciliation".
6.This process will associate fin account transaction with reconciliation.
7.Now click on Reconciliation tab and select the FinAccountTransaction.
8.Reconcile the transaction by clicking on Reconcile button.
9.Now the status of reconciliation will be "Reconciled".
10.Status of transaction will be "Approved".
11.Now go to Payment Group or Deposit slip tab, the created payment group will appear with Cancel button in list form.

    * This is not correct.
    * User can not cancel reconciled deposit slip.
      Similiar changes will reflect on following screens : -
      1) https://localhost:8443/ar/control/FindArPaymentGroups
      2) https://localhost:8443/accounting/control/FindPaymentGroup
      3) https://localhost:28443/accounting/control/FindDepositSlips?finAccountId=SC_CHECKING&organizationPartyId=Company

Issue : -2
1) Now go to PurchaseInvoices screen https://localhost:28443/ap/control/FindPurchaseInvoices.
2) Click on search button and select Invoices using checkbox.
3) Select "Issue Check" from select box.
4)Click on Run button.
5)Performing this action fin account transaction will be created in Apporved status .
5) Now go to to https://localhost:28443/ap/control/FindApPaymentGroups screen the created payment group will appear with Cancel button in list form.

    * This is not correct.
    * User can not cancel issued check .

Similiar changes will reflect on following screens : -
1) https://localhost:28443/ap/control/FindApPaymentGroups
2) https://localhost:8443/accounting/control/FindPaymentGroup

Thanks Awdesh & Sumit for the contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@887520 13f79535-47bb-0310-9956-ffa450edef68
2009-12-05 09:04:53 +00:00

237 lines
16 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.
-->
<services xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/services.xsd">
<description>Accounting Services</description>
<vendor>OFBiz</vendor>
<version>1.0</version>
<!-- Payment services -->
<service name="createPayment" engine="simple" default-entity-name="Payment"
location="component://accounting/script/org/ofbiz/accounting/payment/PaymentServices.xml" invoke="createPayment" auth="true">
<description>Create a Payment. If a paymentMethodId is supplied, paymentMethodTypeId is gotten from paymentMethod. Otherwise, it must be supplied. If no
paymentMethodTypeId and no paymentMethodId is supplied, then an error will be returned. </description>
<auto-attributes include="nonpk" mode="IN" optional="true"/>
<auto-attributes include="pk" mode="INOUT" optional="true"/>
<override name="paymentTypeId" optional="false"/>
<override name="partyIdFrom" optional="false"/>
<override name="partyIdTo" optional="false"/>
<override name="statusId" optional="false"/>
<override name="amount" optional="false"/>
</service>
<service name="updatePayment" engine="simple" default-entity-name="Payment"
location="component://accounting/script/org/ofbiz/accounting/payment/PaymentServices.xml" invoke="updatePayment" auth="true">
<description>Update a Payment</description>
<auto-attributes include="pk" mode="IN" optional="false"/>
<auto-attributes include="nonpk" mode="IN" optional="true"/>
</service>
<service name="setPaymentStatus" engine="simple" default-entity-name="Payment"
location="component://accounting/script/org/ofbiz/accounting/payment/PaymentServices.xml" invoke="setPaymentStatus" auth="true">
<description>Change the status of a Payment</description>
<auto-attributes include="pk" mode="IN" optional="false"/>
<attribute name="statusId" type="String" mode="IN" optional="false"/>
<attribute name="oldStatusId" type="String" mode="OUT" optional="true"/>
</service>
<service name="checkPaymentInvoices" engine="java"
location="org.ofbiz.accounting.invoice.InvoiceServices" invoke="checkPaymentInvoices">
<description>Checks to see if each invoice to which a payment is applied has been fully paid up. If so, sets the invoice status to PAID.</description>
<attribute name="paymentId" type="String" mode="IN" optional="false"/>
</service>
<service name="quickSendPayment" engine="simple" default-entity-name="Payment"
location="component://accounting/script/org/ofbiz/accounting/payment/PaymentServices.xml" invoke="quickSendPayment">
<description>Updates a Payment and then marks it as PMNT_SENT</description>
<auto-attributes include="pk" mode="IN" optional="false"/>
<auto-attributes include="nonpk" mode="IN" optional="true"/>
</service>
<service name="createPaymentApplication" engine="simple"
location="component://accounting/script/org/ofbiz/accounting/payment/PaymentServices.xml" invoke="createPaymentApplication" auth="true">
<description>Create a payment application</description>
<attribute name="paymentId" type="String" mode="IN" optional="false"/>
<attribute name="invoiceId" type="String" mode="IN" optional="true"/>
<attribute name="invoiceItemSeqId" type="String" mode="IN" optional="true"/>
<attribute name="billingAccountId" type="String" mode="IN" optional="true"/>
<attribute name="overrideGlAccountId" type="String" mode="IN" optional="true"/>
<attribute name="taxAuthGeoId" type="String" mode="IN" optional="true"/>
<attribute name="amountApplied" type="BigDecimal" mode="IN" optional="false"/>
<attribute name="paymentApplicationId" type="String" mode="OUT" optional="false"/>
</service>
<service name="updatePaymentApplication" default-entity-name="PaymentApplication" engine="java"
location="org.ofbiz.accounting.invoice.InvoiceServices" invoke="updatePaymentApplication">
<description>
Apply a payment to a Invoice or other payment or Billing account or Taxauthority,
create/update paymentApplication records.
</description>
<auto-attributes mode="IN" include="pk" optional="true"/>
<auto-attributes mode="IN" include="nonpk" optional="true"/>
<attribute name="invoiceProcessing" type="String" mode="IN" optional="true"/>
<override name="paymentId" optional="false"/>
</service>
<service name="updatePaymentApplicationDef" default-entity-name="PaymentApplication" engine="java"
location="org.ofbiz.accounting.invoice.InvoiceServices" invoke="updatePaymentApplicationDef">
<description>
Apply a payment to a Invoice or other payment or Billing account or Taxauthority,
If no ammountApplied is supplied the system will calculate and use the maximum possible value.
</description>
<auto-attributes mode="IN" include="pk" optional="true"/>
<auto-attributes mode="IN" include="nonpk" optional="true"/>
<attribute name="invoiceProcessing" type="String" mode="IN" optional="true"/>
<override name="paymentId" optional="false"/>
</service>
<service name="removePaymentApplication" default-entity-name="PaymentApplication" engine="simple"
location="component://accounting/script/org/ofbiz/accounting/invoice/InvoiceServices.xml" invoke="removePaymentApplication">
<description>Delete a paymentApplication record.</description>
<permission-service service-name="acctgInvoicePermissionCheck" main-action="UPDATE"/>
<auto-attributes mode="IN" include="pk" optional="false"/>
<auto-attributes mode="OUT" include="nonpk" optional="true"/>
</service>
<service name="createPaymentAndApplication" engine="simple"
location="component://accounting/script/org/ofbiz/accounting/payment/PaymentServices.xml" invoke="createPaymentAndApplication" auth="true">
<description>Create a payment and a payment application for the full amount</description>
<auto-attributes entity-name="Payment" include="nonpk" mode="IN" optional="true"/>
<auto-attributes entity-name="Payment" include="pk" mode="INOUT" optional="true"/>
<attribute name="invoiceId" type="String" mode="IN" optional="true"/>
<attribute name="invoiceItemSeqId" type="String" mode="IN" optional="true"/>
<attribute name="billingAccountId" type="String" mode="IN" optional="true"/>
<attribute name="overrideGlAccountId" type="String" mode="IN" optional="true"/>
<attribute name="taxAuthGeoId" type="String" mode="IN" optional="true"/>
<attribute name="paymentApplicationId" type="String" mode="OUT" optional="false"/>
<override name="paymentTypeId" optional="false"/>
<override name="partyIdFrom" optional="false"/>
<override name="partyIdTo" optional="false"/>
<override name="statusId" optional="false"/>
<override name="amount" optional="false"/>
</service>
<service name="getInvoicePaymentInfoList" engine="simple"
location="component://accounting/script/org/ofbiz/accounting/payment/PaymentServices.xml" invoke="getInvoicePaymentInfoList" auth="true">
<description>Create a list with information on payment due dates and amounts for the invoice; one of invoiceId or invoice must be provided.</description>
<attribute name="invoiceId" type="String" mode="IN" optional="true"/>
<attribute name="invoice" type="org.ofbiz.entity.GenericValue" mode="IN" optional="true"/>
<attribute name="invoicePaymentInfoList" type="List" mode="OUT" optional="false"/>
</service>
<service name="getInvoicePaymentInfoListByDueDateOffset" engine="simple"
location="component://accounting/script/org/ofbiz/accounting/payment/PaymentServices.xml" invoke="getInvoicePaymentInfoListByDueDateOffset" auth="true">
<description>Create a list with information on payment due dates and amounts.</description>
<attribute name="invoiceTypeId" type="String" mode="IN" optional="false"/>
<attribute name="daysOffset" type="Long" mode="IN" optional="false"/>
<attribute name="partyId" type="String" mode="IN" optional="true"/>
<attribute name="partyIdFrom" type="String" mode="IN" optional="true"/>
<attribute name="invoicePaymentInfoList" type="List" mode="OUT" optional="true"/>
</service>
<service name="voidPayment" engine="simple"
location="component://accounting/script/org/ofbiz/accounting/payment/PaymentServices.xml" invoke="voidPayment" auth="true">
<description>Sets payment status to PMNT_VOID, removes all PaymentApplications, changes related invoice statuses to
INVOICE_READY if status is INVOICE_PAID, and reverses related AcctgTrans by calling copyAcctgTransAndEntries service</description>
<attribute name="paymentId" mode="IN" optional="false" type="String"/>
<attribute name="finAccountTransId" type="String" mode="OUT" optional="true"/>
<attribute name="statusId" type="String" mode="OUT" optional="true"/>
</service>
<service name="getPaymentRunningTotal" engine="simple"
location="component://accounting/script/org/ofbiz/accounting/payment/PaymentServices.xml" invoke="getPaymentRunningTotal" auth="true">
<description>calculate running total for payments</description>
<attribute name="paymentIds" type="List" mode="IN" optional="false"/>
<attribute name="organizationPartyId" type="String" mode="IN" optional="true"/>
<attribute name="paymentRunningTotal" type="String" mode="OUT" optional="false"/>
</service>
<service name="cancelPaymentBatch" engine="simple"
location="component://accounting/script/org/ofbiz/accounting/payment/PaymentServices.xml" invoke="cancelPaymentBatch" auth="true">
<description>cancel payment batch</description>
<attribute name="paymentGroupId" type="String" mode="IN" optional="false"/>
</service>
<service name="createPaymentAndPaymentGroupForInvoices" engine="simple"
location="component://accounting/script/org/ofbiz/accounting/payment/PaymentServices.xml" invoke="createPaymentAndPaymentGroupForInvoices" auth="true">
<description>Creates Payments, Payment Application and Payment Group for the same</description>
<attribute name="organizationPartyId" type="String" mode="IN" optional="false"/>
<attribute name="checkStartNumber" type="Long" mode="IN" optional="true"/>
<attribute name="invoiceIds" type="List" mode="IN" optional="false"/>
<attribute name="paymentMethodTypeId" type="String" mode="IN" optional="true"/>
<attribute name="paymentMethodId" type="String" mode="IN" optional="false"/>
<attribute name="paymentGroupId" type="String" mode="OUT" optional="true"/>
<attribute name="errorMessage" type="String" optional="true" mode="OUT"/>
</service>
<service name="createPaymentAndApplicationForParty" engine="simple"
location="component://accounting/script/org/ofbiz/accounting/payment/PaymentServices.xml" invoke="createPaymentAndApplicationForParty" auth="true">
<description>create Payment and PaymentApplications for multiple invoices for one party</description>
<attribute name="organizationPartyId" type="String" mode="INOUT" optional="true"/>
<attribute name="partyId" type="String" mode="IN" optional="false"/>
<attribute name="invoices" type="List" mode="IN" optional="false"/>
<attribute name="paymentMethodTypeId" type="String" mode="IN" optional="true"/>
<attribute name="paymentMethodId" type="String" mode="IN" optional="false"/>
<attribute name="finAccountId" type="String" mode="INOUT" optional="true"/>
<attribute name="checkStartNumber" type="Long" mode="IN" optional="true"/>
<attribute name="paymentId" type="String" mode="OUT" optional="true"/>
<attribute name="invoiceIds" type="List" mode="OUT" optional="true"/>
<attribute name="amount" type="BigDecimal" mode="OUT" optional="true"/>
</service>
<service name="createPaymentGroupAndMember" engine="simple"
location="component://accounting/script/org/ofbiz/accounting/payment/PaymentServices.xml" invoke="createPaymentGroupAndMember" auth="true">
<attribute name="paymentIds" type="List" mode="IN" optional="false"/>
<attribute name="paymentGroupTypeId" type="String" mode="IN" optional="false"/>
<attribute name="fromDate" type="Timestamp" mode="IN" optional="true"/>
<attribute name="paymentGroupName" type="String" mode="IN" optional="true"/>
<attribute name="paymentGroupId" type="String" mode="OUT" optional="false"/>
</service>
<service name="cancelCheckRunPayments" engine="simple"
location="component://accounting/script/org/ofbiz/accounting/payment/PaymentServices.xml" invoke="cancelCheckRunPayments" auth="true">
<description>Cancel all payments for payment group</description>
<attribute name="paymentGroupId" type="String" mode="IN" optional="false"/>
</service>
<service name="createFinAccoutnTransFromPayment" engine="simple"
location="component://accounting/script/org/ofbiz/accounting/payment/PaymentServices.xml" invoke="createFinAccoutnTransFromPayment" auth="true">
<auto-attributes entity-name="FinAccountTrans" include="nonpk" mode="IN" optional="true"/>
<auto-attributes entity-name="FinAccountTrans" include="pk" mode="INOUT" optional="true"/>
<attribute name="invoiceIds" type="List" mode="IN" optional="true"/>
</service>
<service name="getPayments" engine="simple"
location="component://accounting/script/org/ofbiz/accounting/payment/PaymentServices.xml" invoke="getPayments" auth="true">
<description>Get list of payment</description>
<attribute name="paymentGroupId" type="String" mode="IN" optional="true"/>
<attribute name="finAccountTransId" type="String" mode="IN" optional="true"/>
<attribute name="payments" type="List" mode="OUT" optional="true"/>
</service>
<service name="getPaymentGroupReconciliationId" engine="simple"
location="component://accounting/script/org/ofbiz/accounting/payment/PaymentServices.xml" invoke="getPaymentGroupReconciliationId" auth="true">
<description>Get ReconciliationId associated to paymentGroup</description>
<attribute name="paymentGroupId" type="String" mode="IN" optional="false"/>
<attribute name="glReconciliationId" type="String" mode="OUT" optional="true"/>
</service>
<service name="checkAndCreateBatchForValidPayments" engine="simple"
location="component://accounting/script/org/ofbiz/accounting/payment/PaymentServices.xml" invoke="checkAndCreateBatchForValidPayments" auth="true">
<description>Check the valid(unbatched) payment and create batch for same</description>
<implements service="createPaymentGroupAndMember"/>
</service>
<service name="massChangePaymentStatus" engine="simple"
location="component://accounting/script/org/ofbiz/accounting/payment/PaymentServices.xml" invoke="massChangePaymentStatus" auth="true">
<description>Set status of Payments in bulk.</description>
<attribute name="paymentIds" type="List" mode="IN" optional="false"/>
<attribute name="statusId" type="String" mode="IN" optional="false"/>
<attribute name="errorMessage" type="String" optional="true" mode="OUT"/>
</service>
</services>