Finance unpaid invoices with Invoice Discounting ​

Invoice discounting is short-term financing: a bank or finance company lends you money against your unpaid Sales Invoices, and you repay the loan when your customers pay. An Invoice Discounting document in ERPNext lists the invoices, records the loan period and the bank charges, and posts the ledger entries for each stage of the loan.

The customer still owes you the invoice amount. The loan is a separate liability to the lender.

WARNING

Agree the accounts and the legal treatment with your accountant before you use Invoice Discounting. Whether the invoices are sold or only pledged depends on the agreement with the lender and on local accounting standards.

Prerequisites ​

  • Submitted Sales Invoices with an outstanding amount, in one company. An invoice can be in only one submitted Invoice Discounting.
  • These ledger accounts in the company (none can be a group account):
AccountAccount type or root typePurpose
Short Term Loan AccountRoot type LiabilityThe loan from the lender.
Bank AccountAccount type BankThe account that receives the loan.
Bank Charges AccountRoot type ExpenseThe lender's fees.
Accounts Receivable Credit AccountAccount type ReceivableHolds the discounted invoices after you submit.
Accounts Receivable Discounted AccountAccount type ReceivableHolds the discounted invoices while the loan is open.
Accounts Receivable Unpaid AccountAccount type ReceivableHolds invoices that are still unpaid when you close the loan early.

The three receivable accounts must be different from the receivable accounts on the invoices.

Create the Invoice Discounting ​

  1. Open the Invoice Discounting list and select Add Invoice Discounting.
  2. Select the Company and enter the Posting Date.
  3. Enter the Loan Start Date and the Loan Period (Days). ERPNext calculates the Loan End Date.
  4. Select Get Invoices. In the dialog, filter by Customer, From Date, To Date, Min Amount, or Max Amount, and select Get Invoices. ERPNext adds the submitted invoices that have an outstanding amount and are not already discounted. You can also add invoices to the Invoices table one by one.
  5. Check each row: Invoice, Customer, Date, Outstanding Amount, and Debit to. ERPNext sums the outstanding amounts in Total Amount.
  6. Enter the Bank Charges that the lender deducts.
  7. Select the six accounts from the table in the prerequisites.
  8. Save and submit.

When you submit, the status becomes Sanctioned, and the status of each invoice gets "and Discounted", for example Unpaid and Discounted.

Record the loan disbursement ​

When the lender pays you:

  1. Open the submitted Invoice Discounting and select Disburse Loan.
  2. ERPNext opens a draft Journal Entry. Check it and submit it.

The status becomes Disbursed.

Receive payment from the customer ​

Create a Payment Entry or Journal Entry against the Sales Invoice as usual. While the loan is Disbursed, ERPNext uses the Accounts Receivable Discounted Account as the party account of the payment, because the invoice amount sits in that account.

If the customer pays the lender directly, follow the agreement with the lender and record the receipt in the same way, with the lender's account instead of your bank account.

Close the loan ​

When you repay the lender:

  1. Open the Invoice Discounting and select Close Loan.
  2. ERPNext opens a draft Journal Entry. Check it and submit it.

The status becomes Settled. After this, payments for the invoices use the Accounts Receivable Unpaid Account.

Ledger entries at each stage ​

StageDebitCredit
SubmitAccounts Receivable Credit AccountThe receivable account of each invoice (Debit to)
Disburse LoanBank Account (Total Amount − Bank Charges)
Bank Charges Account (Bank Charges)
Accounts Receivable Discounted Account (each invoice)
Short Term Loan Account (Total Amount)
Accounts Receivable Credit Account (each invoice)
Close LoanShort Term Loan Account (Total Amount)Bank Account (Total Amount)
Close Loan before the Loan End Date, for invoices still unpaidAccounts Receivable Unpaid AccountAccounts Receivable Discounted Account

Statuses ​

StatusMeaning
DraftNot submitted. No ledger entries.
SanctionedSubmitted. The invoices are moved to the credit account.
DisbursedThe disbursement Journal Entry is submitted. The loan is open.
SettledThe closing Journal Entry is submitted. The loan is repaid.
CancelledThe Invoice Discounting is cancelled.

If you cancel the disbursement or closing Journal Entry, the status goes back one stage.

Troubleshooting ​

Get Invoices finds no invoices ​

The invoices must be submitted, belong to the selected company, have an outstanding amount, and not be in another submitted Invoice Discounting. Check the filters in the dialog.

"Row(...): ... is already discounted in ..." ​

The invoice is in another submitted Invoice Discounting. Remove the row.

"Row(...): Outstanding Amount cannot be greater than actual Outstanding Amount ..." ​

The invoice was partly paid after you added it. Remove the row and add the invoice again.

"Row #...: Status must be ... for Invoice Discounting ..." ​

You submitted the disbursement or closing Journal Entry in the wrong order. Disburse a Sanctioned loan, and close a Disbursed loan.

"Loan Start Date and Loan Period are mandatory to save the Invoice Discounting" ​

Enter both fields before you submit.

The bank paid less than the invoice total ​

Enter the lender's fees in Bank Charges. Record holdbacks or other deductions as separate entries.