mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-24 15:39:20 +00:00
test: over ordering of quotation items
(cherry picked from commit 53e58f6678)
This commit is contained in:
@@ -885,6 +885,16 @@ class TestQuotation(FrappeTestCase):
|
|||||||
f"Expected conversion rate {expected_rate}, got {quotation.conversion_rate}",
|
f"Expected conversion rate {expected_rate}, got {quotation.conversion_rate}",
|
||||||
)
|
)
|
||||||
|
|
||||||
|
def test_over_order_limit(self):
|
||||||
|
quotation = make_quotation(qty=5)
|
||||||
|
so1 = make_sales_order(quotation.name)
|
||||||
|
so2 = make_sales_order(quotation.name)
|
||||||
|
so1.delivery_date = nowdate()
|
||||||
|
so2.delivery_date = nowdate()
|
||||||
|
|
||||||
|
so1.submit()
|
||||||
|
self.assertRaises(frappe.ValidationError, so2.submit)
|
||||||
|
|
||||||
|
|
||||||
test_records = frappe.get_test_records("Quotation")
|
test_records = frappe.get_test_records("Quotation")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user