fix: require email OR phone in shipment doctype not both (#47300)

This commit is contained in:
Mihir Kandoi
2025-04-29 16:24:51 +05:30
committed by GitHub
parent 7499c25a3c
commit fc02a6510e

View File

@@ -162,7 +162,7 @@ frappe.ui.form.on("Shipment", {
args: { contact: contact_name },
callback: function (r) {
if (r.message) {
if (!(r.message.contact_email && (r.message.contact_phone || r.message.contact_mobile))) {
if (!(r.message.contact_email || r.message.contact_phone || r.message.contact_mobile)) {
if (contact_type == "Delivery") {
frm.set_value("delivery_contact_name", "");
frm.set_value("delivery_contact", "");