Payment Dialog

From ADempiere ERP Wiki

Jump to: navigation, search

Table of Contents | Functionality | Payment Dialog | Payment Info

The Payment Dialog provides a convenient way to complete a payment from a sales order or invoice.

Contents

Access

Icon: Image:Icon_Payment24.png
Field: Payment Rule.

Restrictions

The Payment Rule button is only accessible on order or invoice documents.

The document must have the column C_BPartner_ID and the value in this field must be non null.

The Payment Rule dialog will not open if the document status is Closed, Voided or Reversed.

If the document status is Completed or Waiting Payment, a Payment can be generated. Otherwise, only the Payment Rule can be changed.

Only the Payment Rule can be changed on Purchase Order documents. (Documents with Completed or Waiting Payment status, non-sales transaction type where there the field M_Warehouse_ID in non-null).

The document must have the field GrandTotal with a non-zero value.

Description

Setting the Payment Rule

The Payment Dialog appears as a button displaying the icon Image:Icon_Payment24.png and labeled with the currently selected method of payment.

 

 

Clicking the button will open the Payment Dialog. If the source document is not Completed or Waiting Payment and not yet able or ready to accept payment, the Payment Dialog will appear as a combo box listing various payment methods.

 

 

The Payment Methods in the combo box are drawn from a Reference List in the database called "_Payment Rule" (AD_Reference_ID 195) which has the following values:

  • Cash
  • Credit Card
  • Direct Deposit (appears on purchase orders/vendor invoices)
  • Check
  • On Credit
  • Direct Debit (appears on sales orders/customer invoices)
  • Mixed

Selecting one of these Payment Methods will set the Payment Rule to that value.

Below the combo box, there are two buttons:

  • Image:Icon_Cancel24.png Cancel - this will close the dialog.
  • Image:Icon_Ok24.png Confirm - this will save the Payment Rule value.

Making a Payment

If the source document status is Completed or Waiting Payment, the Payment Rule button can be used to complete the payment. The dialog gets much more involved and has a number of different forms depending on the Payment Rule selected.

Image:Note.gif Note:

The Payment Rule button can be clicked multiple times. Existing cash payments will be reversed and replaced with a new payment. Other types of payments will be left untouched and will need to be allocated.

Cash

The Cash Payment window is shown below.

 

 

Image:Caution.gif Caution!

Accepting cash is fraught with problems which need to be fixed. The accounting consequences of the transaction are not clear and may leave unbalanced accounts in the system. Use with caution.

The Cash Payment requires

  • a bank account where the money will be eventually deposited
  • the accounting date of the payment which may be different than the invoice/order
  • the payment amount

On clicking Image:Icon_Ok24.png Confirm, the payment information will be saved but the payment won't be created until the invoice/order is saved and processed. Things get a bit messy at this point.

The created payment has no accounting consequences and appears as a line entry in the cash journal. The accounting consequences are made when the Cash Journal is completed.

Image:Note.gif Note:

Ensure that the Cash Journal accounting makes the necessary balancing entries for the AR/AP accounts used by the invoice - this isn't easy if you have complex AR/AP structures and may require GL Journal entries to balance the books.


Check

If Check is selected in the Payment Rule combo, the Payment Dialog will appear as shown below.

 

 

The Check Payment fields require the following

  • Amount - this should be the Grand Total from the associated invoice.
  • Routing Number - a non-null value. Use the actual routing number if performing on-line payments.
  • Account Number - a non-null value. Use the actual account number if performing on-line payments.
  • Check Number - The check number.

The button "Online" is not active for Checks. A future upgrade may activate it for electronic check processing.

On clicking Image:Icon_Ok24.png Confirm, the payment information will be saved. Any existing payment will be reversed and replaced with the new payment.

Credit Card

If Credit Card is selected in the Payment Rule combo, the Payment Dialog will appear as shown below.

 

 

Select the appropriate credit card from the combo box and fill in the other text fields. The software will attempt to find the payment processor and associated bank account that matches the credit card type.

Clicking the "Online" button will attempt to process the credit card information online through the associated payment processor.

The Credit Card fields require the following

  • the expiry date.

Direct Debit / Deposit

If Direct Debit / Deposit is selected in the Payment Rule combo, the Payment Dialog will appear as shown below. The term debit / deposit will be used with sales orders / purchase orders respectively.

 

 

A bank account for the debit/deposit is required.

The on-line button does nothing.

Mixed

The mixed payment method is not implemented. The idea is to accept multiple payments until the invoice is paid, allowing a customer to partially pay with a mix of tender types.

 

 

On Credit

The On Credit payment will only update the payment terms of the invoice. No payment is created.

 

 

See Also

For Developers

The software that displays this window can be found in:

  • client/src
    • org.compiere.grid.VPayment.java
Personal tools