add distribution column in a ticket
This commit is contained in:
parent
a8b371e1da
commit
8d43687829
|
|
@ -2542,7 +2542,8 @@ public class Controller : ControllerBase
|
|||
t.Id, t.Subject, t.Status, t.Priority, t.Category, t.SubCategory,
|
||||
t.InstallationId, t.CreatedAt, t.UpdatedAt,
|
||||
t.CustomSubCategory, t.CustomCategory,
|
||||
installationName = installation?.Name ?? (t.InstallationId.HasValue ? $"#{t.InstallationId}" : "No installation")
|
||||
installationName = installation?.Name ?? (t.InstallationId.HasValue ? $"#{t.InstallationId}" : "No installation"),
|
||||
distributionPartner = installation?.DistributionPartner ?? ""
|
||||
};
|
||||
});
|
||||
|
||||
|
|
|
|||
|
|
@ -167,6 +167,18 @@ function TicketList() {
|
|||
defaultMessage="Status"
|
||||
/>
|
||||
</TableCell>
|
||||
<TableCell>
|
||||
<FormattedMessage
|
||||
id="installation"
|
||||
defaultMessage="Installation"
|
||||
/>
|
||||
</TableCell>
|
||||
<TableCell>
|
||||
<FormattedMessage
|
||||
id="distributionPartner"
|
||||
defaultMessage="Distribution Partner"
|
||||
/>
|
||||
</TableCell>
|
||||
<TableCell>
|
||||
<FormattedMessage
|
||||
id="priority"
|
||||
|
|
@ -179,12 +191,6 @@ function TicketList() {
|
|||
defaultMessage="Category"
|
||||
/>
|
||||
</TableCell>
|
||||
<TableCell>
|
||||
<FormattedMessage
|
||||
id="installation"
|
||||
defaultMessage="Installation"
|
||||
/>
|
||||
</TableCell>
|
||||
<TableCell>
|
||||
<FormattedMessage
|
||||
id="createdAt"
|
||||
|
|
@ -213,6 +219,8 @@ function TicketList() {
|
|||
<TableCell>
|
||||
<StatusChip status={ticket.status} />
|
||||
</TableCell>
|
||||
<TableCell>{ticket.installationName}</TableCell>
|
||||
<TableCell>{ticket.distributionPartner}</TableCell>
|
||||
<TableCell>{intl.formatMessage(priorityKeys[ticket.priority] ?? { id: 'unknown', defaultMessage: '-' })}</TableCell>
|
||||
<TableCell>
|
||||
{ticket.customCategory
|
||||
|
|
@ -224,7 +232,6 @@ function TicketList() {
|
|||
? ` — ${ticket.customSubCategory}`
|
||||
: ''}
|
||||
</TableCell>
|
||||
<TableCell>{ticket.installationName}</TableCell>
|
||||
<TableCell>
|
||||
{new Date(ticket.createdAt).toLocaleDateString()}
|
||||
</TableCell>
|
||||
|
|
|
|||
|
|
@ -264,6 +264,7 @@ export type TicketSummary = {
|
|||
createdAt: string;
|
||||
updatedAt: string;
|
||||
installationName: string;
|
||||
distributionPartner: string;
|
||||
customSubCategory: string | null;
|
||||
customCategory: string | null;
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in New Issue