mirror of
https://github.com/frappe/erpnext.git
synced 2026-02-21 18:36:30 +00:00
fix: require email OR phone in shipment doctype not both (#47300)
(cherry picked from commit fc02a6510e)
Co-authored-by: Mihir Kandoi <kandoimihir@gmail.com>
This commit is contained in:
@@ -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", "");
|
||||
|
||||
Reference in New Issue
Block a user