Automatic Payment of Invoices from Client or Supplier Credit: Enabling, Disabling and Cancelling Automatic Payments
When a client has a payment credit (such as an advance payment or a credit note), Daftra can use it automatically to pay the client’s invoices, and a supplier’s balance to pay purchase invoices. This guide explains the auto-payment setting in sales and purchases, what enabling and disabling it does, and how to cancel an automatic payment so the invoice becomes unpaid again.
Contents
- Auto-payment setting
- When the setting is enabled
- Paying purchase invoices with a journal entry on the supplier account
- When the setting is disabled
- Cancelling an automatic payment and making the invoice unpaid again
- Distributing the credit to invoices manually
- Effect on journal entries and reports
- FAQs
Auto-payment setting
| Sales | Purchases | |
|---|---|---|
| Where | Sales Settings › Payments & Credit section | Purchase Invoice Settings › Payments & Debit section |
| Setting name | Auto-Pay Invoices Using Client Credit | Auto-Pay Invoices Using supplier Debit |
| Default | Enabled | Enabled |
| Payment method created | Client Credit | Supplier Credit |
When the setting is enabled
- The system uses the client’s available credit to pay all the client’s unpaid invoices, not only the new one, from the oldest to the newest, and per currency. If the credit is not enough, the invoice is paid partially.
- This happens when an invoice is saved or issued, when a client payment or credit is added, edited or deleted, when a credit note or refund is added, and when the invoice page or client page is opened.
- The payment shows in the invoice’s Payments tab with the Client Credit method and the Auto mark.
- Automatic payments cannot be edited or deleted while the setting is enabled.
Purchases work the same way: the supplier’s balance pays the unpaid purchase invoices from the oldest to the newest, and the payment shows with the Supplier Credit method.
Paying purchase invoices with a journal entry on the supplier account
The Add Entry form has no field for choosing a purchase invoice, so a journal entry is never linked to a specific invoice. When you record a supplier payment with a manual journal entry that debits the supplier’s account, the supplier’s available balance increases by the entry amount, and the system then handles that balance according to Auto-Pay Invoices Using supplier Debit:
- Setting enabled: as soon as the entry is saved, the balance pays this supplier’s unpaid purchase invoices in the entry’s currency, from the oldest to the newest. The payment shows on the invoice with the Supplier Credit method, and the invoice becomes paid or partially paid. No new journal entry is created for this payment.
- Setting disabled: the amount stays as an available supplier balance and the invoices stay Unpaid until you use the balance manually as in Distributing the credit to invoices manually, or enable the setting; the balance is then used the next time a purchase invoice or a payment of this supplier is saved.
If the invoices stay unpaid after you record the entry
| Cause | Solution |
|---|---|
| The auto-payment setting is disabled | Enable Auto-Pay Invoices Using supplier Debit in Purchase Invoice Settings › Payments & Debit, or distribute the balance manually from the supplier page or the invoice. |
| The entry uses a general account, not the supplier’s own account | In the entry line, choose the supplier’s own sub-account (created automatically for every supplier under the Suppliers account), not the main Suppliers account or another account. |
| The supplier is on the credit side | Paying a supplier debits the supplier’s account (and credits the treasury or bank). An entry that credits the supplier increases what you owe and pays nothing. |
| The entry is saved as a Draft | Draft entries do not count in the supplier’s balance; approve the entry. |
| The entry currency differs from the invoices’ currency | The balance is used per currency; record the entry in the currency of the supplier’s invoices. |
| The invoice is a Draft | Draft purchase invoices are not paid from the balance; issue the invoice first. |
🛈
Note: The clearest way to pay a purchase invoice is Add Payment on the invoice itself: it records the payment on the invoice and creates its journal entry automatically. Use a manual entry only when you need one, with auto-payment enabled.
When the setting is disabled
- New invoices are not paid from the credit automatically, and the credit stays available on the client or supplier account.
- Disabling the setting does not cancel the automatic payments made before it: invoices paid from the credit stay paid until you delete their payments yourself.
- You can distribute the credit manually to the invoices you choose.
🛈
Note: Even with the setting disabled, the credit is used automatically in two cases: when the client adds a credit or pays from the client portal, and when an invoice is edited so that it becomes overpaid.
Cancelling an automatic payment and making the invoice unpaid again
If an invoice was paid from the client’s credit and you want it Unpaid with its full amount due:
- Disable Auto-Pay Invoices Using Client Credit in Sales Settings and save. (If you do not, a message asks you to disable auto-payment first, or the invoice is paid from the credit again right away.)
- Open the invoice, then the Payments tab.
- Next to the payment with the Client Credit method and the Auto mark, click Delete.
- On the confirmation page, click Yes.
Result:
- The invoice becomes Unpaid again (or partially paid if it has other payments), and its full amount shows as due.
- The amount goes back as available credit on the client account, and you can use it later for another invoice.
- No journal entry changes, and the client balance in the statement does not change.
🛈
Note: You can also edit the automatic payment amount instead of deleting it, to reduce the amount paid from the credit. Deleting or editing needs the permission to edit and delete payments, and the payment date must not be in a closed period.
In purchases
- Disable Auto-Pay Invoices Using supplier Debit in Purchase Invoice Settings.
- Open the purchase invoice, then Payments, and delete the payment with the Supplier Credit method.
🛈
Important: Disable the setting before deleting; if you delete the payment while the setting is enabled, the invoice is paid from the balance again right away.
🛈
Warning: Do not use a reverse entry for this: paying from the credit creates no entry in the first place, and reversing the invoice entry removes the sale and the client’s receivable from the accounts while the invoice stays paid.
Distributing the credit to invoices manually
With auto-payment disabled, you can use the credit for invoices you choose in one of these ways:
| Method | Steps |
|---|---|
| From the invoice | Click Add Payment, choose the Client Credit payment method, and enter the amount (up to the available credit). |
| From the client page | Click Distribute next to the client’s credit, and distribute it to the due invoices. |
| When adding a credit | In Add Payment Credit, the Invoices to be paid table shows so you can set the Distribution Amount for each invoice. |
The same methods are available for suppliers from the purchase invoice or the supplier page.
Effect on journal entries and reports
| Effect | |
|---|---|
| Journal entries | No entry is created when paying from the credit or when deleting that payment, because the entry of the credit itself (the advance payment, the credit note or the manual entry on the supplier account) is already recorded. |
| Client / supplier statement | Not affected: the client’s total balance is the same whether or not the invoice is paid from the credit. |
| Invoice status | Changes: paid or partially paid when paid from the credit, and unpaid after the payment is deleted. |
| Due invoices and aging reports | Based on the invoices’ remaining amount, so they change when an invoice is paid from the credit. |
| Payments list and cash flow report | Credit payments do not show by default because they are not new money coming in. You can show them in the payments list by filtering by payment method. |
| Available client credit | Decreases when paying from the credit, and increases when the payment is deleted. |
🛈
Note: If you delete or reduce the original credit itself (the advance payment or the credit note), the latest payments made from it are deleted automatically, and their invoices become unpaid again.
FAQs
I disabled auto-payment and the invoice is still paid?
Disabling does not cancel earlier payments; delete the Client Credit payment from the invoice’s Payments tab as in Cancelling an automatic payment.
Why is there no Delete button next to the automatic payment?
Because auto-payment is still enabled; disable it first.
Why was an old invoice paid and not the new one?
Because auto-payment pays unpaid invoices from the oldest to the newest.
Where did the amount go after the payment was deleted?
It went back as available credit for the client; it shows on the client page and can be used later.
I recorded the payment of purchase invoices with a journal entry and they are still unpaid. Why?
Because the entry is not linked to the invoice: it increases the supplier’s balance, and the invoices are paid from that balance only if Auto-Pay Invoices Using supplier Debit is enabled or you distribute the balance manually. Also make sure the entry is approved, debits the supplier’s own account, and is in the invoices’ currency, as in Paying purchase invoices with a journal entry.