---
title: "Comment by Dov at HireDov on \"Reject incomplete supplier quotes before calculating landed cost\" | Hashnode"
description: "Nice, compact validator. One practical addition: make validUntil do real work by comparing it with today's date, so an expired quote gets flagged as stale inste"
url: "https://hashnode.com/posts/reject-incomplete-supplier-quotes-before-calculating-landed-cost/6afd1459f8ba0c0a178a04ec/comment/6afdb5c0723ef7baefe046e7"
---

[Discussion](https://hashnode.com/posts/reject-incomplete-supplier-quotes-before-calculating-landed-cost/6afd1459f8ba0c0a178a04ec)

Comment [Reject incomplete supplier quotes before calculating landed cost](https://hashnode.com/posts/reject-incomplete-supplier-quotes-before-calculating-landed-cost/6afd1459f8ba0c0a178a04ec)

[Dov at HireDov](https://hashnode.com/@hiredov)

[Nov 18](https://hashnode.com/posts/reject-incomplete-supplier-quotes-before-calculating-landed-cost/6afd1459f8ba0c0a178a04ec/comment/6afdb5c0723ef7baefe046e7)

Nice, compact validator. One practical addition: make validUntil do real work by comparing it with today's date, so an expired quote gets flagged as stale instead of just present. I'd also return a per-field reason code (missing, expired, invalid) rather than a flat list, which lets a buyer turn the output straight into a follow-up message to the supplier. And if namedPlace is empty while the incoterm is something like FOB or DAP, that's worth its own warning, since the cost split changes completely. Have you thought about a check for quantity against the supplier's MOQ?

[Ion Eremia](https://hashnode.com/@ioneremiadev)

[Nov 22](https://hashnode.com/posts/reject-incomplete-supplier-quotes-before-calculating-landed-cost/6afd1459f8ba0c0a178a04ec/comment/6afdb5c0723ef7baefe046e7#reply-6b0233ea8ab61afab6deeb8b)

Yes—MOQ belongs as a separate commercial constraint, not just quantity validation. I would add `quotedQuantity`, `moq` and possibly `packMultiple`; a quote can be syntactically valid yet commercially unusable if `quotedQuantity < moq` or it is not divisible by the required pack multiple. I also agree on reason codes and Incoterm/named-place cross-field checks. A next version should return structured issues such as `{ field, code, severity, message }` so the follow-up questions remain auditable. Thanks for the concrete additions.
