A deal's life, end to end
One trade deal followed from setup to settled credit, naming who does each step and where the full walkthrough lives. Read this first; the five chapters are the detail.
The example is the commonest case: a customer program, a rebate a customer earns on what they buy, claimed back as a credit and settled through accounts receivable. Vendor-funded and purchase-side variations are at the end.
Two promises that shape everything below. Earmark never refuses a standard document: if it cannot accrue, the packing slip or invoice still posts, and the problem lands in a workbench someone can retry. And a license problem warns first: it shows a tile and marks the internal copy of a claim statement. Only on production, at the license's block date, are new deals and claims and their approvals refused. Existing deals keep pricing and accruing, and approved claims keep settling.
0. Once, before the first deal (the administrator)
| Step | Who | Detail |
|---|---|---|
| Grant duties, including the ones that ship on no role | System administrator | Who does what |
| Turn the Customer deals module on, and Price build-up on sales lines for the price build-up FactBox and the Stale prices tile | Accounting manager or System administrator | Turn modules on |
| Number sequences (creating a sequence needs the System administrator or Information technology manager), posting profile, dimension rules, Earmark reason codes | Accounting manager | Setup chapter |
| Company defaults: Default deal unit, and a Reversal presentation (nothing reverses until one is chosen) | Accounting manager | Company defaults |
| Journal names for each movement type, and whether each posts automatically or waits for review | Accounting manager | Journal names |
| Activate the deal and claim approval workflows, in each company | System administrator | Activate the approval workflows · Approval workflows |
| Clear every Open row on the setup checklist, clicking Re-evaluate after each change | Accounting manager | Work the setup checklist · Setup checklist |
| Schedule the Accrual event processor as a recurring batch job, at least as often as Event sweep cadence | Accounting manager or Accountant | Run or schedule the accrual batch jobs · Accrual event processor |
Nothing accrues until the last row is done. Posting a packing slip or invoice only queues an accrual event; the events are processed by the Accrual event processor batch job. (Process now on the accrual event queue only finishes rows a run has already claimed, the ones reading Processing; it does not process Queued rows.) Nothing schedules that job for you, and Event sweep cadence in parameters does not create it: it is the target the setup checklist checks the job's recurrence against. The Accrual event processor not scheduled setup-gap tile stays lit until a recurring job runs at least that often in the company. The Accounting manager and Accountant roles can schedule it. The same job also posts the Earmark journals that are set to post automatically (Post automatically). All the batch jobs are listed in the installation guide and the configuration reference.
1. Agree the deal (deal manager, then approver)
- Create the deal in Planning: a Deal ID you type (only a copy takes one from the number sequence), module, shape, rate and rate basis, deal unit, price mode, accrual point, who can claim, validity dates, currency, caps. A deal cannot be saved without a deal unit; new deals take the company's Default deal unit. → Create a deal
- Say what it applies to: customers, items, categories. → Targeting
- Check it: validate accounts, and use Test deal resolution to see why the deal would or would not apply to a given order line. → Check a deal · Test deal resolution in Deals
- Submit for approval. → Submit
- The approver approves (or rejects, requests a change, delegates), from the work item or from Earmark > Deals > Deals pending my approval. The approver can open the deal read-only and run Test deal resolution and Validate accounts before deciding. Segregation of duties stops the submitter approving their own deal: such an approver is refused when they choose Approve, and the work item stays with them to delegate. → Approve
The deal is now Approved and live for its validity window. Status meanings: What each deal status means.
2. Sell (order taker)
- On the sales order line, Build price: Earmark resolves the approved deals that apply and shows the build-up (base price, over-basis, deal money). → Build a deal price
- The price mode decides whether deal money is taken off the invoice price or grossed in and claimed back later. → Price modes
- If the line or its order header changes after the price was built (the item, quantity, unit, invoice account, date or currency), the line is flagged stale, and the person whose change did it is warned (Stale-price warning, on as shipped). Customer service acknowledges it, or a sales manager unbuilds it and the price is built again. → Stale prices
Lines that an integration creates can be priced automatically by an inbound pricing policy, once Inbound auto-pricing is switched on in Earmark parameters (it is off at install). → Lines created by an integration · Inbound auto-pricing
3. Ship and invoice (nobody does anything new)
Post the packing slip and invoice exactly as today. As part of each posting, Earmark adds one row to its accrual queue; if the posting fails or is canceled, nothing is queued. The scheduled Accrual event processor turns each queued row into an accrual transaction and an Earmark journal of its own: the accrual is never part of the packing slip's or invoice's voucher. → What happens when a document posts
- If Post automatically is on for accruals, Earmark posts that journal itself. If it is off, the journal waits on the Journals pending review tile until someone posts it with the standard journal posting. Either way, posting it brings the accrual and the deal balance up to date, and the accrual transaction's timeline records Accrual journal posted.
- What an unposted Earmark journal will post (amount, date, accounts, dimensions) cannot be edited. If it cannot post because its date is now in a closed period or a dimension value was suspended, an accountant or accounting manager uses Correct held journal on Earmark > Inquiries and reports > Accrual transactions. → Post or correct an accrual journal
- Caps and qualifying quantities apply here. Hitting one is a verdict (a policy outcome, shown in the verdict register), not an error. A missing account or a journal that will not post is a failure, and goes to the execution exceptions workbench to be fixed and retried. → Verdict or failure? · Workbench
- Watch the money on the Deal control workspace: balances, headroom against caps, breaches. → Deal control workspace
4. Claim (AR clerk, then claims approver)
- Generate claims from claimable accrual transactions, interactively or on a schedule. → Generate claims · The scheduled claim sweep
- Take a claim from the queue, or have it Assigned (an accounts receivable manager can Reassign it). → Claim queue · Take, assign or reassign
- Work it, record the customer's settlement preference, then submit for approval. → Work a claim · Submit
- The claims approver approves. Earmark re-validates; if anything changed the claim returns to Open (a verdict). On approval Earmark creates the customer credit in a journal on the Claim approval journal name. With Post automatically on for Claim approval, or Auto-post claim approval journal on (either is enough), the next run of the accrual event processor posts it; with both off, the claim waits on the Approved - posting pending tile until someone posts the journal. Earmark approves the credit line itself, so the posted credit can be settled. → Approve or reject · Approval workflows
5. Tell the customer, and settle (AR)
- Send a claim statement: what is available, what was settled, what is new. → Statements · Claim statement runs
- Settle the credit against the customer's invoices in standard AR, or, for customers who asked to be paid, run Propose refunds: Earmark writes an unposted customer payment journal that accounts receivable reviews and posts, which settles the credit. → Settle · Refunds · Propose refunds, step by step
- Watch aging and who is holding credit. → Claim aging
6. When things change
| Situation | Where |
|---|---|
| The deal terms must change after approval | Amend an approved deal |
| Goods come back | Returns · Return-after-claim flag |
| An accrual is wrong | Adjust · Reverse |
| An Earmark journal is stuck in a closed period or on a suspended dimension | Correct held journal on Accrual transactions: Post or correct an accrual journal |
| A claim was wrong | Reverse a claim |
| The deal is over | Close, Cancel or Abort |
To see these situations worked through on real deals, read the stories Paying a grocery chain only for the volume it earned, Returns, a canceled shipment and a disputed claim and Closing a month when trade accruals went wrong. All the stories are listed in Earmark stories.
Ending a deal: Close is for a deal that cost something: it is refused until at least one accrual on the deal has posted ("Deal %1 cannot be closed because no accrual has been posted against it. ..."). A deal that never accrued is Canceled if it never priced an order line, or Aborted if it did. The deal managers (Sales manager, Purchasing manager, Inventory accountant) and the Earmark deal approver can Cancel and Close; Abort ships on no role and is granted on purpose.
Vendor and purchase-side variations
- A supplier funds the customer program: add funding rules to the customer deal; Earmark mirrors each customer accrual as a vendor receivable and raises vendor claims in a settlement run. → Supplier-funded program · Mirrors · Vendor settlement · The vendor settlement run · Story: A promotion the supplier helps pay for
- Approving a vendor claim does not post anything. Earmark writes the vendor credit into a journal on the Vendor proposal journal name as a proposal for accounts payable, and the claim reads Proposed (see the Vendor proposals awaiting AP tile). Accounts payable reviews, approves and posts it; posting completes the claim. If accounts payable deletes the proposal, the claim reads Proposal deleted and an accounts payable clerk uses Re-propose vendor journal to write a new one. → Vendor deals and mirrors
- Deals on what you buy: build a purchase price from vendor deals on the purchase order line. → Build a purchase price · Story: Claiming a supplier's volume rebate
- A deal a sale triggers but a vendor funds (Sales-triggered vendor accrual) needs its Funding vendor filled in, or it is refused at submit. → Create a deal
- Choosing the shape: Choose the right vendor deal shape