Skip to main content

5. Follow Customer Settlement

Treasury says the customer has sent money. Customer accounting asks which invoice it settles and when. Invoice 202 provides a useful example because its balance is reduced through four applications, rather than one payment event.

Your task. Compare cash receipts and invoice applications at two dates and explain the remaining balance.

When does this receipt reduce the invoice balance?

Expand the diagram for a larger view with zoom and pan controls.

Download editable Draw.io

Reading guide: An invoice and an incoming receipt meet through a dated application. Their existence alone does not establish allocation.

Read the figure in words
  • Receipt 173: 22 February 2024; Cash received: 952.07
  • Application 225: 23 February 2024; Applied amount: 952.07
  • Invoice 202: One of four applications; Each allocation has a date; Read the balance as of a date

An invoice and an incoming receipt meet through a dated application. Their existence alone does not establish allocation.

Before You Start​

Finish Follow a Goods Sale.

In Lesson05.xlsx, import T16_SalesInvoice as InvoiceData filtered to ID 202, T20_CashReceiptApplication as ApplicationData filtered to SalesInvoiceID = 202, and T19_CashReceipt as ReceiptData without filtering. Convert receipt and application date columns to Date in Power Query. You will compare 2024-01-31 and 2024-02-29.

1. Separate Receipt from Application​

A receipt records incoming cash. An application records how much of that cash is assigned to this invoice. Follow CashReceiptID to read both events.

Add two calculated columns to ApplicationData:

=XLOOKUP([@CashReceiptID],ReceiptData[CashReceiptID],ReceiptData[ReceiptDate],"No match",0)

Name that column ReceiptDate and format it as a date. In ApplicationData, add a column named ReceiptAmount and enter:

Excel — ApplicationData[ReceiptAmount]
=XLOOKUP([@CashReceiptID],ReceiptData[CashReceiptID],ReceiptData[Amount],"No match",0)

Sort by ApplicationDate, then CashReceiptApplicationID. Keep AppliedAmount beside ReceiptAmount.

ApplicationReceiptReceipt dateApplication dateApplied to invoice 202
52482024-01-202024-01-31238.16
2251732024-02-222024-02-23952.07
6083372024-03-162024-03-167,927.21
11945282024-04-142024-04-163,130.89

Receipt 528 is 7,092.79, but only 3,130.89 is applied here. The first receipt also predates this order. Its stored application establishes the allocation, but the file does not explain the reason for the advance.

2. Reconstruct Two Reporting Dates​

Use application dates to determine how much of the invoice has been settled by each reporting date. The invoice's final status does not describe every earlier date.

In Notes!A2, enter the first cutoff:

Excel — Notes!A2
=DATE(2024,1,31)

In Notes!A3, enter the second cutoff:

Excel — Notes!A3
=DATE(2024,2,29)

Put the invoice GrandTotal, 12248.33, in D1 and label it. In B2 enter:

=SUMIFS(ApplicationData[AppliedAmount],ApplicationData[ApplicationDate],"<="&A2)

In Notes!C2, calculate the invoice amount less applications:

Excel — Notes!C2
=$D$1-B2

Fill B2:C2 down to row 3. Label B Applied through date and C Invoice less applications. These formulas rely on the import being restricted to invoice 202.

Check for credits by importing T23_CreditMemo. Filter OriginalSalesInvoiceID = 202, then clear that filter and check SalesOrderID = 11 separately. Both checks should leave no records.

At January 31, applications total 238.16, leaving 12,010.17. At February 29, applications total 1,190.23, leaving 11,058.10.

The credit checks return no rows for this example. For an invoice with credits, include their amount and dates before calling invoice less applications its remaining receivable.

Keep Your Evidence​

Save the four application rows, two reporting-date calculations, and the empty credit check. Explain the different purposes of receipt date and application date. Record the source file, selected keys, filters, and what one result row represents. Keep your workbook or saved SQL with your explanation.

Use CashReceiptApplication to establish settlement of a particular invoice. CashReceipt.SalesInvoiceID is not a substitute for the application records. This worked calculation has no credits and does not provide a complete receivables-aging model for every invoice.

Try One Change​

Change the reporting date to 2024-04-16. Compare the total applied with the invoice total.

Compare your reasoning

The four applications sum to 12,248.33, leaving zero for this invoice. Receipt 528 can still have allocations to other invoices, so use only the amount applied to this invoice.

Next Steps​

Receiving and applying the same cash are separate accounting events. Next, inspect their postings. Continue to Find the Accounting Entries.