Show "contact notes" when creating new custorder

This commit is contained in:
Lance Edgar 2021-10-03 19:26:25 -04:00
parent 272b0fd071
commit 711e526822
2 changed files with 138 additions and 121 deletions

View file

@ -256,6 +256,7 @@ class CustomerOrderView(MasterView):
'normalized_batch': self.normalize_batch(batch),
'new_order_requires_customer': self.handler.new_order_requires_customer(),
'contact_profile_url': None,
'contact_notes': self.handler.get_contact_notes(batch),
'order_items': items,
'product_autocomplete_url': self.request.route_url(product_autocomplete)}
@ -391,6 +392,7 @@ class CustomerOrderView(MasterView):
'person_uuid': batch.person_uuid,
'phone_number': batch.phone_number,
'email_address': batch.email_address,
'contact_notes': self.handler.get_contact_notes(batch),
}
# maybe add profile URL
@ -411,6 +413,7 @@ class CustomerOrderView(MasterView):
'phone_number': batch.phone_number,
'email_address': batch.email_address,
'contact_profile_url': None,
'contact_notes': self.handler.get_contact_notes(batch),
}
return context