Payment requests
Ask a customer to pay, line up supplier payments for the bank, and set up payment gateways.
A Payment Request asks a customer for money (Inward) or records a payment you owe a supplier (Outward). Outward requests and supplier Payment Entries can then go to the bank as a Payment Order.
Sales Invoice → Payment Request (Inward) → mail with link → Payment Entry
Purchase Invoice → Payment Request (Outward) → Payment Order → Journal EntryPayment Request
Create > Payment Request appears on a submitted Sales Order or Purchase Order that is not fully billed, closed or on hold, and on a submitted Sales Invoice or Purchase Invoice with something outstanding. Sales documents make Inward requests and purchase documents make Outward ones.
The Amount is what the reference still owes, less the outstanding amount of its other submitted requests. For an order that is its total less the advance paid. For an invoice it is the Outstanding Amount.
doc (the reference) and payment_request.Example: a Sales Invoice to Global Retail owes 59,000. The request's Amount is 59,000. The customer pays 30,000, and the Payment Entry from the request leaves it Partially Paid with 29,000 outstanding.
When you ask for chosen Payment Schedule rows only, the Payment Reference table lists one row per term, and Amount is their sum.
Rules the request checks:
- Only Sales Order, Purchase Order, Sales Invoice and Purchase Invoice can be referenced.
- Amount cannot be zero, and all requests together cannot exceed the reference's amount.
- A second draft request for the same reference is refused.
- With Payment Reference rows, Amount must match their sum and a schedule row may appear once. Schedule-based requests are refused once a Payment Entry exists for the document.
- The Mode of Payment must be enabled.
Phone payments and the Make Sales Invoice flag wait for a gateway that calls back. Neither works yet.
Payment Gateway and Payment Gateway Account
ERP ships one Payment Gateway, Manual. Its payment link opens the Payment Request in the desk, where you record the payment with a Payment Entry. Card gateways belong in a separate app.
A Payment Gateway Account ties a gateway to a company's Payment Account and holds the Default Payment Request Message. ERP names it <gateway> - <currency> - <abbr>, such as Manual - INR - AT. Each company has one default. Saving a new default clears the old one, and a company's only account is always its default.
Payment Order
A Payment Order lists supplier payments for the company's bank to make. Its Payment Order Reference table holds one row per request or payment, with Amount, Supplier and Bank Account.
| Payment Order Type | Made from | Submit sets |
|---|---|---|
| Payment Request | Create > Payment Order on a submitted Outward request in status Initiated | Each request's status to Payment Ordered |
| Payment Entry | Create > Payment Order on a submitted Payment Entry of type Pay | Each payment's payment order status to Payment Ordered |
Cancel sets them back to Initiated.
On a submitted Payment Order of type Payment Request, Create > Journal Entry drafts the payment to one supplier. It is a Bank Entry (a Cash Entry when the mode of payment is cash) that debits the supplier's payable account per request and credits the Company Bank Account's account. With no supplier named, the order must hold exactly one supplier, or ERP refuses with "Select the Supplier to pay".