diff --git a/app/controllers/workorders.js b/app/controllers/workorders.js index 66c627b..e667fa3 100644 --- a/app/controllers/workorders.js +++ b/app/controllers/workorders.js @@ -76,7 +76,8 @@ module.exports = function(config, calendar) { status: req.body.status, scheduling: req.body.scheduling, techs: req.body.techs, - alternativeContact: req.body.alternativeContact + alternativeContact: req.body.alternativeContact, + trackingNumber: req.body.trackingNumber }); var notify = req.body._notify || ""; @@ -239,7 +240,7 @@ module.exports = function(config, calendar) { workorder.checkNumber = req.body.checkNumber; workorder.paidOn = req.body.paidOn; workorder.alternativeContact = req.body.alternativeContact; - + workorder.trackingNumber = req.body.trackingNumber; callback(err); }); }, diff --git a/app/model/workorder.js b/app/model/workorder.js index c7b967b..8615c74 100644 --- a/app/model/workorder.js +++ b/app/model/workorder.js @@ -29,7 +29,8 @@ var workorderSchema = new Schema({ invoicedOn: Date, checkNumber: String, paidOn: Date, - alternativeContact: String + alternativeContact: String, + trackingNumber: String }); module.exports = mongoose.model('Workorder', workorderSchema); diff --git a/public/js/controllers.js b/public/js/controllers.js index 74e658a..c63d301 100644 --- a/public/js/controllers.js +++ b/public/js/controllers.js @@ -1148,12 +1148,16 @@ angular.module('biomed') $scope.workorderType = 'pm'; } else if (search.workorderType == "meeting") { $scope.model.reason = "Meeting"; - $scope.workorderType = 'meeting'; $scope.model.status = 'n/a'; + $scope.workorderType = 'meeting'; if (search.clientId) { $scope.model.client = search.clientId; } + } else if (search.workorderType == 'shipment') { + $scope.model.reason = 'Shipment'; + $scope.model.status = 'scheduled'; + $scope.workorderType = 'shipment'; } else { if (search.clientId) { $scope.model.client = search.clientId; diff --git a/public/partials/schedule/index.html b/public/partials/schedule/index.html index 6935fd5..ffb73b3 100644 --- a/public/partials/schedule/index.html +++ b/public/partials/schedule/index.html @@ -10,10 +10,11 @@
Work Order Meeting + Shipment
- Group: -
- diff --git a/public/partials/workorders/add.html b/public/partials/workorders/add.html index 9107beb..0343ede 100644 --- a/public/partials/workorders/add.html +++ b/public/partials/workorders/add.html @@ -1,12 +1,14 @@
-

New Workorder

+

New Workorder

New Meeting

+

New Shipment

@@ -39,13 +41,13 @@
{{currentClient.notes['tech']}}
-
+
-
+
@@ -62,7 +64,7 @@
- @@ -77,6 +79,7 @@ +
@@ -113,7 +116,7 @@
-
+
@@ -296,11 +299,30 @@
+
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+
+
- +
diff --git a/public/partials/workorders/edit.html b/public/partials/workorders/edit.html index 5dfca4e..e5a083f 100644 --- a/public/partials/workorders/edit.html +++ b/public/partials/workorders/edit.html @@ -21,7 +21,7 @@
-
+
@@ -63,7 +63,7 @@
- @@ -78,6 +78,7 @@ +
@@ -114,13 +115,13 @@
- +
-
+
@@ -313,6 +314,35 @@
+
+ +
+
+ Shipped {{master.scheduling.start | date }}
+ Tracking Number: {{master.trackingNumber}}
+ Edit +
+
+
+ +
+ +
+
+
+ +
+ +
+
+ +
+ + +
+
+
+
@@ -336,7 +366,7 @@
- +
@@ -345,7 +375,11 @@
- +
diff --git a/public/partials/workorders/index.html b/public/partials/workorders/index.html index bbced8d..dd6a048 100644 --- a/public/partials/workorders/index.html +++ b/public/partials/workorders/index.html @@ -40,8 +40,13 @@ #{{workorder.biomedId}} - {{workorder.reason}}
- Techs: {{ workorder.techs | techs }}
- {{workorder.remarks}} + + Techs: {{ workorder.techs | techs }}
+ {{workorder.remarks}} +
+ + Tracking Number: {{workorder.trackingNumber}} + {{workorder.client.name}} ({{workorder.client.identifier}}) {{workorder.scheduling.start | date}}