EZSResearch & insights

Check Pack Units Before Automating Order Entry

A buyer’s box can differ from the warehouse carton. Use order terms, unit prices, and packaging identifiers to decide which lines are ready to release.

The customer agreement supplies the multiplier

How many pieces did this customer agree to buy when they ordered one box of this item? Keep the answer in a table owned by the person who manages customer terms. In your no-code workflow, make document reading and pack conversion separate steps so each can be tested and changed independently.

Agreement field What the workflow uses it for
Customer account and buyer item code Identify the product in the buyer’s catalogue.
Accepted sales unit and internal product code Identify the permitted ordering unit and the item to post.
Pieces per sales unit and packaging requirement Calculate the stock quantity and carry through any requirement for intact packs.
Effective dates and agreement row ID Select the applicable terms and retain the basis for the decision.

Match the account, buyer item code, and normalized unit together. The same buyer can use “BOX” for different pack counts across products, and two buyers can use the same item code for different products. A match to the internal product alone resolves what the buyer ordered. The sales unit establishes how much.

Use the effective-date basis named in the agreement, such as the buyer’s order date. Treat the start date as inclusive and the end date as exclusive. Set the next row’s start equal to the outgoing row’s end to avoid a gap or overlap between consecutive agreements. Leave the end blank for an open-ended row. Hold the line if no row applies or multiple rows qualify, even when competing multipliers happen to agree. Save the agreement row ID and the applied values with the draft so a retry after a catalogue edit cannot silently change the quantity.

The format determines where to read the unit

For PDFs and email orders, save the raw quantity and unit, the neighbouring column headings, and a pointer to the original page or message. Keep the raw values beside the normalized fields. Distinguish a blank unit from a literal “each,” and use the buyer’s known number format when parsing quantities. A comma between digits can mark a decimal or a digit group. If you cannot resolve the format, send the original value to review. Strip surrounding spaces and fold case where the source convention permits. Apply an alias such as “BOX” to “BX” only when the order owner has approved it for that account and item. Fuzzy matching can surface a candidate for review. Automatic conversion requires a single effective agreement row.

For electronic data interchange (EDI), read the structured fields according to the trading partner’s implementation guide. In an X12 850 purchase order, PO1 carries the line’s ordered quantity and unit when supplied. PO4 can carry packaging details, including pack and inner pack, where the guide uses them. Follow that guide’s packaging hierarchy before deciding which count represents pieces per ordered unit. Prefer those validated fields to text extracted from a rendered copy. If the feed and agreement disagree, hold the line and show the conflicting values.

UN/ECE Recommendation 21 lists BX for box and CT for carton as packaging codes. UN/ECE Recommendation 20 uses the corresponding X-prefixed codes XBX and XCT for units of measure. Interpret codes under the code list designated for the feed. A packaging code identifies a type of container. The buyer agreement supplies the item-specific count.

For whole-pack items, require a positive integer order quantity and a positive integer multiplier. Hold zero and negative quantities with the original value and a specific reason visible to the reviewer. The order owner can classify the line as a keying error, cancellation, correction, credit adjustment, or return and send it to the appropriate workflow.

The same quantity can produce three picks

Take an illustrative order for 12 BX of mailing sleeves. The buyer’s agreed inner box contains 10 sleeves, while the warehouse shipping carton contains 40. The sales line calls for 12 boxes and the warehouse needs to account for 120 pieces. If each shipping carton contains four intact inner boxes and the buyer accepts that outer packaging, three sealed cartons can satisfy the line. A warehouse that stocks loose sleeves still needs the packing requirement alongside the piece count.

Figure 1 — Illustrative sleeve order. The each default yields 12 pieces, the agreed box of 10 yields 120, and the warehouse carton of 40 yields 480.

Defaulting to individual pieces leaves 108 sleeves short. Defaulting to cartons sends 360 extra. Both errors can survive a check that verifies only the product code and the copied order quantity.

Which evidence can catch a wrong unit?

Read the printed unit price as a separate field and compare it with the effective price for that customer, product, and sales unit. Compare on the same currency, pricing basis, and applicable discount tier. If the printed amount matches the agreed box price and differs from the per-piece and carton prices, it independently corroborates the box reading. A price that matches another unit warrants a hold even if the unit text is legible. If more than one unit has the same price, record that the price fails to distinguish them. A variance can also reflect a commercial disagreement, so leave the unit and price visible for the reviewer to resolve together.

When the buyer supplies a packaging-level identifier, such as a GS1 Global Trade Item Number read from a barcode or carried in the order, resolve it to the corresponding trade item in the catalogue. An inner box and a saleable shipping carton can have different identifiers. A match to the base product alone leaves the packaging level unresolved. Preserve leading zeroes and use the approved catalogue relationship to find the pack count.

Compare a separately supplied pack count and piece total to the agreement and calculation respectively. A correct piece total can conceal two errors that cancel out. In another illustrative order for 120 sleeves, six boxes of 20 and 12 boxes of 10 both satisfy the total. The pack count distinguishes those readings and the sales quantities would differ.

Figure 2 — Illustrative quantity check. Six boxes of 20 and 12 boxes of 10 both yield 120 pieces, so the piece total alone cannot confirm the number or size of the boxes.

Record a missing check as unavailable and apply the order owner’s rules for which buyers and items may proceed with that evidence missing. Hold a line if a supplied check is unreadable or contradicts the agreement. A total generated by the workflow from its own extraction verifies the arithmetic. Only a separately supplied value can serve as a second reading of what the buyer requested.

The release decision belongs to the order

Give reviewers the source line, the applied terms, the proposed piece count, and the reason for the hold. Preserve the original reading when staff correct a draft, and run the corrected fields through the same checks. Record a buyer-authorized exception against that order with its supporting evidence. Put a standing pack change in the agreement table with its own effective period so the exception does not become the next order’s default.

Before enabling automatic release, trace a sample from the buyer’s document to the sales line and the pick instruction. For the illustrative sleeve order, confirm the sales screen retains 12 boxes, inventory accounts for 120 sleeves, and the picking instructions preserve the inner-box requirement. This matters especially when a connector exposes a quantity field without a unit. Entering a piece count into a field the destination treats as boxes would apply the multiplier again. Run an order with a conflicting count through the same path and confirm the hold prevents a pick.

Decide whether a validated line can post on its own. When a buyer requires a complete shipment, keep the whole order in draft while any line remains unresolved. Where partial fulfillment is agreed, track which lines have posted and which remain open. If the connector supports an idempotency key, use a stable key for the order revision and line so a retry can refer to the same posting. If the request times out and the connector provides no such guarantee, reconcile against the destination before sending it again. A second submission can turn a correctly converted line into two picks.

A line is ready to pick when the buyer’s unit, the stock quantity, and the required packing agree. Whether that line can leave the draft on its own depends on the buyer’s fulfillment terms.