Skip to main content

Working with trade deals

This chapter is for deal managers (the people who write deals) and deal approvers (the people who sign them off). It covers a deal's whole life: creating it, saying what it applies to, checking it, getting it approved, changing it once it is approved, copying it, ending it, and then watching what it costs on the Deal control workspace. Accruals, claims and price build-up have chapters of their own. To see where Earmark sits in the standard processes, read How Earmark changes your processes. To find a screen, see Forms guide.

Who can do what (these are the roles as shipped; your administrator may have changed them):

ActWho has it as shipped
Create, edit, submit and recall deals; copy; test deal resolution; validate accounts; amendSales manager, Purchasing manager, Inventory accountant (Earmark adds a Maintain Earmark deals duty to each)
Cancel and Close a dealSales manager, Purchasing manager, Inventory accountant (the End Earmark deals duty), and Earmark deal approver
Approve, reject, request change and delegate in the workflow; Test deal resolution and Validate accounts before deciding (both read-only)Earmark deal approver
Abort a dealNo shipped role has it (see the note at the end of this chapter)
Open the deals list, the deal page, the Earmark workspace and the Earmark timeline (read only)Every role with the Inquire into Earmark duty: the three deal-maintaining roles, Sales clerk, Accountant, Accounting manager, Accounting supervisor, Accounts receivable clerk and manager, Accounts payable clerk and manager, Earmark deal approver, Earmark claims approver, Earmark auditor
Open the Deal control workspace and read its listsEvery role with the Inquire into Earmark accruals duty (Sales clerk, Purchasing agent, Purchasing manager, Inventory accountant, Accountant, Accounting manager, Accounting supervisor, the accounts receivable and accounts payable roles, and the three Earmark roles), and Sales manager (Monitor Earmark deal control)
Submit cap change and Close deal on the Deal balances listSales manager, Purchasing manager, Inventory accountant; the Earmark deal approver for Close deal
Post manual accrual and Reverse accruals on the Deal balances list; Resolve on BreachesAccountant (see chapter 3)
Rebuild balances on the Deal balances listAccounting manager (the Rebuild Earmark balances and record reconciliations duty)
Maintain Deal groupsAccounting manager, System administrator

Every act has its own secured button. If a button is greyed out, your role does not include that act. It is not a fault in the deal.


Create a deal​

Who: Sales manager, Purchasing manager or Inventory accountant · Where: Earmark > Deals > All deals, then New · Before you start: Turn on the module and shape you need in Earmark > Setup > Earmark parameters. Every module and every vendor shape is off at install. You type a new deal's ID yourself; the Deal ID number sequence is used only when you copy a deal, and copying is refused without it.

  1. On the Earmark deals list page, select New. The Earmark deal page opens.

    What the list shows depends on how you reach it. Earmark > Deals > All deals shows every deal in the company. The All deals entries Earmark adds to the Accounts receivable, Accounts payable and Inventory management menus show that module's deals only. The Deals button on a customer or vendor shows the deals with a targeting row that reaches that account (the account itself, its group, or all accounts), and on a product the deals that reach that item. The Planning, Deals pending my approval and Expiring soon tiles open the matching view. Earmark > Deals > Deals pending my approval shows the deals, and the amendments to approved deals, whose approval work item is assigned to you. Use the Views buttons or the filter to narrow it further.

  2. On the General tab, fill in the field groups:

    • Identification: Deal ID (you type it, even when a Deal ID number sequence is set up; a new deal never takes one from the sequence, and you cannot change it later), Name, Deal group (optional; used for reporting only), Deal owner (you, by default).

    • Scope: Module (Customer, Vendor or Inventory) and Deal shape. The module cannot be changed after the deal is created. The shape must belong to the module:

      ModuleShapes offered
      CustomerCustomer program
      VendorSupplier rebate on purchases · Purchase price build-up · Sales-triggered vendor accrual
      InventoryInventory provision

      An inventory provision deal works on sales of its item. When a sales order line for the item is created, each approved inventory deal whose item, dates and currency match is attached to the line as an accrual instance, without anyone building a price. It accrues on the item's sales packing slip or invoice (its Accrual point), as a liability. It never changes the line's price (it is always off-invoice), has no customer or vendor account, and is never claimed (Claimable by is None). A return reverses its accrual, and otherwise the money is released only by reversing it. A Percent of base rate is a percentage of the line's net amount per unit, as it was when the line was created; a later price change on the line is not picked up.

    • Validity window: Effective and Expiration. Both are mandatory, because a deal is never open-ended. Effective starts at today's date in your own time zone (your user options), not the server's. Earmark uses that same day everywhere it asks whether a deal is in force today, so a deal you create this morning is in force for orders created beside it.

    • Commercial terms: Deal currency (the deal only applies to transactions in this currency), Sales tax group and Method of payment (both optional), Accrual point (Ship, Invoice or Manual: which posted document makes the money accrue), Price mode (Company default, Gross-up or Off-invoice), and Deal unit. The deal unit is required: it is the unit the rate and the quantity thresholds are stated in. A new deal starts in the unit set as Default deal unit in Earmark parameters, which ships as ea. If that unit does not exist in your company, the field starts blank and you must choose one before the deal can be saved. Where the deal unit differs from an item's inventory unit, a unit conversion must exist for the item, or the deal cannot price that item (see Unit not convertible in chapter 3).

  3. On the Economics tab:

    • Rate: choose a Rate basis, then fill in only the field that belongs to it:

      Rate basisField to fillWhat it means
      Amount per unitAccrual amount, and Per quantity (1 for per unit, 100 for per hundredweight)The amount for every Per quantity of the deal unit that moves
      Percent of baseAccrual percentageA percentage of the order line's built price (base price plus over-basis) for the quantity that moves, so it comes to that percentage of the line's net amount before tax
      Fixed per transactionFixed amountOne amount per movement of goods, whatever the quantity; nothing when a movement moves no quantity

      The sign of the amount is the direction of the money, so there is no separate sign field. Allow amount edit controls whether the person building prices may change the deal's proposed amount on the order line.

    • Limits: Minimum accrual per transaction and Maximum accrual per transaction (zero means no limit), Lifetime cap (zero means uncapped), and Headroom alert percentage (empty means no warning). The per-transaction minimum and maximum are sizes: enter them as positive numbers even on a deal whose rate is negative. Each accrual keeps its own sign.

    • Qualifying thresholds: Criteria type (None, Amount, Quantity, Amount and quantity), then Minimum qualifying quantity and Maximum qualifying quantity (also sizes, never negative). The thresholds you fill in must match the criteria type you chose. The lifetime cap applies whatever the criteria type says.

  4. On the Posting tab, under Claiming and accounts:

    • Claimable by: None, Customer or Vendor. Inventory deals are always None.
    • Account source: Posting profile (the normal case: the company Earmark posting profile decides the accounts) or Deal-nominated (the deal carries its own accounts in the Nominated accounts grid below, one row per account-bearing movement type).
    • Funding vendor: fill this in on a Sales-triggered vendor accrual, and only there. That shape accrues only for its funding vendor, so a deal without one is refused at submit.
  5. Save. The deal is in Planning.

What happens: The deal is saved in Planning. A Planning deal prices nothing and accrues nothing until it is approved. When you choose the module, Accrual point, Claimable by and Account source are filled from the per-module defaults in Earmark parameters. If per-deal price modes are not allowed there, Price mode stays Company default.

While you edit, Earmark warns you straight away about some combinations (a shape that does not belong to the module, a claimable-by value the module does not offer, a missing rate, an expiration date before the effective date). The warnings do not stop you typing; the save checks them again.

If it is refused: Each save is checked, and you see every problem at once. These are the messages you are most likely to see:

  • "Deal <deal> has no rate in its chosen basis, <basis>…" Fill in the field that belongs to the rate basis.
  • "Deal <deal> has no module." / "Deal <deal> has no shape…" / "Deal <deal> has shape <shape>, which does not belong to the <module> module…" / "Deal <deal> is claimable by <x>, which the <module> module does not offer…"
  • "Deal <deal> cannot be used because the <module> module or its <shape> shape is switched off in Earmark parameters…" Ask your administrator to switch it on.
  • "Both an effective date and an expiration date are required. The Earmark validity window is mandatory."
  • "A deal unit is required. Enter the unit of measure the deal's rate and quantity thresholds are stated in, for example ea…" No order line's unit converts to a blank one, so a deal without a unit would never price anything.
  • "<field> on deal <deal> is <value>, and it cannot be negative. The per-transaction minimum and maximum and the minimum and maximum quantity are sizes… Enter a positive value, or zero for no limit." A negative deal carries its sign in its rate, never in these fields.
  • "The per quantity must be greater than zero on an amount-per-unit deal…"
  • "The maximum accrual per transaction <x> is below the minimum <y>." and the same for the qualifying quantities.
  • "The criteria type is <type> but no minimum or maximum qualifying quantity is stated…", and the reverse, "…is stated but the criteria type <type> does not select the quantity tests…". The same pair exists for the per-transaction amounts. Make the criteria type and the populated thresholds agree.
  • "Per-deal price mode is not allowed. Set Price mode to Company default, or allow per-deal price mode on the Defaults tab of Earmark parameters."
  • "Deal <deal> is a purchase price build-up deal, which accrues nothing, so its money cannot be grossed up into the purchase price. Set its price mode to Off invoice." (Company default is also accepted on this shape; it always resolves to off-invoice.)
  • "A funding vendor belongs only to a sales-triggered vendor accrual, and this deal's shape is <shape>. Clear the funding vendor…"
  • If you switch Account source back to Posting profile, you are warned that any nominated posting rows are deleted when the deal is saved, and nothing recovers them.
  • "Earmark's license has reached its block date on this production environment. New deals and claims cannot be created (the deal and claim migration loads are not refused), and deals, amendments and claims cannot be approved. ..." On a production environment, from the license's block date, a new deal cannot be saved (by hand or through a data import). Changing a deal that already exists is not refused. Other environment types only warn. Ask your administrator to renew the license (Check the license status).

Say what the deal applies to (targeting)​

Who: deal maintainers · Where: the deal's Targeting tab · Before you start: the deal must be in Planning.

  1. On the Targeting tab, select New targeting row. It opens the New targeting row dialog. You cannot type rows into the grid. The dialog is the only way to add or change them.
  2. Under Item targeting, set Item code: Table (one item), Group (an item group), Category (a category in the targeting category hierarchy set in parameters) or All. Then fill in Item relation, except for All, where it must stay empty.
  3. Under Account targeting, set Account code: Table (one customer or vendor), Group (an account group) or All. Then fill in Account relation (empty for All).
  4. Under Mode of delivery targeting, leave Mode of delivery selector at All (every mode of delivery; this is the default), or set it to Table and pick one Mode of delivery. This axis is for third-party carrier deals.
  5. Optionally, narrow the row under Inventory dimensions (configuration, size, color, style, version, site, warehouse) and under Scope and validity (Unit, Priority, and the row's own Effective/Expiration, which must fall inside the deal's window). A lower priority number wins; 0 is the highest.
  6. Select OK. To change a row, select it and use Edit targeting row. To remove a row, use the delete button on the same toolbar. The Targeting grid shows the mode-of-delivery selector and mode beside the account columns.

An inventory deal is different: it carries exactly one targeting row, which names exactly one item (Item code Table) and has Account code All, because an inventory deal has no customer or vendor.

What happens: The row is stored with a Specificity rank. When several rows of one deal match a line, the more specific row wins (item, then account, then mode of delivery, then inventory dimension, then unit). After that, the lower Priority wins, then the later effective date. Deals stack: every approved deal with a matching row applies to the line, so more than one deal on a line is normal.

If it is refused:

  • "The targeting row's effective range <from> to <to> falls outside deal <deal>'s validity window <from> to <to>. A targeting row can only narrow its deal's availability, never widen it." Correct the row dates or widen the deal window.
  • "An item relation is required when the item code is <code>…" / "The item code is All, so the item relation must be empty…", and the same pair for the account axis.
  • "A mode of delivery must be named when the selector is not All." or "A mode of delivery cannot be named when the selector is All.": set the selector and the mode together.
  • "The priority must not be negative…"
  • On an inventory deal: "An inventory deal targets exactly one item. Set the item code to Table and name the item.", "An inventory deal has no counterparty. Set the account code to All…" and "Deal <deal> is an inventory deal and already has a targeting row. An inventory deal carries exactly one."
  • "Deal <deal> is <status>. Targeting rows may be added, changed or removed only while the deal is in Planning."

A row naming an item that is not released to this company is saved. Submit then warns you that the row can match nothing until the item is released (see below).


Add funding rules (supplier-funded customer programmes)​

Who: deal maintainers · Where: the deal's Funding tab · Before you start: this applies to customer deals only. The deal must be in Planning. Funding is controlled by the Supplier-funded customer program (mirror) toggle in Earmark parameters.

  1. On the Funding tab, select New.
  2. Choose which items the rule covers (Item selector and Item relation, optional inventory dimension, Priority and Effective from/Effective to).
  3. Fill in Funding vendor account (one vendor, never a group), Share type (Full, Percent of deal money or Fixed per deal unit), Share value (the percent or the amount; not needed for Full) and, optionally, Funding cap (zero means uncapped).
  4. Save.

What happens: When the approved customer deal is built into the price of a matching order line, a vendor-side twin (a "mirror") is created for the funded share in the same step. Each customer accrual on that line is then paired with a vendor-side accrual on the twin. See Vendor deals, supplier funding and mirrors and the story A promotion the supplier helps pay for, up to a ceiling.

If it is refused: "Deal <deal> is not a customer deal. A funding rule can only be added to a customer deal." · "Deal <deal> is in status <status>. A funding rule can only be added, changed or removed while its deal is in Planning." · "A share value is required for share type <type>."


Check a deal before you submit it​

Who: deal maintainers, and the Earmark deal approver before deciding · Where: the deal's action pane, Test and validate group

Two read-only checks. Neither one writes or reserves anything.

Validate accounts

  1. Select Validate accounts. For each movement type this deal can produce, the dialog shows whether an account resolved, the account itself, and a message.
  2. If you fix a posting profile or a nominated posting row in another window, select Validate again.

A gap here means configuration is missing. It is not a failure: nothing is posted until it is fixed.

Priced lines: opens the Price build-up inquiry, where you can look up the order lines this deal was priced into by deal ID. It needs the price build-up inquiry duty (Sales manager and the Earmark deal approver; greyed for Purchasing manager and Inventory accountant).


Test deal resolution (why does or doesn't a deal apply?)​

Who: deal maintainers and the Earmark deal approver · Where: Test deal resolution on the deal page, on the New targeting row dialog, or under Tools in the Earmark workspace's related links

  1. Under Transaction, describe the line you are asking about: Module, Counterparty (leave it blank for inventory), Item number, Date, Currency, and optionally Inventory dimensions, Unit, Quantity and Method of payment. A blank optional field means "do not narrow on this". Date starts at today in your time zone. Enter the date a price build would test for the line: its requested ship date, unless your company's Eligibility date basis (Earmark parameters) is set to Requested receipt date or Order date.
  2. Select Test.
  3. The Results tab lists every approved deal that applies, with its rate, deal unit, price mode, claimable-by, account source, accrual point and specificity rank. More than one answer is normal.
  4. The Why not tab lists the deals in scope that did not apply. For each one it gives the first criterion that failed, in this fixed order: status, module, currency, window, item, account, dimension, unit, payment method.
  5. Select a row and choose Open deal to read it in full.

What happens: Nothing is written. The test runs the same resolver that prices real order lines, so its answer is what the system will do for that transaction. If nothing qualifies, you see: "No approved deal targets this transaction. The Why not tab names the first criterion each deal in scope failed."

Reading the Why not answers (quoted, with the fix):

You seeWhat to do
"Deal <deal> is no longer available. Its status is <status>, and only an Approved deal resolves onto a transaction…"The deal is not Approved. Planning deals never price.
"Deal <deal> is a <module> deal and the transaction is being resolved in the <module> module…"Wrong module. Create a deal under the other module.
"Deal <deal> is denominated in <currency> and the transaction is in <currency>…"Use one deal per currency.
"Deal <deal> is outside its validity window on <date>. The deal is available from … to … Resolution tests the requested ship date…" (or the requested receipt date, or the order date, whichever Eligibility date basis is set)The date is outside the window. Amend the expiration date, or check the date you tested.
"Deal <deal> has targeting rows but none of them is effective on <date>…"Check the row's own effective dates.
"Item <item> does not exist in company <company>, so no targeting row on deal <deal> that names an item, an item group or a category can match it…"Check the item number.
"No targeting row on deal <deal> matches item <item> or its item group <group>…"Add a row whose item axis covers the item.
"…none of them matches account <account> or its group <group>…"Add a row whose account axis covers the counterparty.
"…each of them names an inventory dimension combination other than <dims>…" / "…a unit other than <unit>…"Widen the row (leave dimension or unit blank) or add a row for this combination.
"Deal <deal> is restricted to payment method <x> and the transaction uses <y>…"Clear the payment-method restriction, or accept that it does not apply.

Submit a deal for approval​

Who: deal maintainers · Where: Submit, on the deal page (Lifecycle group) or on the Earmark deals list page · Before you start: an administrator must have set up and activated an Earmark deal approval workflow in this company. The standard workflow list page has a Check approval workflows button that tells you whether the deal and claim approval workflows are active and how to create any that is missing. It does not create or change a workflow itself. See Activate the approval workflows in chapter 1, and Approval workflows for how the workflow moves a deal.

  1. Open the deal (or select one or more deals on the list page) and select Submit.
  2. If you selected several deals, each one is checked and submitted separately. You then see "<n> of <m> Earmark deals were submitted for approval. <k> were refused; each refusal is listed above." A refused deal does not stop the others.

What happens: The deal moves to Pending approval. Submitted by and Submitted are stamped on the Lifecycle tab, a workflow work item goes to the approver, and a Submitted row is added to the deal's timeline.

If it is refused: You get every problem at once, not just the first one:

  • "Deal <deal> has no targeting rows. A deal needs at least one row saying what it applies to…"
  • "The targeting row for <row> on deal <deal> is effective from … to …, which falls outside the deal's window of … to …"
  • "Deal <deal> has no rate in its chosen basis, <basis>…" Do not set a rate to zero to stop a deal. Use Close or Cancel instead.
  • "Deal <deal> nominates its own accounts but has no posting row for <movement type>. Every account-bearing movement type must be complete before the deal can be submitted." and "…one of them is missing…" Complete the Nominated accounts grid, or switch to Posting profile.
  • "Deal <deal> has no deal unit, so it cannot be submitted…" Only a deal saved before a unit became required can reach this; enter the unit and submit again.
  • "Deal <deal> has no module." / "Deal <deal> has no shape…" / "Deal <deal> has shape <shape>, which does not belong to the <module> module…"
  • "Deal <deal> is claimable by <x>, which the <module> module does not offer…". On a Purchase price build-up deal, claimable-by must be None, and its price mode must not be Gross-up.
  • "Deal <deal> is a sales-triggered vendor accrual and names no funding vendor. This kind of deal accrues only for its funding vendor, so without one it would be approved and never accrue anything…" Fill in Funding vendor on the Posting tab, then submit again.
  • "Deal <deal> cannot be submitted because the <module> module or the <shape> deal shape is turned off in Earmark parameters…"
  • "Deal <deal> cannot be submitted because no active Earmark deal approval workflow is configured…"
  • "Deal <deal> cannot be submitted for approval because it is <status>. A deal is submitted from Planning only."

Two messages are warnings only, and the deal still submits:

  • "…the profile does not yet cover part of its scope… The deal can still be submitted and approved…" Until the profile is completed, postings for that scope raise an execution exception and post nothing. The Posting profile incomplete tile does not track this: it lights only when a whole posting type has no row at all.
  • "Deal <deal>, targeting line <n> names item <item>, which does not exist in company <company>. The line can match nothing until the item is released to this company…"

Recall a deal you submitted​

Who: the author (deal maintainers) · Where: Recall, on the deal page or the list page (the Pending approval view is the quickest place)

  1. Select the deal and choose Recall.
  2. The Recall deal dialog explains what will happen and asks for a Reason code (required; the lookup offers only reasons flagged for Earmark) and a Note. Select Recall deal.

What happens: The approval in progress is canceled, and the deal returns to Planning, where you can edit it. A Recalled timeline row records your reason.

If it is refused:

  • "A reason code flagged for Earmark is required to recall deal <deal> from approval."
  • "Reason code <code> is not flagged for Earmark. Flag it on the Financial reasons page, or choose a reason that is already flagged." Choose a flagged reason and recall again. If no reason is flagged for Earmark yet, the flag is on the standard Reasons page.
  • "Deal <deal> cannot be approved, rejected or recalled because it is <status>. Those acts are available from Pending approval only."

Approve, reject, request a change or delegate​

Who: Earmark deal approver · Where: your workflow work item, Earmark > Deals > Deals pending my approval, or the Deals pending my approval tile on the Earmark workspace. The list shows the deals with a pending approval work item assigned to you, including approved deals whose amendment is waiting on you.

The Earmark deal approver role opens the Earmark workspace, the deals list and the deal page read-only, so you can check a deal before you decide: Test deal resolution and Validate accounts on the deal page (neither writes anything), Priced lines, the deal's Instances and Transactions, and the Deal control workspace. The same role ends approved deals later with Cancel or Close on the deal page.

  1. Open the deal. Review its tabs: General, Targeting, Economics, Posting, and Funding where present. For an amendment, the proposed change is under Amendments on the Lifecycle tab.

  2. In the workflow message bar on the deal, open the actions menu and choose one of these:

    ActionUse it whenResult
    ApproveThe deal is rightThe deal becomes Approved. Approved by and the date are stamped.
    RejectThe deal should not go ahead as writtenThe deal returns to Planning with your comment. Nothing is ended.
    Request changeThe deal is sound but something needs correctingThe deal returns to Planning. On the timeline this shows as Change requested, with your comment, so it can be told apart from a rejection.
    DelegateSomeone else should decideThe work item moves to another user. The deal does not change and no timeline row is written.
  3. Add your comment and confirm.

Approve and Reject are not buttons in the deal's action pane. They are in the workflow message bar, which shows on the deal page and the deals list page for a deal that has a work item assigned to you, as in any standard Dynamics 365 workflow. The bar never offers its own Submit: submitting and recalling stay on the deal's Submit and Recall buttons. Escalation, delegation and approval limits are the standard workflow features.

What happens: Only an Approved deal prices order lines and can start costing money.

If it is refused: You cannot approve a deal you wrote or submitted, or an amendment you raised, whatever the segregation-of-duties setup says. Choosing Approve is refused at once, before the work item completes: "<user> cannot approve <document> <deal> because they raised it… Route the approval to another holder of the approver duty. The work item has not been completed and is still assigned to you. Delegate it to another approver who may approve this document." The deal (or the amendment) stays Pending approval, and its timeline records a SoD denied row. Delegate the work item to another approver.

On a production environment, from the license's block date, Approve on a deal or an amendment is refused before the work item completes, with "Earmark's license has reached its block date on this production environment. ..." No timeline row is written, the work item stays with you, and delegating it does not help: nobody can approve until the license is restored. Reject, Request change and Delegate still work. A workflow that approves automatically, with no work item, leaves the deal Pending approval with the workflow finished; recall the deal and submit it again once the license is restored. See Approval workflows.


What each deal status means​

StatusMeaningWhat you can do
PlanningBeing written. Prices nothing and accrues nothing.Edit, delete, submit, copy
Pending approvalSubmitted and waiting on the workflow.Recall (author); approve/reject/request change (approver); copy
ApprovedIn force. The only status the resolver looks at.Amend, copy, cancel, close, abort
ClosedEnded after it had cost money.Copy only
CanceledEnded before it was ever used.Copy only
AbortedEnded immediately, without the ordinary close.Copy only

There is no "Expired" status. When the expiration date passes, the deal stays Approved and simply stops being applied to new lines. No status changes, no timeline row is written, and nothing is reversed. The Expiring view shows deals whose window ends within the Deal expiry warning (days) set in parameters; the Expiring soon tile counts them. Nothing else uses that setting: no warning or notification is sent.

The list page's Views group has Planning, Pending approval, Approved, Expiring and Ended. Ended shows closed, canceled and aborted deals together. The Pending approval view shows every deal in that status; Deals pending my approval (menu or tile) shows only the deals and amendments whose work item is assigned to you. The Planning, Deals pending my approval and Expiring soon tiles on the Earmark workspace are not narrowed to a module, and each opens the list on its view. A view keeps the module the list was opened for.


Amend an approved deal​

Who: deal maintainers (Sales manager, Purchasing manager, Inventory accountant) · Where: Amend on the deal page (Maintain group). Submit cap change (deal page Accruals group, or the Deal balances list on the Deal control workspace) opens the same dialog. Before you start: Allow amendments on approved deals must be on in parameters, the Earmark deal approval workflow must be active (the same one deals are submitted to), and the deal must not already have a pending amendment.

Only six fields can be amended: Name, Deal group, Deal owner, Expiration, Lifetime cap and Headroom alert percentage. Any other change is refused with an instruction to copy the deal. That covers rate, deal unit, targeting, posting, effective-from date, claimable-by and funding.

  1. Select Amend. The Amend deal dialog shows Current values (read-only) on the left and Proposed on the right.
  2. Fill in only what you are changing. A field you leave untouched is not amended, which is not the same as amending it to blank.
  3. Under Cap and headroom, check Accrued to date and Headroom after amendment. If the new cap is below what is already accrued, you are warned. That is allowed: nothing is reversed, and the deal simply has no headroom left.
  4. Enter a reason code (a financial reason flagged for Earmark) and a note.
  5. Select Propose amendment.

What happens: An amendment is created with status Pending and is sent for approval in the same step: you see "Amendment <n> on deal <deal> was sent for approval. Nothing on the deal changes until the approver approves it." It appears on the deal's Lifecycle tab under Amendments, in Pending amendments on the Deal control workspace, and on the approver's Deals pending my approval list. Nothing on the deal changes until the amendment is approved. Approval runs through the same Earmark deal approval workflow as the deal itself, so the work item reaches the same approvers, on the deal; the approver may not be the person who raised the amendment. Once it is approved, the change applies straight away to every accrual instance of the deal. Accruals already made are never recalculated. If the approver rejects it or requests a change, or the workflow is recalled or canceled, the amendment closes as Rejected and the deal can be amended again. Ending the deal withdraws a pending amendment.

An amendment that was never sent. If the deal has a pending amendment that was created but never sent for approval (for example one raised by an earlier build, or by an integration), Amend asks "Amendment <n> on deal <deal> was proposed but never sent for approval, and a deal can have only one open amendment. Send it for approval now?" instead of opening the dialog; answer Yes to route it.

If it is refused:

  • "The amendment to deal <deal> cannot be sent for approval because no active Earmark deal approval workflow is configured… Nothing was sent for approval." Configure and activate the deal approval workflow, then propose the amendment again.
  • "Deal <deal> already has a pending amendment. A deal carries at most one open amendment at a time…"
  • "Amendments to approved deals are switched off for this legal entity…"
  • "Deal <deal> cannot be amended because its status is <status>. Only an Approved deal is amended: a deal still in Planning is edited directly, and a deal that has been canceled, closed or aborted is finished - copy it instead…"
  • "This amendment proposes no change to any field…" / "An amendment needs a coded reason…"
  • "The proposed to-date <date> for deal <deal> falls before the deal's from-date <date>… to end a deal now, use Close or Abort rather than an amendment."
  • "The proposed lifetime cap <amount> for deal <deal> is negative…" / "The proposed headroom alert percentage <n> for deal <deal> is outside the range 0 to 100…" / a blank proposed name or owner, or a deal group that does not exist, is refused.

Copy a deal​

Who: deal maintainers · Where: Copy on the deal page (Maintain group) · Works from any status.

  1. Select Copy. The Copy deal dialog shows the source under Copy from.
  2. Under New deal, enter a Name. You can leave it blank to reuse the original's, but two deals with one name are told apart only by their IDs. Optionally enter Valid from, Valid to (blank keeps the original's dates) and Owner (blank means you).
  3. Select Copy.

What happens: A new deal is created in Planning, with its Deal ID drawn from the Deal ID number sequence. You see "Deal <deal> was copied to new deal <new deal>, which is in Planning." The new deal is not opened for you. Find it on the list page. The header, targeting rows, posting rows and funding rules are copied, with their dates as they are unless you entered new ones. Balances, accrual instances and amendments are not copied. A Copied from / Copied to row is written to each deal's timeline. The copy must be submitted and approved like any new deal.

Copy is the supported route for anything an amendment refuses. To change an approved deal's rate, copy it, adjust the copy, get the copy approved, then end the original.

If it is refused: nothing is created.

  • "Deal <deal> cannot be copied because no Deal ID number sequence is configured. Assign one in Earmark parameters, then copy the deal again."
  • The copy is checked as a submit would check it, and any problem a submit would refuse stops the copy: for example no targeting rows, a targeting row dated outside the new window, a missing rate or deal unit, incomplete nominated posting rows, a missing funding vendor, or the module or shape switched off. The messages are the ones listed under Submit a deal for approval.
  • On a production environment, from the license's block date: "Earmark's license has reached its block date on this production environment. ..."

Delete a Planning deal​

Who: deal maintainers · Where: the standard delete on the deal page

Only a deal in Planning can be deleted. Deleting it also removes its targeting rows, nominated posting rows, amendments and funding rules.

If it is refused: "Deal <deal> is <status> and cannot be deleted. Only a deal in Planning may be deleted; use Close, Cancel or Abort to end an approved deal's availability."


End a deal: Close, Cancel or Abort​

Who: Sales manager, Purchasing manager, Inventory accountant (the End Earmark deals duty) and Earmark deal approver for Cancel and Close; Abort needs a separate duty (see below) · Where: Cancel, Close, Abort in the deal page's Lifecycle group. Close deal and Abort deal are also on the Deal balances list of the Deal control workspace. · Before you start: the deal must be Approved.

All three end the deal's availability for new prices only. Nothing already accrued is reversed, and accrual instances already on order lines keep accruing and settling normally. Reversing money is a separate, deliberate action (Reverse on the Accrual transactions list, or Reverse accruals on the Deal balances list for everything still reversible on the deal; see chapter 3).

EndingUse it forCondition
CancelA deal that was never usedIt must have no accrual instances at all. An instance that was later withdrawn (for example by Unbuild price) still counts, because the deal did price a line.
CloseA deal that is in force and has cost moneyAt least one accrual must have posted against it. An accrual whose journal is still waiting to post does not count; one that was later reversed or claimed does.
AbortA deal that should never have been in force, or one that priced lines but never accruedNo condition beyond being Approved

So a deal that never accrued is never closed: Cancel it if it never priced an order line, or Abort it if it did. If its only accrual is still Journal pending, post that journal first (or correct it if it is held; see chapter 3), then close.

  1. Select the act. The dialog (Cancel deal, Close deal or Abort deal) explains what will happen. For Abort, Affected lines lists the order lines that carry instances of the deal. That list is for information only, and the abort leaves those lines alone.
  2. If the deal has a pending amendment, you are told that ending the deal withdraws it.
  3. Enter a Reason code (mandatory, and it must be flagged for Earmark) and a Note.
  4. Confirm with Cancel deal, Close deal or Abort deal.

What happens: The status changes. Ended by, Ended, End reason and End reason note are stamped on the Lifecycle tab, and a timeline row is written. On Close and Abort, a message reports what the deal left open: commitments on order lines that have not accrued yet, and accruals not yet claimed, or that it ended with none. On Close only, and only when something was left open, the Deal owner gets an Action center notification; no notification is sent when nothing is open or the deal has no owner, whatever the Close dialog says. The open accruals stay listed on Earmark > Inquiries and reports > Open accruals at close (also in the Deal control workspace's related links). The deal now appears in the Ended view.

If it is refused:

  • "Deal <deal> cannot be canceled because <n> accrual instances already reference it. Close or abort the deal instead…"
  • "Deal <deal> cannot be closed because no accrual has been posted against it. Close is the ending for a deal that cost something. Cancel the deal instead if it never priced an order line, or abort it if it did."
  • "Deal <deal> cannot be canceled, closed or aborted because it is <status>. Those acts are available from Approved only."
  • "A reason code flagged for Earmark is required to cancel, close or abort deal <deal>." / "Reason code <code> is not flagged for Earmark…"

A module or shape that has since been switched off does not stop you ending a deal.


Watch deal money on the Deal control workspace​

Who: to read it, the roles named for the Deal control workspace in the table at the top of this chapter; each button on its lists is a separate act with its own duty · Where: Earmark > Workspaces > Deal control, or the Deal control button in the Earmark group that Earmark adds to the customer page (Sell tab) and the vendor page (Procurement tab). Opened from a customer or vendor, the Deal balances list shows only the deals that apply to that account, and its tab says so (Deal balances - deals that apply to <account>). The Deals button beside it opens the deals list filtered the same way. To see the workspace used through a whole program, read the story Paying a grocery chain only for the volume it earned.

Summary tiles (each counts the whole company):

TileWhat it counts
Deals over capApproved deals with no headroom left. Nothing is blocked: the next movement accrues nothing and records Cap reached. The tile opens the deals list filtered to those deals.
Deals near capApproved deals whose headroom has fallen to or below their Headroom alert percentage. Deals with no alert percentage set are not watched. The tile opens the deals list filtered to those deals.
Quantity threshold reachedUnresolved maximum quantity reached verdicts, counted per customer or vendor. These verdicts cannot be resolved, so once the tile counts one it does not clear.
Below qualifying quantityMovements in the last 30 days that accrued nothing because the minimum quantity was not yet reached. The money is held as pending catch-up, not lost.
Per-transaction breachesMovements in the last 30 days clipped to the per-transaction minimum or maximum.
Accruals pending posting / Journals pending reviewAccrual movements, and the Earmark journals behind them, that are created but not yet posted
Unaccrued transactions / Accrual execution exceptionsMissed triggers and malfunctions (see the accrual chapter)
Setup-gap tilesPosting profile incomplete, Dimension rules missing for movement type, Journal names not set and Headroom alert % not set, each shown only while its gap is open. Posting profile incomplete lights only when a whole posting type has no row at all; a gap for one item group or customer group leaves it dark, so use Validate accounts on the deal. Two more tiles, Locked-rate mode with revaluing accrual accounts and Revaluation policy with non-revaluing accrual accounts, are on the page but never light, because their checks are not built.

Lists (under Deals and movements):

  • Deal balances: one row per deal, with Lifetime cap, Accrued and posted, Accrued, journal pending, Reversed, Returned, Claimed, Claim approved, Quantity to date, Headroom amount, Headroom percentage, Last accrual date, Rebuilt and Rebuild variance. It shows approved deals. The buttons are Open deal, Open transactions (that deal's movements), Submit cap change, Close deal, Abort deal, Post manual accrual (you choose one of the deal's active commitments in the dialog), Reverse accruals (opens the reversal dialog listing every Accumulated movement of the deal, with a journal-line preview) and Rebuild balances. From Submit cap change on, each is enabled only for the roles in the table at the top of this chapter. See chapter 3 for Post manual accrual and Reverse accruals. Rebuild balances (Accounting manager) recomputes the selected deal's balances from its movements and reports the maintained and recomputed amounts and the difference ("Balances for deal %1 were recomputed from its accrual transactions and %2 balance rows were written. ..."); a difference is also recorded as a Balance variance verdict, and, if Alert on balance rebuild variance is on, the deal owner gets an Action center notification.
  • Threshold status: one row per deal and per counterparty, with the deal unit, the deal's min/max quantity, Quantity to date, Quantity below threshold, Pending catch-up value, Accrued and posted and Last accrual date.
  • Breaches: the control verdict register, with the verdict type, the computed amount and quantity against the applied amount and quantity, and whether it is resolved. Only a Credit without quantity - review verdict can be resolved (Resolve, Accountant). Every other verdict type is informational.
  • Pending journals and Pending amendments.

How to read caps and headroom:

  • Headroom amount is the lifetime cap minus what has accrued, floored at zero. Headroom percentage is the same figure as a share of the cap. A deal with a lifetime cap of zero is uncapped and never appears on the cap tiles.
  • Reaching the cap never blocks or fails a document. The movement accrues whatever headroom is left and records Cap reached. If no headroom is left, it accrues nothing. The cap only limits movements that add to what the deal owes; a return or a reversal always goes through.
  • A Headroom warning is raised once, on the movement that crosses the alert threshold, not on every shipment after it.
  • Qualifying quantity is counted per counterparty, so two customers cannot combine their quantities to reach a minimum between them. Below the minimum, the money builds up as Pending catch-up value and is paid out in full once the minimum is crossed.
  • Accrued and posted has a ledger voucher behind it. Accrued, journal pending does not yet.
  • The same balances, by level (Deal, Counterparty, Funding rule), are on the deal page's Balance tab.
  • To change a cap, use Submit cap change, which is an ordinary amendment. Lowering the cap below what has already accrued is allowed and reverses nothing.

Control verdict types you will see in Breaches: Cap reached, Headroom warning, Below qualifying quantity, Maximum quantity reached, Minimum applied, Maximum applied, Accrued outside window, Credit without quantity - review, Balance variance. These are policy outcomes, not errors. They never appear in the execution exceptions workbench.


Read a deal's history (timeline)​

Who: see the table at the top of this chapter · Where: the Earmark timeline FactBox on the deal page, or Earmark > Inquiries and reports > Earmark timeline

  1. On the deal page, the Earmark timeline FactBox lists each event with its Date and time, Event type, Actor and whether it was an Automation write. Use the link at the foot of the FactBox to open the full inquiry.
  2. In the inquiry, filter by Document type, Document (contains a deal ID), Event type, Actor, From date and To date. The grid adds Detail, Before and After.

A deal's timeline shows its lifecycle and copy events: Submitted, Approved, Rejected, Change requested, Recalled, Canceled, Closed, Aborted, Copied from, Copied to, Migrated from AX 2012 and SoD denied (an approver refused by segregation of duties, on the deal or on its amendment). An amendment's own events, Amendment submitted, Amendment applied and Amendment withdrawn, are filed under the Amendment document type: filter Document type on Amendment in the inquiry to see them. Creating a deal and changing its targeting or posting rows write no row (the Created, Targeting row changed and Posting row changed event types exist but nothing records them), and neither do expiry, delegating a work item or a license-block refusal.


Where to look when something seems wrong​

SymptomLook here
A deal is not pricing an order lineTest deal resolution, Why not tab. Check the deal is Approved, and check the window against the line's eligibility date (its requested ship date, as shipped).
A new deal is "not in force" yetCheck Effective: it is a date in your own time zone. A deal whose effective date is tomorrow prices nothing today.
A deal cannot be savedEvery refusal is listed at once. Look first for a blank Deal unit or a negative per-transaction or quantity limit.
A deal cannot be closedIt has no posted accrual. Post or correct its pending journal, or Cancel (never priced a line) or Abort (priced lines) instead.
A deal stopped accruingDeal control > Deal balances (headroom zero?) and Breaches (Cap reached, Maximum quantity reached, Below qualifying quantity)
Accruals expected but missingUnaccrued transactions and Accrual execution exceptions tiles; Earmark > Inquiries and reports > Earmark execution exceptions
Postings will fail for a dealValidate accounts on the deal. The Posting profile incomplete tile lights only when a whole posting type has no row, so it can stay dark while one item group or customer group is not covered.
Who changed what, and whenEarmark timeline FactBox on the deal, or the timeline inquiry
Can't submit: workflow messageCheck approval workflows on the workflow list page, or Earmark > Setup > Setup checklist: the deal approval workflow is not active in this company. The checklist row and its tile can read complete because a workflow is active in another company, so check the workflow list in the company you are in. See Approval workflows.
A button is greyed outYour role lacks that act's duty. See the table at the top of this chapter.

The act that ships on no role: Abort is secured by the Abort Earmark deals duty, which no shipped role includes, so Abort (deal page) and Abort deal (Deal balances list) stay greyed out until an administrator assigns the duty to a named person. To use Abort deal on the Deal balances list, that person also needs a role that opens the Deal control workspace.