Fix contact phones data when new contact is assigned

This commit is contained in:
Lance Edgar 2021-10-04 12:29:27 -04:00
parent 1884edb334
commit d4aef9ceac
2 changed files with 3 additions and 1 deletions

View file

@ -857,6 +857,7 @@
that.orderPhoneNumber = response.data.phone_number
that.orderEmailAddress = response.data.email_address
that.contactProfileURL = response.data.contact_profile_url
that.contactPhones = response.data.contact_phones
that.contactNotes = response.data.contact_notes
})
},
@ -871,7 +872,7 @@
break
}
}
this.otherPhoneNumber = this.existingPhoneUUID ? this.orderPhoneNumber : null
this.otherPhoneNumber = this.existingPhoneUUID ? null : this.orderPhoneNumber
this.editPhoneNumberShowDialog = true
},

View file

@ -393,6 +393,7 @@ class CustomerOrderView(MasterView):
'person_uuid': batch.person_uuid,
'phone_number': batch.phone_number,
'email_address': batch.email_address,
'contact_phones': self.handler.get_contact_phones(batch),
'contact_notes': self.handler.get_contact_notes(batch),
}