Skip to content

Comments

fix: prevent creating quote without products#2442

Open
bhavesh-018 wants to merge 7 commits intokrayin:2.1from
bhavesh-018:fix/quotes-require-product
Open

fix: prevent creating quote without products#2442
bhavesh-018 wants to merge 7 commits intokrayin:2.1from
bhavesh-018:fix/quotes-require-product

Conversation

@bhavesh-018
Copy link

@bhavesh-018 bhavesh-018 commented Feb 2, 2026

Issue Reference

Fix #2139

Description

This pull request prevents creating a quote without selecting any products.
It adds validation to ensure at least one product is present before a quote can be saved, avoiding incomplete or incorrect quotes.

How To Test This?

  1. Go to Admin Panel → Quotes → Create Quote.
  2. Fill in the required quote details without adding any products.
  3. Click Save.
  4. Verify that the quote is not created and an error is shown.
  5. Add at least one product and save again.
  6. Verify that the quote is created successfully.

Documentation

  • My pull request requires an update on the documentation repository.

Branch Selection

  • Target Branch: master

Tailwind Reordering

  • All Tailwind classes are reordered.

@sagarkumar-webkul
Copy link
Collaborator

@bhavesh-018, thanks for your contribution. I’ve tested this, and the issue is resolved.

The code is currently under review.

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Quote Can Be Created Without Selecting a Product

3 participants