Merge pull request #40176 from GursheenK/validating-po-in-so-ux

fix(minor): make warning for previously existing SO an alert
This commit is contained in:
Gursheen Kaur Anand 2024-02-29 11:32:44 +05:30 committed by GitHub
commit ac2b53bf15
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -251,7 +251,8 @@ class SalesOrder(SellingController):
frappe.msgprint(
_("Warning: Sales Order {0} already exists against Customer's Purchase Order {1}").format(
frappe.bold(so[0][0]), frappe.bold(self.po_no)
)
),
alert=True,
)
else:
frappe.throw(