A pattern we keep running into: a customer signs a long-term price agreement in the summer. Six months later, the agreement has expired, but the rate is still sitting in the system. Then a sales rep quotes from it.

Nobody did anything wrong on purpose. The agreement just never got closed, and the Quotation let the rep pick it anyway.

ERPNext v16.61.0 tightens exactly that gap. This article walks through what changed, why the checks matter, and where the tradeoffs sit.

The agreement that outlives its dates

A Blanket Order in ERPNext is a commitment to buy or sell over a period, at a negotiated rate. For customers, the Order Type is Selling. The main fields you will touch are:

  • From Date and To Date, the validity window
  • Quantity on each item row, the total committed for the period
  • Rate, the negotiated unit rate that flows to downstream documents
  • Ordered Quantity, what has already been pulled into submitted orders

The outstanding amount on each line is the committed Quantity minus the Ordered Quantity. Simple enough.

The catch is in the documentation. ERPNext may not automatically close an agreement when its period ends or its quantity is fully ordered. The status on paper and the rules in the system can drift apart. Anything that relies on the rate has to check the dates itself.

What v16.61.0 changes

Two behaviours changed in the Quotation.

First, the picker only offers Selling Blanket Orders that belong to the customer. This includes orders reached through a Lead or a Prospect.

Second, the Quotation validates the order when you save. The release notes list five checks:

  • the order is open
  • the order has not expired
  • the customer matches
  • the order type and currency match
  • the order has no closed rows

The diagram below shows how the Quotation relates to the agreement and to the documents that follow it.

Architecture diagram 1

The Blanket Order sits upstream of every document that uses its rate. That is why a bad check there is expensive. The error appears on the Quotation, but the damage would appear on the invoice.

The save-time checks, in order

When you save a Quotation that references a Blanket Order, the checks run in this order:

  1. Is the order still open?
  2. Is today before the expiry?
  3. Does the customer match the Quotation?
  4. Do order type and currency match?
  5. Are any rows closed?

If any answer is no, the save stops. The rep sees the reason and the Quotation stays a draft.

Architecture diagram 2

The order of the checks matters less than the fact that all five run. A closed row can hide inside an open order, so the row check is not redundant.

A quotation against a blanket order, step by step

Here is the flow for the case that matters most: a rep quoting from an agreement that has run out.

Architecture diagram 3

The rep does not need to know the rules. They need to know what to do when the save fails, and that the fix is to renew the agreement, not to override the rate.

The tradeoffs

Strict checks cost something. A rep in the middle of a call will hit an error they did not expect. Tell the team the error text before the upgrade, not after.

Extending an expired agreement also takes more than editing a date. The documentation says amendments follow the usual cancel-and-amend path, governed by your permissions and audit policy. That is slower. It is also the point. A rate that changed without a record is the thing you want to avoid.

Currency is the check people forget. A USD agreement will not feed an INR quotation. If you have customers billed in two currencies, check that each agreement is set up in the currency the customer actually pays in.

Finally, the checks guard the Quotation. They do not clean up old data. Agreements that expired months ago will still sit in your list. Run a review of open Blanket Orders against their To Date before you rely on the picker.

Test it on a copy first

Use a restored copy of your site and walk this sequence:

  1. Create a Selling Blanket Order with a To Date in the past.
  2. Try to create a Quotation from it. Confirm the save is blocked.
  3. Extend the agreement through the amendment path. Confirm the Quotation now saves.
  4. Close one item row on a valid agreement. Confirm that a Quotation referencing the closed row is blocked.
  5. Repeat step 2 through a Lead or Prospect, to confirm the picker and the check agree.

If any step behaves differently on your site, check the Blanket Order's status and dates first, then the customer on the Quotation.

The takeaway

A rate is only as good as the agreement behind it. v16.61.0 moves that check to the moment a rep is about to use the rate, which is the right place for it.

Do you keep Blanket Orders for your customers, or do they live in email threads and spreadsheets? We would like to hear what breaks first when an agreement runs out in your business.

Have questions about implementing this? Drop us a line — we're happy to help.