---
title: "Discussion on \"Reject incomplete supplier quotes before calculating landed cost\" | Hashnode"
description: "Discussion on \"Reject incomplete supplier quotes before calculating landed cost\". A small JavaScript validator keeps missing supplier-quote assumptions visible before landed-cost comparison."
url: "https://hashnode.com/posts/reject-incomplete-supplier-quotes-before-calculating-landed-cost/6afd1459f8ba0c0a178a04ec"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Reject incomplete supplier quotes before calculating landed cost](https://ioneremia-workflows.hashnode.dev/reject-incomplete-supplier-quotes-before-calculating-landed-cost?utm_source=hashnode&utm_medium=feed)

A small JavaScript validator keeps missing supplier-quote assumptions visible before landed-cost comparison.

Nov 18 · 2 min read · ioneremia-workflows.hashnode.dev  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#data-validation](https://hashnode.com/tag/data-validation)
-   [#supply-chain](https://hashnode.com/tag/supply-chain)
-   [#procurement](https://hashnode.com/tag/procurement)

## Written by

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

@ioneremiadev

  
[View profile](https://hashnode.com/@ioneremiadev)

WordPress, CRM data cleanup and documented workflow automation.

Founder of Prime Group. I work on WordPress, CRM data cleanup and documented n8n/API workflows. Portfolio examples are technical demonstrations using synthetic data.

## Responses 2

Markdown supported · ⌘↵ to post

[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.
