Pricing orders and accruing deal money
This chapter is for order takers (sales clerks, customer service, purchasing) and for accruals and finance staff. It covers how to put deal money into an order line's price, how to read and correct that price, what happens to the deal money when the order ships or is invoiced, and how to read, adjust, reverse, post and reconcile the accruals that result. It also covers what to do when something fails. Claims have a chapter of their own. For where Earmark fits into the standard sales process, see How Earmark changes your processes. To find a screen, see Forms guide.
Two rules shape everything in this chapter:
- Earmark never stops a standard document. Packing slips, invoices and returns post exactly as they would without Earmark. Posting only queues the accrual work; Earmark does that work afterwards. If it cannot accrue, the document still posts, and the problem appears in Earmark (see the last sections).
- A verdict is not a failure. A verdict is a policy outcome, such as "cap reached". The system worked as designed and tells you what the deal's rules decided. A failure is a malfunction, such as "account could not be resolved". It goes to the execution exceptions workbench and you can retry it. The two are never mixed. See Tell a verdict from a failure.
Who can do what (the roles as shipped; your administrator may have changed them):
| Act | Who has it as shipped |
|---|---|
| Build price on a sales order line | Sales clerk, Sales manager |
| Build price on a purchase order line | Purchasing agent, Purchasing manager |
| View price build-up and the Price build-up FactBox | Sales clerk, Sales manager, Customer service representative, Accounts receivable clerk, Earmark deal approver, Earmark auditor, Purchasing agent, Purchasing manager |
| The Price build-up inquiry (Earmark > Inquiries and reports > Price build-up) | Sales clerk, Sales manager, Customer service representative, Accounts receivable clerk, Earmark deal approver, Earmark auditor |
| The Stale prices list (Earmark > Inquiries and reports > Stale prices, or the Stale prices tile) | Sales clerk, Sales manager, Customer service representative, Accounts receivable clerk, Earmark deal approver, Earmark auditor, Purchasing manager |
| Stale prices on the sales order line, and Acknowledge stale price | Customer service representative. Both buttons are hidden from everyone else. |
| Unbuild price | Sales manager, Purchasing manager (the supervisors of whoever builds the price; the sales clerk and purchasing agent who build cannot unbuild) |
| Add deal (attach a deal that does not target the line) | Sales manager (the Attach non-targeted deal duty). The button does not add the deal today; see Add a deal that does not target the line. |
| Accrual instances, Accrual transactions, the Earmark accruals FactBox, Open accruals at close | Every role with the Inquire into Earmark accruals duty: Sales clerk, Purchasing agent, Purchasing manager, Inventory accountant, Accountant, Accounting manager, Accounting supervisor, Accounts receivable clerk and manager, Accounts payable clerk and manager, Earmark deal approver, Earmark claims approver, Earmark auditor; and Sales manager |
| Accrual event queue, Accrual reconciliation and Run reconciliation | The same roles, except Sales manager |
| Post manual accrual, Reverse accruals, Reverse accruals on a deal, Create accrual instance, Resolve a credit review | Accountant. Create accrual instance is refused while Allow manual accrual instances is off (as shipped). |
| Adjust accrual | Accounts receivable clerk, Accounts payable manager (it comes with the Process Earmark claims duty) |
| Accrual event processor, Process now, Unaccrued transaction sweep, Correct held journal | Accounting manager, Accountant (the Run Earmark accrual processing duty) |
| Retry selected and Dismiss on the execution exceptions workbench | Accounts receivable manager, Accounts payable manager, Accounting manager |
| See the execution exceptions workbench (read only) | Every other role with the Inquire into Earmark duty: Sales clerk, Sales manager, Purchasing manager, Inventory accountant, Accountant, Accounting supervisor, Accounts receivable clerk, Accounts payable clerk, Earmark deal approver, Earmark claims approver, Earmark auditor |
| Save run on a reconciliation, Rebuild balances | Accounting manager (the Rebuild Earmark balances and record reconciliations duty) |
Every act has its own secured button. If a button is greyed out, your role does not include that act. It does not mean something is wrong with the order. (The two stale-price buttons above are the exception: they are hidden rather than greyed out.)
The license block (on production only, from the block date set for your license) refuses none of the acts in this chapter: existing deals keep pricing and accruing, and Earmark journals keep posting. Of the buttons named here, only Generate claims is refused then, and it belongs to Claims, statements and settlement. See License check and I want to know whether a license warning stops me pricing orders.
Build a deal price onto a sales order line
Who: Sales clerk, Sales manager · Where: Sales order, Lines section. The Price build-up button group on the line toolbar holds Build price. · Before you start: The Customer module must be switched on in Earmark > Setup > Earmark parameters (the Price build-up buttons are hidden otherwise). At least one deal must be Approved. The line must have an item and a quantity. Nothing on the line can have been reserved, picked, shipped or invoiced yet: a reservation alone is enough to close the line to a build. On a line that already carries a build, Build price opens that build read-only.
- Open the sales order and select the line.
- On the line toolbar, in the Price build-up group, select Build price. The Build price dialog opens.
- Check the Line panel at the top: Order, Line, Item number, Quantity, Unit, Price unit, Currency and Eligibility date. The eligibility date decides which deals are offered at all. It is the line's requested ship date as shipped; your company can set Eligibility date basis in Earmark parameters to Requested receipt date or Order date (the day the order was created, in your time zone) instead. A line with no such date uses the day the order was created. If the list of deals is empty, the date is usually outside every deal's validity window.
- In the Equation panel, enter or check the Base price (the goods' own price before any deal money) and the Over-basis (what this customer pays over the basis; it can be negative).
- In the Deals list, select Include for each deal whose money belongs in this line's price. If Auto-select all proposed deals is on in Earmark parameters, every eligible deal starts selected. Where the Allow amount edit column is selected, you can type over Amount. The original amount is recorded beside your edit.
- To see deals that reach the line but cannot be used, select Show ineligible. Each is listed with an Ineligibility reason (see the table below). A deal that is not approved, is outside its validity window, is in another currency, does not target the line, or belongs to a module that is off is not listed at all, even with Show ineligible. To find out why such a deal is missing, ask someone who can open Test deal resolution (as shipped: Sales manager, Purchasing manager, Inventory accountant, Earmark deal approver).
- Select Recalculate to update the equation from your choices. This writes nothing, so you can select it as often as you like. It does not refresh the list of deals: if a deal may have changed since the dialog opened, close it and select Build price again.
- Check Deal money, Allowance and Unit price in the equation, then select Accept.
What happens: In one step, Earmark stores the build and its components (base, over-basis, deal money, allowance). It creates one accrual instance for each deal you included, which is a frozen copy of that deal's terms bound to this line. It then writes the unit price to the order line. The infolog reports "Price built. Build number <build>, unit price <price>.", and the build's timeline records "Build <build> accepted. Unit price <price>, of which deal money <amount>." Selecting Accept twice does not make a second build. Accept with no deal included still writes a build, at base price plus over-basis only, and locks the price like any other build; a deal approved later reaches that line only after an unbuild and a new build. A deal you included that has left Approved since the dialog opened is left out of the build without a message, so check the build's deals afterwards.
After a build, the line is price-locked. You cannot type over the unit price, the line discount, the line amount or the price unit. If you try, Earmark tells you to use Unbuild price and build again. If a trade agreement search later proposes a different price, Earmark puts the built price back and records a stale reason, so the difference stays visible.
The Price build-up FactBox beside the lines shows the build, and the Stale prices tile appears, only when Price build-up on sales lines is also on in Earmark parameters.
Ineligibility reasons shown with Show ineligible (only these four appear; a deal that fails an earlier test, such as approval, currency, validity window or targeting, is not listed):
| Reason | What it means |
|---|---|
| Unit not convertible | No unit conversion exists between the item's unit and the deal's unit. Earmark will not guess a factor. Set up a unit conversion for the item. |
| Deal amount is zero | The deal would put nothing on the line. |
| Deal cap exhausted | The deal's lifetime cap has no headroom left. |
| Deal already attached to this build | The deal is already on this line. |
A deal whose remaining cap is already taken up by other built prices is still offered, with the note "Deal <deal> 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…"
If it is refused:
- "This line already carries build <build>, so a second build was not made…" To change the price, unbuild it and build again.
- "No price was built for order <order> because the line has moved beyond the point where its terms can still be frozen…" Something on the line has been reserved, picked, shipped or invoiced (the message names only picking, shipping and invoicing, but a reservation closes the line too). The deal money has to be recorded by an accountant instead: a commitment for the deal on the line (Create accrual instance), then a manual accrual against it (see Post a manual accrual).
- "Deal <deal> was asked for but is not eligible for this line…" or, rarely, "Deal <deal> is no longer available and is <status> rather than Approved, so nothing was built…" Something changed while the dialog was open. The messages say to recalculate, but Recalculate does not refresh the deals: close the dialog, select Build price again and look at the current list.
- "No price was built because the <module> module is switched off in Earmark parameters…" This is a setup decision, not a fault. Ask your administrator. It has nothing to do with the license.
- "No price mode can be resolved for deal <deal>. Set the default price mode in Earmark parameters, or allow per-deal price modes and set one on the deal." Ask your administrator.
- "The base price <price> is below zero…" Put a discount in Over-basis instead.
- "The amount on deal <deal> cannot be edited on an order line. The deal owner has not allowed amount edits." / "The edited amount <amount> for deal <deal> crosses zero or reverses the sign of <amount>…"
- "Deal <deal> is a fixed amount per transaction and this line has no quantity to spread it across."
- "No price could be built for line <line> under deal <deal> because the line has no inventory transaction origin…" The item is usually non-stocked. A deal price cannot be built on that line.
One message is a warning only: "The off-invoice allowance on line <line> is <amount>, which is more than the line is worth… This is allowed, but check that the allowance and the quantity are both right."
Add a deal that does not target the line
Who: Sales manager (the Attach non-targeted deal duty) · Where: Build price dialog, Deals list toolbar, Add deal
This does not work in the current release. Add deal opens a prompt for a Deal and a Reason, but the deal you enter never joins the Deals list and is never built: Accept builds the line with the listed deals only, and nothing tells you the added deal was left out. To put a deal's money on a line its targeting does not reach, ask the deal owner to widen the deal's targeting, then build the price again. Attach non-targeted deal is kept apart from approving deals by a segregation-of-duties rule.
- In the Build price dialog, select Add deal.
- Enter the Deal and a Reason, then select OK. The dialog recalculates, and the deal does not appear.
What happens: Nothing is attached. A deal ID that does not exist is refused with "Deal <deal> does not exist."
Understand price modes: gross-up and off-invoice
Each deal has a Price mode, which decides whether its money is inside the invoiced unit price or carried beside it:
| Price mode | What the customer is invoiced | Where the deal money is |
|---|---|---|
| Gross-up | Base price + over-basis + deal money | Inside the unit price. On the build it shows as Deal money. The customer claims it back later. |
| Off-invoice | Base price + over-basis only | Beside the price, as an Allowance. It is still accrued, but it is not on the invoice. |
| Company default | Whichever of the two is set as Price mode in Earmark parameters | Resolved when the price is built. Every component records the mode it actually used. |
A deal's own Gross-up or Off-invoice is used only while Allow per-deal price mode is on in Earmark parameters. When it is off, every sales deal takes the company Price mode.
Purchase lines follow their own rules, and never take the sales Price mode default:
- A Purchase price build-up deal is always off-invoice: the purchase price stays at base plus over-basis, and the deal accrues nothing.
- Any other vendor deal on a purchase line takes its own mode where per-deal modes are allowed. Otherwise it takes Purchase price mode default (the Vendor deals tab of Earmark parameters), and off-invoice while that is left at Company default.
One line can carry both kinds at once. The Price build-up FactBox shows Mixed in that case. The claim side works the same way in either mode.
View a line's price build-up
Who: see the table at the top of this chapter · Where: Sales order line toolbar, Price build-up group, View price build-up; or the Price build-up FactBox beside the lines, then its more link. On a purchase order, View price build-up is in the same group on the line toolbar.
- Select the line and select View price build-up.
- The Equation panel shows the stored decomposition: Base price, Over-basis, Deal money, Allowance and Unit price, each with an accounting-currency figure beside it. It also shows the Build rate, which is the exchange rate captured at build time.
- The Deals list shows each component (Base, Over-basis, Deal money, Allowance), its deal, its resolved price mode, and the Accrual instance it became.
What happens: Nothing is built. On a built line the form is read-only. On a line with no build, View price build-up opens the Build price dialog as a what-if instead (see Try a price before you build it). For a quick look without opening it, use the Price build-up FactBox. It shows the components, the Price mode, the Build state (Built, Stale or Unbuilt), the build number, and who built it and when.
Try a price before you build it
Who: anyone who can open View price build-up (see the table at the top of this chapter); only holders of Build price can accept · Where: Sales order line toolbar, Price build-up group, View price build-up, on a line with no build. On a purchase order, View price build-up is in the same group on the line toolbar.
- Select a line that has no build, then select View price build-up. The Build price dialog opens with the eligible deals proposed.
- Include or exclude deals, change the Base price or Over-basis if you like, and select Recalculate to see the equation. Select Show ineligible to see which deals reach the line but cannot be used, and why.
- Close the dialog when you have your answer.
What happens: Nothing is built. Accept is greyed unless you hold Build price (the Build line prices or Build Earmark purchase prices duty). A build attempted from the page without it is refused: "User <user> is not permitted to build line prices…" To have the price built, ask the order taker who holds the act.
Unbuild a line's price
Who: Sales manager or Purchasing manager (the Unbuild line price duty) · Where: Sales order line toolbar, Price build-up group, Unbuild price. On a purchase order, open the line's build with View price build-up and use Unbuild price there. Also available from the Stale prices list. · Before you start: No movement can exist on the line's instances (an accrual, or a reversal of one), and nothing on the line can have been reserved, picked, shipped or invoiced (on a purchase line: registered, arrived, received or invoiced).
- Select the line and select Unbuild price.
- Check the Build panel: Build number to retire, the current unit price and Unit price to restore.
- Read the Prechecks panel. "Every precheck passes. This build can be withdrawn." means you can go ahead. In the Instances list, a selected Has movements box or a cleared In edit window box blocks the unbuild.
- Enter a Reason code (required) and, optionally, a Note.
- If a document might have posted while the dialog was open, select Re-run prechecks.
- Select Unbuild.
What happens: The accrual instances are withdrawn (status Withdrawn), the pre-build unit price is written back to the line, and the build is retired as Unbuilt. The build is kept on file, and a later rebuild takes the next build number. The infolog reports "Build <build> withdrawn. The unit price recorded before the build has been restored to the line.", and the build's timeline records the reason ("Build <build> unbuilt with reason <reason>. Unit price restored to <price>."). The build's open stale reasons are cleared with it, so the line leaves the Stale prices list and tile. A withdrawn instance still counts as use of the deal, so a deal whose only price was unbuilt can no longer be canceled; it is aborted instead (Abort ships on no role; ask your administrator). See Working with trade deals.
On a supplier-funded (mirrored) deal, the unbuild withdraws the customer commitment only. It does not end the supplier's side that the build created; see Vendor deals, supplier funding and mirrors.
If it is refused:
- "The price cannot be unbuilt because accrual instance <instance>, on deal <deal>, has already accrued money…" An instance with any movement, a reversal included, keeps its build, so reversing the accruals does not let you unbuild it. Correct the money with a reversal or an adjustment (see Reverse accruals) and keep the price as built.
- "The price cannot be unbuilt because accrual instance <instance>, on deal <deal>, is past its edit window…" The line has been reserved or its goods have moved. The price stays as built.
- "The price was not unbuilt because no reason was given…" Choose a reason code.
- "You are not permitted to unbuild a line price…" Ask your sales manager or purchasing manager, who has the duty as shipped.
- "There is no build to unbuild on this line…" The line is not priced through Earmark.
Deal with a stale price
A build becomes Stale when the line changes after it was priced. The changes that count are the item, inventory dimensions, quantity, unit, price unit, invoice account, the eligibility date (the requested ship date, as shipped), or currency. A change on the order header (invoice account, currency) can make every built line stale at once. Only sales line builds are checked: a purchase line's build is never flagged stale. A stale price never blocks anything. The line can still be confirmed, picked, packed and invoiced at the built price. Stale only means the deal money may no longer be the right amount. Two settings on the Price build-up tab of Earmark parameters decide who is told, and both are on as shipped:
- Stale-price warning: the person whose change makes the build stale gets a warning in the infolog at that moment, naming the build, the order line and the reason ("Earmark build <build> on line <order / line> is now stale: <reason>. Nothing has been unposted and nothing is blocked…"). With it off the build is still flagged and listed; only the warning is left out.
- Warn at posting for stale lines: while Price build-up on sales lines is on, posting a sales packing slip or invoice that includes a line whose build is stale writes one warning per line, naming the document, the order line, the build and its open reasons. The posting goes ahead unchanged. A canceled or corrected packing slip does not warn again.
Either way, the Stale prices tile and list show every stale build.
Who: Customer service representative (to acknowledge); Sales manager or Purchasing manager (to unbuild, and the Sales manager can then build the sales price again); the roles in the table at the top of this chapter can read the list · Where: Earmark > Inquiries and reports > Stale prices; the Stale prices tile on the Earmark workspace (Earmark > Workspaces > Earmark); or, for the customer service representative, the sales order line toolbar, Price build-up group, Stale prices
- Open the list from the menu, the tile, or Stale prices on the line. From the line it shows only that line's build; from the menu or the tile, every stale build in the company. It has one row per open reason, showing the Order, Line number, Invoice account at build, Build number, the Reason, the Value at build and Value now, who flagged it and when, whether the line is Accruing, and the Built unit price. Set Show acknowledged to Yes to include reasons that are already cleared (Accepted).
- Choose one of three answers:
- Rebuild: a sales manager or purchasing manager selects Unbuild price, then the price is built again from the order (by the order taker, or by the sales manager). Unbuilding clears the build's open stale reasons, so the line leaves the list and the tile.
- Keep the price: select the rows, then Acknowledge stale price (shown only to holders of the act). Enter a Reason code (required) and a Note, then select OK.
- Look at the order first: select Open line to open the sales order.
What happens: Acknowledging clears the flag and keeps the price. Nothing is rebuilt. The infolog reports "<n> stale reason(s) acknowledged across <n> build(s)."
Currency is special. If the order currency changes, Earmark does not restore the built price. The natively derived price stands and the build is flagged stale for currency. Unbuild and rebuild in the new currency, or acknowledge to keep the price as it is.
If it is refused: "Acknowledging a stale price needs a reason code…" Choose one. "Reason code <code> is not one of the reason codes flagged for use with Earmark…" Choose a reason code that has Applicable to Earmark selected on the standard Financial reasons page, or ask whoever maintains reasons to flag it.
Know what happens to lines created by an integration
Order lines that arrive through a data entity, an integration or a portal have nobody to select Build price. The accounting manager decides what happens to them in Earmark > Setup > Inbound pricing policies, by customer, sales origin and effective dates, and switches the feature on with Inbound auto-pricing in Earmark parameters (off at install; with it off, no line is priced automatically whatever policies exist). It does not depend on Price build-up on sales lines: lines are priced automatically whether that switch is on or off. The whole process, step by step, is in Inbound auto-pricing and headless auto-attach on purchase lines.
After an update: earlier releases applied inbound pricing policies without looking at Inbound auto-pricing. They now apply only while it is on, and it is off unless someone has switched it on. If your company already has policies that should keep pricing integration lines, switch Inbound auto-pricing on in Earmark parameters after the update.
Which lines count. Only lines the standard sales order line data entities create are covered: OData (including lines typed in through the Excel add-in), data management, dual-write and Dynamics 365 Sales. A line entered in the order form or with Copy from, a credit note or return line, a line with a negative quantity, a line on an intercompany order, or a Commerce order is never priced automatically. Lines inserted by custom X++, EDI or the older V1 sales order line entity are not covered either. A line is recognized only by the mark the standard entity puts on the line it creates, so other lines created during the same import (kit components, charges lines, lines added by an extension) are not priced automatically; and if the CDSIntegration configuration key is off, no line carries the mark and nothing is priced automatically.
The policy is applied just after the order is saved:
| Inbound pricing action | What happens to the incoming line |
|---|---|
| Do nothing (the default) | The line keeps its native price. An order taker can build it later. |
| Propose and hold | Earmark records the deals it finds as a proposal and leaves the price alone. Nothing shows or reopens that proposal (there is no list of held lines, and Build price always starts afresh), so in practice the line is treated as under Do nothing: an order taker builds it with Build price. |
| Build and accept all eligible | Earmark builds the price and accepts every eligible deal automatically. A line no eligible deal reaches is still built, at its base price only, and price-locked; a deal approved later reaches that line only after an unbuild and a new build. |
Each policy also has a Base price source: Payload, else native price or Native price only. The setting has no effect today: under either choice the build uses the line's own (native) price as the base price.
The order is never refused. If an automatic build is refused or fails, the order still stands and the line keeps its native price. Most of these leave no trace: a refusal (for example the line is past its edit window, or the module is off) and most build errors (for example a line with no inventory transaction origin, or a price that would compose below zero) are dropped without a message or a workbench row, so look for unpriced lines and build them by hand. Only an unexpected failure appears on the execution exceptions workbench as an Inbound price build row that can be retried. If Earmark's background work stops before it reaches every line of an import, each line it missed gets its own Inbound price build row, and every one can be retried. Retry in the company the row names (Retry works in the company you are in, and from another company it finds no line and closes the row as Resolved). A retry needs Inbound auto-pricing on: while it is off, Retry selected prices nothing, warns "Inbound auto-pricing is off in company <company>, so the inbound price build of sales order <order> line <line> was not retried and the row stays open…", and the row stays Open. On the policies page, select Test inbound pricing resolution to see which policy would apply. It writes nothing. Setting up the policies is described in Getting started and setting up Earmark.
Build a price from another system (the buildPrice service)
An integration that should price a specific line itself, rather than leave it to an inbound pricing policy, can call Earmark's buildPrice service. It is the same act as Build price: it runs the same rules (module switches, the edit window, deal availability) and needs the same security, the Build line prices privilege, which comes with the Build line prices and Build Earmark purchase prices duties. Give the integration's user one of those duties through a role, like any order taker.
What it does, in user terms:
- It prices one sales or purchase order line, named by its legal entity and lot ID.
- It either includes every eligible deal that already targets the line, or none. It cannot decline deals one by one, and it cannot attach a deal that does not target the line. A call that includes no deals still builds the line, at base price plus over-basis only, and the line is then price-locked like any built line.
- The base price is the line's own price unless the caller supplies one. The over-basis is zero unless the caller supplies one.
- Every call carries a key. Repeating a call with the same key returns the existing build instead of building again.
- A refusal comes back as a verdict, not as an error. Problems with the call itself (unknown legal entity or line, a missing key, no permission) each have their own verdict, and so does every refusal from the build itself (a line already built or past its edit window, a deal no longer available, a module switched off): each arrives under its own verdict ID with the same message a person would see in Build a deal price onto a sales order line. A malfunction (for example a line with no inventory transaction origin, a key already used by another build, or a price that composes below zero) comes back as an error and builds nothing; repeating the call is safe once the cause is fixed.
- The deal money it reports is the grossed-up part only; off-invoice money is reported separately as the allowance.
A price built this way shows Conduit service as its build source in the Price build-up inquiry. The request and response formats, verdict IDs and error handling are in the API reference, which also covers approving claims from another system.
Build a price on a purchase order line
Who: Purchasing agent, Purchasing manager · Where: Purchase order line toolbar, Price build-up group, Build price / View price build-up
This works the same way as the sales side, using the same Build price dialog. The buttons appear only when the Vendor module and the Purchase price build-up shape are switched on in Earmark parameters. The eligibility date of a purchase line is its delivery date (or the day the order was created, if the Eligibility date basis is Order date). Price modes follow the purchase rules in Understand price modes.
Three things differ from a sales line. A built purchase line is not price-locked: its unit price can still be typed over. Deleting a built purchase line does not end its accrual instances. And a purchase line's build is never flagged stale. The edit window closes when the line is registered, arrived, received or invoiced.
Headless auto-attach on purchase lines (Earmark parameters, off at install) builds the price of purchase lines with every eligible vendor deal without anyone opening the dialog. It builds the lines a buyer types too, not only lines from an integration, and it builds a line no eligible deal reaches at its base price only (a deal approved later then reaches that line only after an unbuild and a new build). See Inbound auto-pricing and headless auto-attach on purchase lines and I want to know why a purchase line was built without me. Vendor deals are covered in Vendor deals, supplier funding and mirrors.
Understand what happens when a packing slip or invoice posts
Who: Nobody does anything here. It happens on its own. · Where: Packing slip and invoice posting on sales orders, purchase orders and return orders
- You post the packing slip, product receipt or invoice as normal.
- As part of that posting, Earmark adds one row to the accrual event queue for each accrual instance whose accrual point has been reached. The accrual point is set per deal: Ship accrues at the packing slip (sales) or product receipt (purchase). Invoice accrues at the invoice. Manual accrues only when someone posts a manual accrual (see Post a manual accrual). The queue row is written in the same transaction as the document, so a posting that fails or is only simulated queues nothing. Each document line is judged by its own quantity: a negative line is a return, whatever the document total says. Pro forma documents queue nothing.
- The Accrual event processor later takes the queued rows, in the order they were queued, and works them. For each one it applies the deal's controls (cap, quantity thresholds, per-transaction minimum and maximum), resolves accounts and dimensions, writes the accrual transaction, updates the deal balance, and creates the accrual journal, all in one step.
- The journal is a separate Earmark general journal. It is never part of the sales or purchase document's own voucher. Whether it posts on its own is set per movement type (see Post or correct an accrual journal).
What happens: Missing or wrong Earmark setup never stops the native document. Earmark's only step inside the posting is to add one row to the accrual event queue; rules, accounts and journals are all worked out later, by the processor. If the queue row is lost, the document still posts, with no message and no workbench row. The Unaccrued transaction sweep is the only repair: it finds the missed accrual later, but only for a commitment that has accrued nothing at all (see Run or schedule the accrual batch jobs). A re-posted document cannot queue the same work twice. A free-text invoice or a project invoice has no item line, so Earmark does not accrue anything for it, and a change of inventory status is never a trigger.
A shipment or receipt dated in a closed period accrues on the processing date. When the processor reaches a document whose period is closed or on hold, it posts the accrual on the day it runs instead, and Last message says so ("Document <document> is dated <date>, which falls in a closed or on-hold ledger period, so its accrual for accrual commitment <instance> was posted on the processing date <date> instead."). A return in the same case is posted on the processing date too. If your close procedure needs the accrual in the original period, reopen the period, reverse the movement and post a manual accrual dated in it (see Post a manual accrual). An event an earlier run refused for a closed period is put back on the queue by the next unaccrued transaction sweep. A row processed while the deal's module was switched off still ends Superseded, and switching the module back on does not bring it back, whatever the message says about the sweep.
Accruals are not instant. A shipment's accrual appears once the accrual event processor has run. How often that happens depends on how the processor is scheduled (see the next sections). If you are waiting for one, open Earmark > Inquiries and reports > Accrual event queue (also under Related links > Inquiries on the Deal control workspace). If the row is still Queued, it has not been processed yet.
Accrual event queue statuses:
| Status | Meaning |
|---|---|
| Queued | Waiting for the processor. |
| Processing | Claimed by a run. A run claims every queued row at once, so a row stays here while the run works through the others, and also when the run reached its Events to process per run limit before this row or stopped. If Flagged for reclaim is selected, the row is older than the staleness window, and the next run puts it back in the queue and takes it. A row whose processing failed also stays here: Last message shows the error, the failure is also on the execution exceptions workbench, and the row returns to the queue once its staleness window passes. Each time a reclaimed row fails again, a new Accrual movement row is added to the workbench. |
| Posted | A movement was posted. Resulting movement names the accrual transaction. Last message reads "Movement posted.", followed on a return by any note about it. |
| Superseded | Answered without posting anything new. Last message says why: "Superseded: the movement for this event had already been posted under an earlier claim.", or "No movement posted." followed by the verdict (for example the cap was reached, or the quantity was below the qualifying minimum), or a note that the document had been canceled first. |
There is no Failed status. A failed row stays Processing with the error in Last message ("The accrual movement for event <event> could not be posted." followed by the reason), and the failure is an execution exception on the workbench. A return whose shipment's accrual is still waiting in the queue is held in Processing with the message "Waiting: return document <doc> found nothing accrued…" and is taken again after that accrual. Nothing needs to be done.
Understand how an accrual amount is worked out
Earmark calculates every accrual from the terms the accrual instance froze when the price was built, never from the deal as it is today:
| Rate basis | Amount accrued for a movement |
|---|---|
| Amount per unit | Accrual amount ÷ Per quantity, times the quantity that moved, counted in the deal unit (converted from the item's unit with the conversion frozen on the instance) |
| Percent of base | Accrual percentage of the line's built price (base price plus over-basis), times the quantity that moved, counted in the order line's own unit. So it is exactly that percentage of the part of the line's net amount (before tax) that moved, whatever unit the deal is in. Where a line has no Earmark build, the line's own net amount is used. |
| Fixed per transaction | Fixed amount once per movement. A movement that moved no quantity accrues nothing, and a return takes the amount back. |
The controls then apply, in the deal's currency: a per-transaction minimum or maximum is compared on the size of the amount and keeps its sign, and the lifetime cap clips only a movement that adds to what the deal owes. A movement that reduces it (a return, a reversal) is never clipped. The amount is rounded once, on the journal line, to the currency's precision. Reversals and returns take their amounts from the movement they undo, so a chain always nets to exactly zero.
Run or schedule the accrual batch jobs
Who: Accounting manager, Accountant (the Run Earmark accrual processing duty) · Where: Earmark > Periodic tasks > Accrual event processor and Earmark > Periodic tasks > Unaccrued transaction sweep. Both are also under Periodic tasks in the related links of the Deal control workspace.
Accrual event processor posts the queued accrual events. It must be scheduled as a recurring batch job, or nothing accrues on its own. Posting a document only queues its accrual, and nothing schedules this job for you. Until a recurring job runs at least as often as Event sweep cadence (Earmark parameters, 15 minutes as shipped) in this company, the Accrual event processor not scheduled setup-gap tile is lit on the Earmark configuration workspace and the setup checklist.
- Open Accrual event processor (or select the Accrual event processor not scheduled tile). The Process Earmark accrual events dialog opens.
- Set Events to process per run (must be greater than zero), Reclaim abandoned events first (leave it on for a scheduled run), and Staleness window (minutes) (must be greater than zero while reclaim is on).
- To run it on a schedule, use the standard Run in the background settings: switch Batch processing on and give it a Recurrence of at least every N minutes, where N is Event sweep cadence. Otherwise select OK to run it now. Run it in each company where an Earmark module is on; the queue is per company.
The infolog reports "<n> accrual events processed.", "<n> Earmark journals were sent for automatic posting." when some journals were set to post automatically, and, if any were reclaimed, "<n> abandoned accrual events returned to the queue." Nothing is lost when a run reaches its Events to process per run limit, but the rest do not wait as Queued: a run claims every queued row, and the rows it did not reach stay Processing until the staleness window passes (60 minutes as shipped). Only then does a later run reclaim and process them, so a large backlog drains at about one limit's worth of rows per staleness window. Set the limit high enough for your volume. After you schedule the job, select Re-evaluate on the setup checklist so its row reads the new schedule. More detail: Accrual event processing.
To process queued rows straight away, for example when someone is waiting to see the accrual behind a shipment, run Accrual event processor now (with Batch processing off). Process now on Earmark > Inquiries and reports > Accrual event queue does something narrower: it processes only the selected rows that are already Processing, such as a row a run claimed but did not reach, or one that failed and has been fixed. A selected Queued row is left alone with the message "Event <event> was not processed: it is Queued, and only an event that has been claimed for processing can be run. Wait for the sweep, or run the event processor.", and the infolog sums up "<n> event(s) processed, <n> left untouched." You can safely select it at any time, including while the batch job is running.
Unaccrued transaction sweep is the safety net. It finds active commitments whose goods have passed their accrual point with nothing accrued at all, and puts them back on the queue. It looks only at commitments with no accrual transaction yet, so it does not repair a second lost delivery on a line that has already accrued once. It also cannot queue again an event the queue already holds, for example one that ended Superseded because the cap was reached. The one exception is an event refused because its date was in a closed period: the sweep puts it back, and the processor posts it on the processing date.
- Open Unaccrued transaction sweep, then run it now or set it as a recurring batch job in the same way.
- Read the result: "Unaccrued transaction sweep finished: <n> commitment(s) found whose goods have moved with nothing accrued, of which <n> were put back on the accrual event queue." The first number also counts commitments that were already answered without posting (a cap reached, a quantity below the minimum), so it does not have to be zero. Look at the second number, and at commitments that stay in the first count run after run. More detail: Unaccrued transaction sweep.
Note: Earmark parameters contain Event sweep cadence (shipped as 15 minutes), Unaccrued transaction sweep cadence (shipped as 1,440 minutes, one day) and Event processing mode. Neither cadence schedules anything: the jobs run only as often as the batch recurrence you set on them. Event sweep cadence is the target the setup checklist checks the Accrual event processor's recurrence against; Unaccrued transaction sweep cadence is a target for you to schedule the sweep at, and nothing checks it. Event processing mode (Immediate and sweep, the default, or Sweep only) has no effect today: no step Earmark runs is affected by it, and both choices behave the same. Accruals are always posted by the Accrual event processor, so the job must be scheduled whichever you choose.
Post or correct an accrual journal
Every Earmark movement that posts money creates its own small general journal, on the journal name set for its movement type in Earmark parameters. The journal names are copied onto each commitment (accrual instance) when it is created, so a commitment keeps using the names that were set then: changing or filling in a journal name in Earmark parameters affects only commitments created afterwards. (A vendor claim's approval proposal is the exception: it always uses the current vendor proposal journal name.) Earmark creates the journal line already approved, as the journal page would, so the customer or vendor postings it makes can be settled. (A vendor claim's approval is the exception: it is a proposal that accounts payable reviews; see Vendor deals, supplier funding and mirrors.)
Posted automatically, or held for review. Each movement type has a Post automatically setting in Earmark parameters (off as shipped):
- Off: the journal is created and left unposted. The movement reads Journal pending, the deal balance shows the amount under Accrued, journal pending, and the Accruals pending posting and Journals pending review tiles count it. Someone posts the journal in General ledger. Earmark brings the movement to Posted when the journal posts.
- On: Earmark posts the journal after the movement has been saved, straight away when nothing else is still in progress, otherwise in the next run of the accrual event processor. If that post is refused (a closed period, an approval requirement, a blocked account), the movement is kept and stays Journal pending, and a Journal post row on the execution exceptions workbench names the reason. Fix the cause and Retry selected.
A claim approval's journal also posts automatically when Auto-post claim approval journal (Earmark parameters, Claims tab) is on, even if Post automatically is off for Claim approval. Either switch is enough. A vendor claim's approval proposal is never posted automatically. More detail: Journal auto-post.
However the journal posts, the accrual transaction's timeline records an Accrual journal posted row ("Journal <journal> posted, voucher <voucher>"); find it in the Earmark timeline inquiry (Earmark > Inquiries and reports > Earmark timeline) under the document type Accrual transaction.
The setting is recorded on each journal when it is created, so switching it on later does not post journals that were created to be reviewed. Retry on a Journal post row never posts a journal that was held for review: "…it was not created for automatic posting - it is being held for a person to review and post. Retry does not post it…" Post that journal by hand.
An unposted Earmark journal is frozen. Its line cannot be deleted, no line can be added, and anything that changes what posts (amount, currency, exchange rate, date, accounts, dimensions) cannot be edited; the description and other fields can. The journal itself cannot be deleted while its movement waits for it. Earmark's records already hold what the journal will post, and a different figure would leave the ledger and the deal balance disagreeing.
If a held journal can no longer post because its period has closed or a dimension value on it was suspended, correct it with Correct held journal:
Who: Accountant, Accounting manager · Where: Earmark > Inquiries and reports > Accrual transactions, Movement group, Correct held journal (the list also opens from Related links > Inquiries on the Deal control workspace, the Journals pending review tile, or the Transactions or Accrual transactions button on the deal or the order)
- Select the accrual transaction whose journal is waiting, then select Correct held journal.
- Under Correction, set Post on to a date in an open period, and/or correct the dimension values of a ledger Account or Offset account. Leave a field as it is to keep it. The main account, amount, currency and exchange rate cannot change.
- Select Correct. The journal line and the accrual transaction are changed together, and you see "Journal <journal> and accrual transaction <id> were corrected and now post on <date>…" The correction is not written to the Earmark timeline, so keep your own note of why you made it.
- Post the journal, or select Retry on its Journal post exception.
If it is refused: "<date> is not in an open period…" · "The <side> is a <type> account. Only the dimension values of a ledger account can be corrected here…" (a customer or vendor account never changes) · "The <side> must keep main account <account>…" (a suspended main account must be reactivated in the ledger) · "Journal <journal> is in an approval workflow… Recall it from the workflow, correct it, and submit it again." · "Journal <journal> is locked by the system…" or "…is in use by <user>…": try again later. The accounts of an adjustment, a return reversal or a claim approval reversal come from the movement it was made from, and the accounts of a movement another movement was already made from are handed down to it, so for those only the date can be corrected. Reversing the accrual does not release a held journal.
Read the accruals on an order
Who: anyone with accrual inquiry access (see the table at the top of this chapter) · Where: On a sales order: Sell tab, Accruals group (header), or the line toolbar Accruals group (line). On a purchase order: Purchase tab, or the line toolbar. On a return order: Return order tab. Each place has Accrual instances and Accrual transactions. The Earmark accruals FactBox appears beside the lines on all three.
- Look at the Earmark accruals FactBox first. It shows Accrual instances (how many deals are committed on the document), Accrued to date (net, in accounting currency), Open movements, Claimed movements, Reversed movements, Last movement and Journal pending. A blank Last movement on an order that has not shipped is normal.
- Select the FactBox's more link, or Accrual transactions, to see the movements.
- Select Accrual instances to see the commitments.
What happens: Each button opens its list filtered to the document you are standing on: the header buttons show the whole order's accruals, the line buttons only that line's. The filter is the same one the FactBox uses and is shown, locked, in the filter pane; the view buttons on the list (Active, All statuses, Accumulated and so on) work within it. To see every order's rows, open Earmark > Inquiries and reports > Accrual transactions (or Accrual instances) instead.
Read accrual instances (commitments)
Who: as above · Where: Earmark > Inquiries and reports > Accrual instances; the Deal control workspace, Related links > Inquiries > Accrual instances; the Instances button on a deal or the Accrual instances button on an order; the Unaccrued transactions tile
An accrual instance is one deal applied to one order line, with the deal's terms frozen at the moment the price was built. It keeps accruing on those terms even if the deal is later amended, closed or aborted. The page opens on the Active view. Select All statuses to include retired ones. Open an instance to see its details. An instance is normally created by a price build (or, for an inventory provision deal, when its sales line is created). The page also has Post manual accrual (see Post a manual accrual) and Create accrual instance.
Create accrual instance (Accountant) creates a commitment by hand for an approved deal on one sales or purchase order line the deal applies to, for a line no price build reached. It is refused while Allow manual accrual instances is off in Earmark parameters, which is how it ships ("Creating an accrual instance by hand is switched off. ..."). Enter the deal, the Order line lot ID, a reason code (required) and a note, then select Create. The instance is created as a price build would create it, with the deal's terms, accounts and unit conversion frozen on it, but the line's price is not changed, so it is recorded as off-invoice. It is refused if the deal is not approved, does not apply to the line by its targeting, already has a commitment on the line, or is a Purchase price build-up deal, and if a sales-triggered deal is given a purchase line or the reverse.
| Status | Meaning |
|---|---|
| Active | Live. It accrues when its goods move. |
| Withdrawn | Retired before any money moved, for example by Unbuild price. It never accrues again. |
| Voided | Retired after money moved, by a vendor-side correction. It never accrues again. |
Instances are never deleted.
Read accrual transactions (movements)
Who: as above · Where: Earmark > Inquiries and reports > Accrual transactions; the Deal control workspace, Related links > Inquiries > Accrual transactions; the Transactions button on a deal or the Accrual transactions button on an order; the FactBox more link; several Deal control tiles
Every accrual is a chain of movements that are never edited or deleted. A correction is always a new movement that points to its parent. The page opens on Actionable only. The Deal column shows the deal each movement belongs to; it is for reading only, and you cannot filter or sort the list on it. To see one deal's movements, open the list from the deal (Transactions) or from Open transactions on the Deal control workspace's Deal balances list. Use the Views and Worklists buttons to switch:
- Views: Accumulated, Reversed, Claimed, Claim reversed, Claim approved, Adjusted-split, Returned
- Worklists: Actionable only (the default; hides finished rows), Credits without quantity - review, Claimable
Movement type says what a row is:
| Movement type | What it is |
|---|---|
| Accrual | Deal money earned when goods moved, or posted manually. Always the start of a chain. |
| Accrual reversal | A reversal of an accrual, with a reason code. |
| Adjustment | One part of a split (see Adjust an accrual). |
| Return reversal | The accrual taken back because the goods were returned. |
| Claim / Claim approval / Claim reversal / Claim approval reversal | Movements made by the claims process. See Claims, statements and settlement. |
State says where a row stands:
| State | Meaning | Can it still move? |
|---|---|---|
| Accumulated | Accrued and not yet acted on. The only state that can be reversed or adjusted. | Yes |
| Claimed | Taken up by a claim. To undo it, reverse the claim. | Yes, through the claim |
| Claim approved | The claim was approved (or settled by reference). | Yes, through claim reversal |
| Reversed | Reversed. A reversed row never comes back. | No (end) |
| Claim reversed | The claim was reversed. The money comes back as a new Accumulated row. | No (end) |
| Adjusted or split | Split into two new Accumulated children. | No (end) |
| Returned | Taken back by a return of the goods. | No (end) |
Posting status is Posted or Journal pending. Journal pending is not an error. It means the movement's journal has not posted yet: either the movement type is set to hold journals for review, or an automatic post was refused. The money is already counted against the deal. Select Open journal to go to it, and see Post or correct an accrual journal.
Origin is Document (from a packing slip, receipt or invoice), Catch-up (posted when a counterparty crossed a qualifying quantity) or Migrated (an opening position from cut-over).
Other buttons: Open chain shows the whole chain the row belongs to. Open claim opens the claim that took it up. Retry opens the execution exceptions workbench filtered to this movement. Generate claims and Settle by reference belong to the claims and vendor chapters.
Post a manual accrual
Who: Accountant · Where: Post manual accrual on Accrual instances (the selected commitment), on Accrual transactions, Movement group (the selected movement's commitment), or on the Deal balances list of the Deal control workspace (the selected deal)
A manual accrual is for money no document triggered: a correction agreed with the customer, an opening position, a shipment posted before Earmark was switched on, or a deal whose Accrual point is Manual. It is always posted against a commitment (an accrual instance). If the order line has none for the deal, create one first with Create accrual instance (see Read accrual instances).
- Select the commitment, a movement of it, or the deal, and select Post manual accrual.
- Under Commitment, check the Currency, Deal unit, Inventory unit and Conversion factor frozen on it. Opened from a deal, choose the commitment first: only the deal's active commitments are offered, so choose the order line the money belongs to.
- Under Accrual, enter the Quantity in the deal unit, a Posting date (today by default), a Reason code (required) and an optional Reason note.
- Select Post accrual.
What happens: You never type the amount. Earmark calculates it from the commitment's frozen rate and the quantity, exactly as an automatic accrual would for the same movement, and posts it through the same controls, accounts and journal. You see "Manual accrual <movement> posted against commitment <instance>." and the list you started from is refreshed.
If it is refused:
- "A reason code is required to post a manual accrual…" or "No manual accrual was posted for commitment <instance> because no quantity was given…"
- "No manual accrual was posted because commitment <instance> is <status> rather than Active…" A withdrawn or voided commitment takes no more money. A commitment on a closed or aborted deal stays Active and can still be accrued.
- "No manual accrual was posted for commitment <instance> because the Earmark module or deal shape that owns it is switched off in Earmark parameters…"
Adjust an accrual
Who: Accounts receivable clerk, Accounts payable manager · Where: Accrual transactions, Claims group, Adjust accrual · Before you start: Select exactly one movement in state Accumulated.
- Select the movement and select Adjust accrual.
- Enter either an Adjusted quantity or an Adjusted amount. Earmark works out the other from the movement's own ratio.
- Enter the Posting date, a Reason code and an optional Reason note.
- Check Both resulting accruals (the adjusted part and the remainder). Select Recompute if the movement may have changed while the dialog was open.
- Select Adjust.
What happens: Three movements are written together. The original is negated and ends in state Adjusted or split, and two new Accumulated children are created whose amounts add up exactly to the original. The reason is carried onto all three.
If it is refused: the dialog stays open and tells you why.
- "…the split you entered is not smaller than the movement itself…" A split must leave a remainder. To remove the whole amount, reverse the movement instead.
- "…the split you entered comes to zero…" Enter a non-zero quantity or amount.
- "…is in state <state> rather than Accumulated…" If the money has been claimed, reverse the claim first. That puts the money back as a new Accumulated movement, which you can then split.
- "An accrual adjustment splits exactly one movement, and <n> were selected…" Select one row.
Reverse accruals (one or many)
Who: Accountant · Where: Accrual transactions, Movement group, Reverse (one or more selected rows); or Reverse accruals on the Deal balances list of the Deal control workspace, for everything still reversible on the selected deal
- Select the movements to reverse and select Reverse. The page opens on Actionable only, which also lists Claimed and Claim approved rows; select the Accumulated view to see only the rows Reverse accepts. Or select a deal on Deal balances and select Reverse accruals. The Reverse accruals dialog opens. From a deal, it lists every Accumulated movement of the deal.
- Check the Journal line preview: for each movement, the Account, Offset account, Financial dimensions, Amount, Currency, Accounting amount, Exchange rate and Rate date the reversal will post, worked out by the same code that will post it, and a Will not post note on any row that would be refused. Select Recompute preview if something may have changed while the dialog was open.
- Under Reversal, enter the Posting date (today by default), a Reason code (required) and an optional Reason note. Then select Reverse.
What happens: Each row is reversed in its own transaction. One failure does not stop the others. Each reversal takes its amount from the original movement at the original rate, never a recalculation, so the pair nets to exactly zero. The original ends in state Reversed and stays on file. The infolog lists each row and ends "Reverse accruals finished: <n> of <n> selected movements reversed." Each reversal makes its own journal, which posts or is held according to the Accrual reversal movement type's Post automatically setting.
Reversing an accrual whose own journal is still waiting to post does not remove that journal; post it (or correct it) as well.
If a row is refused:
- "Movement <id> was skipped because it is in state <state> and only an Accumulated movement can be reversed…" A claimed movement is undone by reversing the claim, not here.
- "A reason code is required to reverse accruals…" Enter one.
- "Accrual movement <id> could not be reversed and has been skipped…" Nothing posted for that row. Fix the cause in the message and reverse it again.
- "No reversal presentation has been chosen, so a <movement> movement on commitment <instance> cannot be posted…" Reversal presentation ships as Not defined, and until it is set to Flip debit and credit or Flip account and offset on the Accrual posting tab of Earmark > Setup > Earmark parameters, no reversal of any kind posts: not an accrual reversal, a return reversal, a claim reversal or a claim approval reversal. A return reversal the processor meets meanwhile fails (its queue row stays Processing and an Accrual movement row is raised on the execution exceptions workbench); retry it once the setting is chosen. See Accrual posting tab.
- "Nothing was done for movement <id> because the Earmark module or deal shape that owns its accrual is switched off…" This is not an error. The movement becomes live again when the module is switched back on.
Understand what happens when goods are returned
Who: Nobody does anything extra. Post the return order's packing slip or credit note as normal. · Where: the original sales order line: Accrual transactions in its Accruals group, then Open chain on a movement. A return's movements belong to the original line's commitment, so the return order's own Accruals group and Earmark accruals FactBox show nothing for a linked return line (from reading the code; not run).
How Earmark finds the original accrual. A sales return reaches the original shipment's accrual through the return line's Return lot ID, which a return order or Create credit note fills in. A return line entered without it is not linked to the shipment, so Earmark reverses nothing for it; correct the accrual by hand (see Reverse accruals).
The return goes through the same queue and processor as a shipment. What it does depends on the original accrual:
| Situation | What Earmark does |
|---|---|
| Full return, accrual still Accumulated | A Return reversal takes the accrual back. The original ends Returned. |
| Partial return | The accrual is split by quantity, and the returned part is reversed. The remainder stays claimable. A return is spread across every accrued movement of the commitment automatically. |
| The accrual was already claimed or the claim approved | Earmark posts a new negative accrual instead of rewriting the claim, and flags the claim line Returned after claim for the claims team. The claim is not unwound. See Claims, statements and settlement. |
| A return that carries an amount but no quantity | Nothing is posted. A Credit without quantity - review verdict is raised (see below). |
| The return is dated in a closed or on-hold period | The reversal posts on the processing date instead, and the queue row's message says so. |
If the original shipment never accrued anything (no deal matched, or it was below the qualifying quantity), the return has nothing to take back, and the message says so. This is normal. If more comes back than was accrued, the rest is reported as left over with nothing to take back. A free-text credit note has no item line, so Earmark does not see it at all; if it should reduce an accrual, reverse or adjust the accrual by hand.
Canceled packing slips and product receipts. Canceling a packing slip or product receipt is handled like a return of that one document: Earmark takes back only what that document accrued, never accruals made for other shipments on the same line. If the document was canceled before its accrual was processed, nothing is accrued for it and nothing needs to be done ("Document <doc> had been canceled by the time its accrual event… was processed… Nothing needs to be done."). As in standard Dynamics 365, a packing slip cannot be canceled after a later negative packing slip has taken its goods back.
For a worked example of a return, a canceled packing slip and a disputed claim from start to finish, see the story Returns, a canceled shipment and a disputed claim.
Resolve a credit-without-quantity review
Who: Accountant · Where: Deal control workspace, Breaches list, Resolve. The Accrual transactions list's Credits without quantity - review worklist shows the same movements but has no Resolve button.
This is the only verdict in Earmark that needs someone to act on it.
- Find the credit note in the Breaches list (verdict type Credit without quantity - review).
- Decide whether an accrual should be taken back. If so, post a reversal or an adjustment against the right movement (see above).
- Select Resolve. In Resolve credit review, write a Resolution note saying what you checked and decided (it is required), then select Resolve.
What happens: The verdict is marked resolved with your name, the time and your note. Other verdict types cannot be resolved. They are information only.
Tell a verdict from a failure
| Verdict | Failure | |
|---|---|---|
| What it is | A policy outcome. The deal's rules decided something. | A malfunction. Something that should have worked did not. |
| Examples | Cap reached, Below qualifying quantity, Maximum quantity reached, Minimum applied, Maximum applied, Headroom warning, Accrued outside window, Unit not convertible | Account could not be resolved, missing posting profile row, journal post refused, a timeline write failed |
| Where you see it | The infolog, the Breaches list on the Deal control workspace, the related tiles, and the event queue's last message | The Earmark execution exceptions workbench and the Execution exceptions / Accrual execution exceptions tiles; for an accrual, also the queue row's last message (the row stays Processing) |
| What you do | Read it. If the outcome is wrong, change the deal (for example, amend the cap). | Fix the cause, then Retry selected. |
| Does the native document fail? | Never | Never |
Some verdicts you will see, as written:
- Cap reached: "Deal <deal> has reached its lifetime cap of <amount>. It had accrued <amount> before this movement, so of the <amount> computed only <amount> could be accrued. Reaching the cap does not block or fail the document that triggered it…" To let the deal accrue further, raise the cap through the amendment workflow.
- Below qualifying quantity: "Nothing was accrued on deal <deal> for <counterparty> because the counterparty has moved <qty> against the deal and the deal does not start accruing until <qty>…" The money is not lost. When the customer crosses the threshold, every skipped shipment is queued for a catch-up accrual automatically. Catch-ups post on the date they are processed.
- Maximum quantity reached: "Nothing was accrued on deal <deal> for <counterparty> because the counterparty has already moved <qty> against the deal and the deal stops accruing above <qty>…"
- Minimum applied / Maximum applied: "Accrual instance <instance> computed <amount>, which is below the deal's minimum of <amount> per transaction, so <amount> was accrued instead…" (and the same for the maximum). The limit is applied to the size of the amount and the sign is kept.
- Unit not convertible: "There is no conversion between the inventory unit <unit> and the deal unit <unit>, so no accrual instance can be created for line <line>…" Set up the unit conversion for the item. Earmark will not guess a factor.
- Accrued outside window: the movement still accrued, because the goods moved and the money is owed. It is recorded for review.
Quantity thresholds are counted per customer (or vendor), not across the whole deal.
Work the execution exceptions workbench
Who: Accounts receivable manager, Accounts payable manager, Accounting manager (to retry and dismiss). Every other role with the Inquire into Earmark duty can view it (see the table at the top of this chapter). · Where: Earmark > Inquiries and reports > Earmark execution exceptions; the Execution exceptions tile on the Earmark workspace (it counts the rows of every company in every status, closed ones included, so it does not fall to zero when everything is fixed); the Accrual execution exceptions tile on the Deal control workspace (open and retrying accrual rows only); Retry on Accrual transactions
Every row is a failure in a step that ran after the document or act behind it had been saved (a posted packing slip, a saved order line, an approved claim). That document or act itself was never affected. Each row shows the Exception status, Exception ID, Company, Source area, Operation (for example Accrual movement, Journal post, Inbound price build, Event publish, Mirror vendor-side movement), the source document, the Message, Retries and Last attempt. More detail on each operation and what its retry does: Background steps and retry.
| Status | Meaning |
|---|---|
| Open | Waiting for someone to fix and retry it. |
| Retrying | A retry is running now. |
| Resolved | The retry handler reported success. Final. (See the cautions below: a few retries report success without repairing anything.) |
| Dismissed | Closed without a fix, with a reason. Final. |
To retry:
- Switch to the company shown in the row's Company column. Retry selected runs in the company you are in, not the row's company.
- Read the Message and fix the cause. Usually this means completing the posting profile, a journal name or a dimension rule, or, for a Journal post row, the reason the ledger refused the journal.
- Select the rows and select Retry selected.
- The infolog reports "Retried <n> of <n> selected execution exceptions. <n> could not be completed and remain open." A successful row becomes Resolved. A failed row returns to Open, and the infolog gives the new reason. The row's Message keeps the text of the original failure (a retry never changes it); Retries and Last attempt show that it was tried again.
Retrying is safe to repeat and cannot post anything twice. Some retries need care:
- An Accrual movement row whose queue row has meanwhile been returned to the queue (it reads Queued) is not retried: it stays Open with "Accrual event <event>, named by exception <id>, has been returned to the queue by the staleness reclaim and is waiting to be processed again…" The message suggests Process now, but Process now does not run a Queued row. Run Accrual event processor (or wait for its next scheduled run), then retry the row: it finds the event finished and becomes Resolved.
- A Journal post row for a journal that was held for review is not posted by a retry; post that journal by hand.
- An Inbound price build row is not retried while Inbound auto-pricing is off: it stays Open with a warning saying so. Retried from a company other than the row's, an Inbound price build or Headless purchase attach row finds no order line and is marked Resolved with nothing built.
- An Event publish row is re-sent only when it recorded a deal event. Dismiss a failed claim, line price, mirror or vendor event row with a reason instead of retrying it. While the business event switch for that kind of event is off, a retry marks the row Resolved and sends nothing.
- A Mirror vendor-side movement retry pairs the customer commitment's newest movement, which may not be the one that failed, so the row can close without the vendor side being repaired. The next accrual the processor posts on that commitment pairs whatever is still unpaired.
Rows are not kept forever: Resolved and Dismissed rows are deleted by the retention cleanup once they are older than Execution exception retention (days) in Earmark parameters (90 as shipped; zero turns that purge off). See Earmark retention cleanup.
If a held Earmark journal can no longer post (closed period, suspended dimension value), do not try to edit or delete it: use Correct held journal, described in Post or correct an accrual journal, then retry.
To dismiss (close a row nobody is going to fix):
- Select the rows and select Dismiss.
- In Dismiss execution exceptions, choose a Reason code, then select OK. The lookup lists only the reasons that have Applicable to Earmark selected on Financial reasons. The prompt asks for the reason code only, and the one reason applies to every selected row.
Dismissing fixes nothing. It records why no retry will be attempted. Resolved and dismissed rows are never reopened. If the same failure happens again, a new row is raised.
If it is refused: "Execution exception <id> cannot be retried because it is <status>…" Only Open and Retrying rows can be retried. "Execution exception <id> is already being retried by another session…" Wait, or retry later. "A reason code flagged for Earmark is required to dismiss an execution exception…" Choose a flagged reason.
Fix a setup gap that stopped an accrual posting
If configuration is missing when a movement tries to post, Earmark posts nothing. It does not post to a suspense account, and it raises no error on the sales or purchase document. Instead you get these signals:
-
An Accrual movement execution exception explaining the cause (the queue row's Last message carries the same reason). For a deal that uses the company posting profile: "The <movement> movement on accrual instance <instance> could not be posted because an account could not be resolved: <reason>… Fill in the missing posting profile row and retry from the execution-exceptions workbench." For a deal with its own posting rows: "Accrual instance <instance> has no posting profile row for the <movement> movement, so nothing could be posted… Complete the deal's posting profile and retry this movement from the execution-exceptions workbench."
-
Sometimes, a setup-gap tile on the Deal control workspace saying which setup is missing. Only four of these tiles can light:
- Posting profile incomplete lights only when a whole posting type (Accrual, Accrual offset, Claim or Claim offset) has no row at all. A gap for one item group, customer group or deal leaves it dark, so a failed accrual often has no tile; go by the execution exception.
- Dimension rules missing for movement type.
- Journal names not set (also on the Earmark configuration workspace).
- Headroom alert % not set. This one never stops a posting.
The Locked-rate mode with revaluing accrual accounts and Revaluation policy with non-revaluing accrual accounts tiles never light: nothing checks those two today. Each tile that lights opens the setup page that fixes it (the posting profile, the dimension rules, or Earmark parameters).
A missing journal name cannot be fixed this way for an existing commitment. Journal names are copied onto each commitment when it is created, so the failure says "No journal name is set for a <movement> movement on commitment <instance>… A name that was blank at creation stays blank for the life of the commitment…" Set the name in Earmark parameters for new commitments, and follow the message for the existing one. A deleted or renamed journal name is fixed by re-creating it with its original identifier.
Who: Accounting manager (setup), then Accounts receivable manager, Accounts payable manager or Accounting manager (retry)
- Complete the setup the execution exception names (or open the tile, if one is lit, and complete the setup it points to). The setup itself is described in Getting started and setting up Earmark.
- Open the execution exceptions workbench and select Retry selected on the affected rows, in the company each row names.
For a month end where this happens, see the story Closing a month when trade accruals went wrong.
Reconcile accruals against the general ledger
Who: Run: every role with Inquire into Earmark accruals (Sales clerk, Purchasing agent, Purchasing manager, Inventory accountant, Accountant, Accounting manager, Accounting supervisor, the accounts receivable and accounts payable roles, Earmark deal approver, Earmark claims approver, Earmark auditor). Save: Accounting manager (the Rebuild Earmark balances and record reconciliations duty). · Where: Earmark > Inquiries and reports > Accrual reconciliation, then Run reconciliation; or Reconcile on the Deal control workspace
- Select Run reconciliation. Enter Period from and Period to (both required). You can narrow the run to a Deal, Counterparty account or Main account. Blank means all. Main account narrows only the general ledger side; the accrual sub-ledger side is not narrowed by it.
- Read the result: "Period <from> to <to>. General ledger <amount>, accrual sub-ledger <amount>." followed by "Explained by pending journals <amount>, unaccrued transactions <amount>, open exceptions <amount>, proposals outstanding <amount>." Only pending journals carries an amount today: unaccrued transactions, open exceptions and proposals outstanding always read 0. Instead, the run warns with the number of unaccrued commitments (counted across the whole company, whatever period or deal you chose) and of open execution exceptions. Running writes nothing, so you can run it as often as you like.
- The Unexplained variance is worked out only when the reading is saved. To keep the reading as evidence and see that figure, select Save run (you are reminded: "Not saved. The variance and the unexplained residue are computed when the run is written…"). The saved row shows the ledger and sub-ledger balances, the Variance and the Unexplained variance.
What happens: A non-zero Unexplained variance is the part that needs investigating. Because only pending journals are counted as explained, the unexplained figure also holds whatever unaccrued commitments and open exceptions account for. If the run warns that commitments are unaccrued or exceptions are open, clear them before you read the variance as a fault and before signing off the period. Run without a Main account, the general ledger side adds up every main account in the Earmark posting profile, offset accounts included, so its variance does not come to zero even when the books agree; a Main account narrows only that side. The story Closing a month when trade accruals went wrong walks through a full reconciliation.
If it warns: "The Earmark posting profile resolves to no main accounts, so the general ledger side of this reconciliation has nothing to look at and will read zero…" The posting profile is incomplete. Complete it and run again.
Where to look when something seems wrong
| Symptom | Look here |
|---|---|
| The Price build-up buttons are missing on the sales order | The Customer module is off in Earmark parameters. On a purchase order, the Vendor module or the Purchase price build-up shape is off. |
| The Price build-up FactBox is empty or the Stale prices tile is missing | Price build-up on sales lines is off in Earmark parameters. |
| Lines created by an integration are not priced, although an inbound pricing policy covers them | Inbound auto-pricing is off in Earmark parameters (as shipped, and after an update). |
| The Build price dialog offers no deals | The Eligibility date is outside every deal's window, or no approved deal targets the line. Ask a holder of Test deal resolution to run it for the line: Show ineligible lists only deals that reach the line but cannot be used, never a deal left out by its window, status or targeting. |
| A shipment or invoice posted but no accrual appears | Accrual event queue (Earmark > Inquiries and reports, or the Deal control workspace). If the row is Queued, the processor has not run since, so run Accrual event processor now or check the batch job (if the Accrual event processor not scheduled tile is lit, there is no recurring job). Process now does not run a Queued row. If it is Superseded, read the last message for the verdict (a closed period or a module that was off is not retried by anything; see Understand what happens when a packing slip or invoice posts). If it is in Processing, read Last message: an error there also has an execution exception; with no error, the row is waiting for a run (select it and Process now, or wait for the staleness window). |
| No event in the queue at all | Did a deal price get built on that line? No build means no accrual instance, so there is nothing to accrue. Otherwise, run the Unaccrued transaction sweep and read its summary; it repairs only a commitment that has accrued nothing at all. The Unaccrued transactions tile shows no count: it opens Accrual instances. |
| An accrual is smaller than expected, or zero | Breaches list and the Deals over cap, Below qualifying quantity, Per-transaction breaches and Quantity threshold reached tiles. These are verdicts, not faults. The Quantity threshold reached tile never clears, because its verdicts cannot be resolved. For a Percent of base deal, remember it is a percentage of the line's net amount for the quantity that moved. |
| Something failed | Earmark execution exceptions and the Accrual execution exceptions tile. Fix the cause, then Retry selected in the row's company. |
| Money accrued but is not in the ledger | Accruals pending posting and Journals pending review tiles. Post the journals in General ledger, or check the Journal post exceptions if they were set to post automatically. |
| A held journal will not post (closed period, suspended dimension) | Correct held journal on Accrual transactions, then post or retry. |
| A return reversed nothing | Was the return line linked to the shipment (Return lot ID)? Did the shipment ever accrue? Read the queue row's last message. |
| The price on a line looks wrong | Price build-up FactBox (is it Stale?), then the Stale prices list. |
| Month-end figures do not agree | Accrual reconciliation, and read the Unexplained variance on a saved run. |