Skip to main content

Paying a grocery chain only for the volume it earned

Summary: Tallow Creek Foods, a food distributor, agrees a first-quarter volume program with Bramblewood Markets, a regional grocery chain: 0.50 per case on one own-label line, earned only once the chain takes 6,000 cases, and capped at 5,000.00 for the quarter. The problem is paying exactly what the agreement earns (not before the threshold, not past the cap, not twice) and getting it to the chain as a credit it can use. Earmark carries the money from an approved deal, through the order price, the accruals, a claim and its approval, to a statement and a settled credit. The features in play: a deal sent back for a change, the Off-invoice price mode, the Ship accrual point, a qualifying quantity with catch-up accruals, a lifetime cap with a headroom alert, claim generation, claim approval under segregation of duties, the claim statement and settlement in accounts receivable. Read it if you run customer programs in sales, finance or accounts receivable and want to see how the pieces fit before you set up your own.

This story assumes you have read A deal's life, end to end, which walks the plain path. Here the same path meets the terms a real agreement carries. The companies, people, items and accounts are invented.

The situation​

Tallow Creek Foods distributes canned and dry goods to independent and regional grocers. Bramblewood Markets runs a chain of stores supplied from one distribution center and buys from Tallow Creek on one customer account, BWM-001, which is also the invoice account on every order.

For the first quarter (January 1 to March 31) the two agree a volume program on Bramblewood's own-label chopped tomatoes, item TC-1042, sold by the case at the list price of 18.40:

TermAgreed value
Rate0.50 per case delivered in the quarter
Qualifying thresholdNothing is earned until Bramblewood has taken 6,000 cases. Once it does, every case in the quarter earns, the first 6,000 included.
CapAt most 5,000.00 for the quarter (the value of 10,000 cases)
Invoice priceStays at the agreed 18.40. The rebate is paid separately.
PaymentA credit at quarter end, used against Bramblewood's open invoices
CurrencyUSD, which is also Tallow Creek's accounting currency

The people, and the role each holds in Dynamics 365:

PersonJobRole
Dana WhitlockKey account manager, writes the dealSales manager
Marcus FeldCommercial director, approves dealsEarmark deal approver
Teo AlvaradoOrder deskSales clerk
Ruth OkaforFinancial controller, owns the Earmark setupAccounting manager
Hannah RourkeGeneral ledger accountantAccountant
Sofia BrandtCustomer claimsAccounts receivable clerk
Ian CastellanoCredit control lead, approves claimsEarmark claims approver
Owen PryceCash applicationAccounts receivable payments clerk

Why it matters​

Before Earmark, Tallow Creek kept programs like this in a spreadsheet. The finance team accrued a guess each month, the threshold was checked by hand at quarter end, and twice a chain was credited for cases above its cap because nobody added up the last shipments. The chain, for its part, could not tie the credit back to its deliveries.

What Tallow Creek wants from the quarter:

  • the liability in the ledger as each delivery leaves, not as a month-end estimate;
  • nothing accrued while the chain is below 6,000 cases, but nothing lost either when it gets there;
  • not one cent past the 5,000.00 cap, without anyone watching shipments;
  • the invoices left at the agreed price, so the chain's store systems match;
  • one claim, approved by someone who had no hand in the deal or the claim, and a statement the chain can reconcile line by line.

Before they start​

Ruth, as Accounting manager, has set Earmark up once for the company. The full checklist is Set up Earmark and every setting is described in the configuration reference. For this program these choices matter:

  1. Customer deals is switched on (Modules tab of Earmark > Setup > Earmark parameters), and so is Allow per-deal price mode (Defaults tab), so that a deal can carry its own price mode.

  2. Earmark > Setup > Earmark posting profile has one row for each customer-side posting type, all with Item code All and Account code All:

    Posting typeMain account (example name)
    AccrualCustomer rebates accrued (a liability)
    Accrual offsetCustomer rebate expense
    ClaimCustomer claims payable (a liability)
    Claim offsetCustomer rebates accrued

    Setting Claim offset to the same account as Accrual is what makes a claim move the money out of the accrued liability. See Set up the posting profile.

  3. On the Posting control tab of Earmark parameters each movement type has a Journal name of type Daily. Post automatically is on for Accrual and Claim, and left off for Claim approval: Ruth wants an accountant to look at every credit before it reaches a customer's account. She also leaves Auto-post claim approval journal (Claims tab) off, as shipped, because either setting switched on posts the approval journal without a review. See Post automatically, or hold for review.

  4. The Accrual event processor runs as a recurring batch job every 15 minutes, so a delivery's accrual appears shortly after its packing slip posts. See I want to schedule the accrual batch jobs and Accrual event processing.

  5. The deal approval and claim approval workflows are active. The claim approval workflow assigns its work items to Ian. See Activate the approval workflows.

  6. The segregation-of-duties rules are seeded, and Block claim approval by the deal's approver is set in Earmark parameters, as shipped. See Seed the segregation-of-duties rules.

  7. Print management for Earmark claim statement has an Original record that emails the statement, without which no statement is produced. See I want to set up print management for claim statements.

Dana writes the deal​

In mid-December Dana opens Earmark > Deals > All deals, creates the deal and types DEAL-000118 as its Deal ID. Two of her choices need a reason.

Price mode Off-invoice. With Gross-up, the 0.50 would sit inside the invoiced price: Bramblewood would be invoiced 18.90 a case and get the 0.50 back through the claim. That is the right shape for a commodity line where the deal money belongs in the price, but here the agreed invoice price is 18.40 and the rebate is on top of it. With Off-invoice the order line keeps 18.40 and the 0.50 is carried beside it as an Allowance, still accrued and still claimed. It also matters once the cap is reached: under Gross-up a line built before the cap ran out but shipped after it would have been invoiced at 18.90 with nothing left to claim back. See Understand price modes: gross-up and off-invoice.

Accrual point Ship. The agreement counts cases delivered in the quarter, and Bramblewood is invoiced weekly in arrears, so a delivery on March 30 might not be invoiced until April. With Ship, Earmark accrues when the packing slip posts, dated by the packing slip, so the liability lands in the period the goods moved and the threshold counts deliveries as they happen. Invoice would accrue the same amounts with the same journal lines, only later, when each invoice posts.

What Dana enters on the Earmark deal page:

TabFieldValue
GeneralNameBramblewood Q1 chopped tomatoes volume
GeneralModule / Deal shapeCustomer / Customer program
GeneralEffective / ExpirationJanuary 1 / March 31
GeneralDeal currencyUSD
GeneralAccrual pointShip
GeneralPrice modeOff-invoice
GeneralDeal unitthe case unit
Targetingone row: Item code / Item relationTable / TC-1042
Targetingsame row: Account code / Account relationTable / BWM-001
EconomicsRate basisAmount per unit
EconomicsAccrual amount / Per quantity0.50 / 1
EconomicsCriteria typeQuantity
EconomicsMinimum qualifying quantity6,000
PostingClaimable by / Account sourceCustomer / Posting profile

She leaves Lifetime cap empty, meaning to come back to it, and selects Submit. The deal moves to Pending approval and a work item goes to Marcus.

To do this yourself, follow I want to create a customer deal, I want to target items, groups or categories and customers or vendors and I want to submit a deal for approval.

Marcus sends the deal back for a change​

Marcus opens the deal from Deals pending my approval. On Economics he sees the 6,000-case threshold, but Lifetime cap is empty, and an empty cap means the deal is uncapped. The agreement says 5,000.00.

Before deciding, he checks the rest:

  1. Validate accounts (in the Test and validate group) shows, for each movement the deal can produce, the account the posting profile resolves: the accrual to Customer rebates accrued against Customer rebate expense, the claim to Customer claims payable. No gaps.
  2. Test deal resolution, describing a line for TC-1042 and BWM-001, lists DEAL-000118 on the Why not tab with its status, because only an approved deal can apply. The targeting is right.

The deal is sound but incomplete, so he does not reject it. On the workflow bar he chooses Request change and writes: "Cap missing. Agreement caps Q1 at 5,000.00." The deal returns to Planning, and its Earmark timeline shows Change requested with his comment, which tells Dana it was sent back for a correction rather than refused.

Dana sets Lifetime cap to 5,000.00 and Headroom alert percentage to 20, so that someone hears about it before the cap is reached, and selects Submit again. Marcus approves it from the workflow bar. Earmark first checks that he neither created nor submitted the deal; he did neither, so the deal becomes Approved, with Approved by and Approved stamped on the Lifecycle tab.

To do this yourself, follow I want to review a deal before I approve it, I want to reject a deal or send it back for changes and I want to approve a deal.

Teo prices the orders​

From January on, every Bramblewood order for TC-1042 gets the deal built into its line. Earmark accrues only for a line that carries the deal: a line priced without it holds no commitment, so its cases would neither earn nor count towards the threshold.

On the first order, for 1,800 cases with a requested ship date of January 12, Teo:

  1. selects the line and, in the Price build-up group on the line toolbar, selects Build price;
  2. checks the Line panel (the Eligibility date is the requested ship date, inside the deal's window);
  3. checks Base price 18.40 and Over-basis 0.00 in the Equation panel;
  4. selects Include on DEAL-000118 in the Deals list, which shows Price mode Off-invoice and Amount 0.50 per case;
  5. selects Recalculate and reads the equation: Allowance 0.50, Unit price 18.40;
  6. selects Accept. The infolog reports "Price built. Build number ..., unit price 18.40."

The order line keeps 18.40, and Earmark records an accrual instance for the line: a frozen copy of the deal's terms, bound to that line, which is what later accrues.

To do this yourself, follow I want to build a deal price on a sales order line and I want to know whether deal money is in the price or off the invoice.

January and early February: below the threshold​

The warehouse posts packing slips as normal. Nobody does anything for Earmark. Each posting queues an accrual event, and the Accrual event processor works it within 15 minutes. The quarter's deliveries:

Packing slipCasesCases to dateComputedAccruedVerdict
January 121,8001,800900.000.00Below qualifying quantity
February 22,0003,8001,000.000.00Below qualifying quantity
February 192,4006,2001,200.001,200.00crosses the minimum
catch-up for January 12900.00900.00
catch-up for February 21,000.001,000.00
March 82,4008,6001,200.001,200.00Headroom warning
March 242,00010,6001,000.00700.00Cap reached
March 301,50012,100750.000.00Cap reached

On January 12 and February 2 the computed amount (cases times 0.50) is stopped by the threshold. No journal and no accrual transaction are written, and in Accrual event queue each row reads Superseded with "No movement posted." followed by the verdict. The goods still count: Dana, checking Earmark > Workspaces > Deal control in early February, finds the deal on the Threshold status list with Quantity to date 3,800, Quantity below threshold 3,800 and Pending catch-up value -1,900.00, and two Below qualifying quantity rows on Breaches. The money is held, not lost. Thresholds are counted per counterparty, here BWM-001, so another customer's cases could never help Bramblewood reach 6,000.

Earmark stores a customer accrual as a negative amount (money the company owes), so these lists show the amounts with a minus sign. The tables in this story show them without it.

To read the same lists, see I want to watch deal money on Deal control and I want to see why an accrual did not happen.

February 19: the threshold is crossed​

The February 19 delivery of 2,400 cases takes Bramblewood from 3,800 to 6,200 cases. Because it crosses the minimum, it accrues its own full amount, 1,200.00, not only the part above 6,000, and Earmark queues a catch-up event for each delivery the threshold stopped. The processor's next run accrues them: 900.00 for January 12 and 1,000.00 for February 2.

The catch-ups are dated the day the processor runs them (February 19 here), not the dates of the original packing slips. Hannah closed January in the ledger at the start of February; a catch-up dated January 12 could not have posted. Once they are accrued, Quantity below threshold and Pending catch-up value on Threshold status fall back to zero.

Each accrual is its own small general journal, posted automatically because Post automatically is on for Accrual. The February 19 delivery posts:

AccountDebitCredit
Customer rebate expense1,200.00
Customer rebates accrued1,200.00

The two catch-ups post the same way for 900.00 and 1,000.00. None of these lines is part of the packing slip's own voucher. By the end of the day the deal has accrued 3,100.00.

For the detail of what an accrual posts, see I want to understand what an accrual posts.

March 8: the headroom alert​

The March 8 delivery accrues 1,200.00, bringing the deal to 4,300.00. That leaves 700.00 of the 5,000.00 cap, 14 per cent, which is at or below Dana's alert of 20 per cent. Earmark records one Headroom warning on Breaches, on the delivery that crossed the alert and not on every delivery after it, and the deal appears on the Deals near cap tile. Nothing is blocked.

Dana calls Bramblewood's buyer. The cap is what was agreed and neither side wants to change it, so she leaves the deal as it is. (Raising it would have been an amendment, see What could have gone differently.)

March 24 and 30: the cap is reached​

On March 22 Teo builds the line for a 1,500-case order due to ship on March 30. The Build price dialog still offers the deal, with a note: "Deal DEAL-000118 has prices already built against the rest of its lifetime cap. This line can still be built, but the accrual may be clipped when the goods move..." A 2,000-case line built two days earlier has not shipped yet, and its 1,000.00 already covers the 700.00 left. Teo builds the line anyway; the warning is there so nobody is surprised later.

On March 24 those 2,000 cases ship. They compute 1,000.00, but only 700.00 of headroom is left, so Earmark accrues 700.00 and records Cap reached: the deal has reached its lifetime cap, and of the 1,000.00 computed only 700.00 could be accrued. The packing slip posts normally; reaching the cap never blocks a document. The deal moves to the Deals over cap tile.

On March 26 Teo enters another order to ship on March 31. In Build price the deal is no longer offered; under Show ineligible it is listed with the reason Deal cap exhausted. He closes the dialog and the line keeps its ordinary price of 18.40.

On March 30 the 1,500 cases built on March 22 ship. The deal has no headroom, so the movement accrues nothing: no journal, no accrual transaction, another Cap reached verdict, and a Superseded row in the queue. Because the price mode is Off-invoice, Bramblewood was invoiced 18.40 for those cases like every other.

Over the quarter Bramblewood took 12,100 cases. The deal accrued 5,000.00 in five accrual transactions, which is exactly the cap.

If an order taker asks why a deal is missing, see I want to find out why a deal is missing from Build price.

April 2: Sofia raises the claim​

On April 2 Sofia opens Earmark > Inquiries and reports > Accrual transactions, selects Claimable in the Worklists group, and filters to DEAL-000118. The five accrual transactions are there: the February 19 delivery, the two catch-ups, March 8 and March 24.

  1. She selects all five and, in the Claims group, selects Generate claims.
  2. The dialog previews one claim, because Earmark groups claims by counterparty type, invoice account and currency, and all five share Customer, BWM-001 and USD. Nothing is written yet.
  3. She selects Generate. The infolog reports "1 claim(s) generated over 5 accrual transaction(s)."

Claim CLM-000042 is created Open, with one line per accrual transaction and a Total claim amount of -5,000.00 (negative, like the accruals it carries). Each line has its own claim journal, created unposted. Because Post automatically is on for Claim, the next run of the Accrual event processor posts them, and the claim's Posting status turns to Posted. Each claim journal moves the money from the accrued liability to claims payable, for example for the first line:

AccountDebitCredit
Customer rebates accrued1,200.00
Customer claims payable1,200.00

The amount is copied from the accrual, never worked out again, so the five claim lines add up to exactly 5,000.00.

Sofia then selects Submit for approval. Earmark checks that every claim journal has posted and that an approval workflow is active, and the claim moves to Pending approval.

To do this yourself, follow I want to generate claims from selected accrual transactions, I want to get the claim journals posted and I want to submit a claim for approval.

April 6: Ian approves the claim​

The claim lands on Ian's Claims pending my approval tile. On Claim details he reads the Lines tab (deal, item, quantity, rate and claim amount, with the sales order and packing slip behind each line) and confirms there is no return flag outstanding.

He selects Approve. Before the work item completes, Earmark checks that Ian may approve this claim:

  • he did not generate it (Sofia did) and did not submit it (Sofia again);
  • he holds the Approve Earmark claims duty;
  • he did not approve the deal behind any line (Marcus did), which matters because Block claim approval by the deal's approver is set.

These checks run whatever segregation-of-duties rules the administrator has set up. Had the work item reached someone who failed one, such as Marcus, the approval would have been refused at once, the claim would have stayed Pending approval with a SoD denied row on its timeline, and the work item would have waited to be delegated. When the workflow completes Ian's approval, Earmark checks again and re-runs every submission check, because a claim can wait days for its approver.

The claim becomes Approved with Posting status Posting pending, and Earmark creates five claim approval journals, one per line, each crediting Bramblewood. Post automatically is off for Claim approval and Auto-post claim approval journal is off, so Hannah finds them on the Pending journals list of the Deal control workspace, checks them and posts them as general journals. The first line posts:

AccountDebitCredit
Customer claims payable1,200.00
Bramblewood Markets (customer BWM-001)1,200.00

The customer side posts through the default customer posting profile in Accounts receivable parameters, so it lands on the usual receivables account and creates an approved credit transaction on BWM-001. When the fifth journal posts, the claim reads Posted and moves to Approved - awaiting settlement.

To do this yourself, follow I want to review a claim and its lines before I approve it, I want to approve a claim, I want to understand why I was not allowed to approve and I want to post Earmark journals that are held for review.

April 9: the claim statement goes to Bramblewood​

Bramblewood's accounts payable team asks for something it can match to its deliveries. Sofia opens Accounts receivable > Customers > All customers, selects BWM-001, and selects Sell tab > Earmark group > Claim statement:

  1. Mode On demand, Period from April 1, Period to April 9. Balances as of defaults to April 9.
  2. Under Presentation she leaves Statement currency and Language blank, so the statement uses the defaults, and leaves Internal copy cleared.
  3. She selects Run. The statement goes to the email destination of the Original print management record, and the run is logged.

The period has to include April 6: Approved this period counts claims by their approval date, and only credits that have posted.

What Bramblewood receives:

SectionWhat it shows
SummaryOpening balance 0.00 (this is the first statement for BWM-001), Approved this period -5,000.00, Closing balance -5,000.00. The statement uses the receivables sign, so a credit reads negative.
Credits available to youThe five credits, each with its Claim reference (the claim number and line number), Deal, Item, Quantity and Amount

The internal sections, such as Accrued, not yet claimed (internal), appear only on the internal copy.

To do this yourself, follow I want to run a claim statement for a customer. For a scheduled run, see Claim statements.

April 14: the credit is settled against open invoices​

On April 12 Bramblewood replies by email: apply the credit to the open invoices rather than pay it out. Sofia opens the claim, and on the Lines tab selects Record settlement preference for each of the five lines in turn, setting Preference Leave on account, How they told us (email) and Date received April 12. Earmark keeps every preference it is given; a later change of mind is added beside this one, never written over it.

On April 14 Owen selects Settle transactions on BWM-001's customer page, finds the five Earmark credits by their vouchers (each claim line's Approval voucher), marks them against Bramblewood's open invoices from late March and early April, and settles, as he would any credit note. Earmark adds no settlement screen and posts nothing of its own here; the settlement is standard accounts receivable. Each claim line's Remaining reads 0.00 at once, and the Awaiting settlement tile and Claim credit available by customer no longer count the five credits.

At the end of April Sofia runs the statement for April 10 to April 30. It opens on the balance the April 9 statement closed on (-5,000.00), the Applied on account line carries the settlement, the five credits are listed under Credits settled in the period, and the closing balance is 0.00. The Applied on account line counts the settlement only because each line's current preference is Leave on account: a settlement on a line with no preference appears in the settled section but on neither the cheque nor the on-account summary line.

To do this yourself, follow I want to record a customer settlement preference and I want to settle claim credits against invoices.

What they ended up with​

Fifteen small Earmark journals, each with its own voucher: five accruals, five claims and five claim approvals. In the ledger:

AccountDebitsCreditsBalance after the quarter
Customer rebate expense5,000.005,000.00 debit
Customer rebates accrued5,000.00 (claims)5,000.00 (accruals)0.00
Customer claims payable5,000.00 (approvals)5,000.00 (claims)0.00
Receivables, Bramblewood Markets5,000.00 (approvals)settled against invoices

The two liability accounts end at zero because each claim and each approval takes its amount from the movement before it, never worked out again. The expense sits in February and March, when the cases moved. Bramblewood was invoiced 18.40 on every case and credited exactly 5,000.00: nothing for the 2,100 cases the cap stopped, and full value for the 3,800 cases the threshold had held back. The deal's Earmark timeline keeps Marcus's change request, and Approved by on the deal and on the claim names a different person from the one who wrote or raised it.

To close the quarter, Dana ends the deal with Close, which is allowed because it has posted accruals, and starts the next quarter's program with Copy. See I want to end a deal with Close, Cancel or Abort and I want to copy a deal.

What could have gone differently​

  • Bramblewood asks for a cheque. Sofia records Refund by cheque instead, and Earmark > Periodic tasks > Propose refunds writes an unposted customer payment journal with one line per credit, each marked to settle its credit; Owen reviews and posts it. The next statement shows the amount on Paid by cheque rather than on Applied on account. See I want to propose refunds and post the refund journal.
  • Cases come back. A return before the claim reverses the accrual for the returned cases. A return after the claim is raised flags the claim line Return after claim. While Block claim approval of return-flagged lines is on in Earmark parameters, as shipped, the approval waits until Sofia accepts the flag. See I want to understand what a return does to an accrual and I want to accept a return flag on a claim line.
  • The cap is raised mid-quarter. Had Dana and the buyer agreed more money after the March 8 alert, she would have used Submit cap change, an amendment that Marcus approves. The new cap applies to every live accrual instance from the moment it is approved, and nothing already accrued is reversed. See I want to amend an approved deal.
  • Bramblewood never reaches 6,000 cases. Nothing accrues, nothing is claimed, and Threshold status shows the pending catch-up value that was never earned. Because no accrual posted, the deal cannot be closed; a deal that priced lines but never accrued is ended with Abort, which needs the Abort Earmark deals duty (on no role as shipped). See I want to end a deal with Close, Cancel or Abort.

If a supplier pays part of the rebate, see how to set up a supplier-funded customer program and the story A promotion the supplier helps pay for.