2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-04-28 11:36:44 +00:00

fix contact copy, add email/phone if they exist (#9354)

This commit is contained in:
Jacob Felknor 2025-03-24 04:19:04 -06:00 committed by GitHub
parent 136e179cc4
commit f5e6352181
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 54 additions and 12 deletions

View File

@ -207,15 +207,29 @@ export default function PurchaseOrderDetail() {
hidden: !order.link hidden: !order.link
}, },
{ {
type: 'link', type: 'text',
model: ModelType.contact, name: 'contact_detail.name',
link: false,
name: 'contact',
label: t`Contact`, label: t`Contact`,
icon: 'user', icon: 'user',
copy: true, copy: true,
hidden: !order.contact hidden: !order.contact
}, },
{
type: 'text',
name: 'contact_detail.email',
label: t`Contact Email`,
icon: 'email',
copy: true,
hidden: !order.contact_detail?.email
},
{
type: 'text',
name: 'contact_detail.phone',
label: t`Contact Phone`,
icon: 'phone',
copy: true,
hidden: !order.contact_detail?.phone
},
{ {
type: 'text', type: 'text',
name: 'project_code_label', name: 'project_code_label',

View File

@ -171,15 +171,29 @@ export default function ReturnOrderDetail() {
hidden: !order.link hidden: !order.link
}, },
{ {
type: 'link', type: 'text',
model: ModelType.contact, name: 'contact_detail.name',
link: false,
name: 'contact',
label: t`Contact`, label: t`Contact`,
icon: 'user', icon: 'user',
copy: true, copy: true,
hidden: !order.contact hidden: !order.contact
}, },
{
type: 'text',
name: 'contact_detail.email',
label: t`Contact Email`,
icon: 'email',
copy: true,
hidden: !order.contact_detail?.email
},
{
type: 'text',
name: 'contact_detail.phone',
label: t`Contact Phone`,
icon: 'phone',
copy: true,
hidden: !order.contact_detail?.phone
},
{ {
type: 'text', type: 'text',
name: 'project_code_label', name: 'project_code_label',

View File

@ -183,15 +183,29 @@ export default function SalesOrderDetail() {
hidden: !order.link hidden: !order.link
}, },
{ {
type: 'link', type: 'text',
model: ModelType.contact, name: 'contact_detail.name',
link: false,
name: 'contact',
label: t`Contact`, label: t`Contact`,
icon: 'user', icon: 'user',
copy: true, copy: true,
hidden: !order.contact hidden: !order.contact
}, },
{
type: 'text',
name: 'contact_detail.email',
label: t`Contact Email`,
icon: 'email',
copy: true,
hidden: !order.contact_detail?.email
},
{
type: 'text',
name: 'contact_detail.phone',
label: t`Contact Phone`,
icon: 'phone',
copy: true,
hidden: !order.contact_detail?.phone
},
{ {
type: 'text', type: 'text',
name: 'project_code_label', name: 'project_code_label',