feat(notification): added cycle count check
This commit is contained in:
@@ -152,6 +152,18 @@ export const note: any = [
|
||||
errorCount: 10, // change this to something else or leave blank to use the av type
|
||||
},
|
||||
},
|
||||
{
|
||||
name: "cycleCountCheck",
|
||||
description:
|
||||
"Checks if a cycle count has been active for longer than the defined time.",
|
||||
checkInterval: 60,
|
||||
timeType: "min",
|
||||
emails: "",
|
||||
active: false,
|
||||
notifiySettings: {
|
||||
errorCount: 10, // change this to something else or leave blank to use the av type
|
||||
},
|
||||
},
|
||||
];
|
||||
|
||||
export const notificationCreate = async () => {
|
||||
|
||||
@@ -0,0 +1,44 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
{{!-- <link rel="stylesheet" href="styles/styles.css" /> --}}
|
||||
{{> styles}}
|
||||
</head>
|
||||
<body>
|
||||
<p>All,</p>
|
||||
<p>The below are cycle counts that have been in progress for longer than {{checkTime}} min(s). </p>
|
||||
<table >
|
||||
<thead>
|
||||
<tr>
|
||||
<th>WarehouseID</th>
|
||||
<th>Warehouse</th>
|
||||
<th>LocationID</th>
|
||||
<th>Location</th>
|
||||
<th>Cycle count Started</th>
|
||||
<th>Started by</th>
|
||||
{{!-- <th>Downtime finish</th> --}}
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{{#each items}}
|
||||
<tr>
|
||||
<td>{{idWarehouse}}</td>
|
||||
<td>{{warehouse}}</td>
|
||||
<td>{{locationId}}</td>
|
||||
<td>{{location}}</td>
|
||||
<td>{{cycleCountStartAt}}</td>
|
||||
<td>{{blockedBy}}</td>
|
||||
{{!-- <td>{{dtEnd}}</td> --}}
|
||||
</tr>
|
||||
{{/each}}
|
||||
</tbody>
|
||||
</table>
|
||||
<div>
|
||||
<p>Thank you,</p>
|
||||
<p>LST Team</p>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user