1 /*jshint indent:2, curly:true, eqeqeq:true, immed:true, latedef:true,
2 newcap:true, noarg:true, regexp:true, undef:true, strict:true, trailing:true,
4 /*global XV:true, XT:true, _:true, console:true, XM:true, Backbone:true, require:true, assert:true,
5 setTimeout:true, before:true, clearTimeout:true, exports:true, it:true, describe:true, beforeEach:true */
13 @property {String} number
14 @property {String} name
17 recordType: "XM.Shift",
18 collectionType: "XM.ShiftCollection",
19 listKind: "XV.ShiftList",
20 instanceOf: "XM.Document",
24 @description Shifts are lockable.
27 attributes: ["id", "name", "number"],
28 requiredAttributes: ["name", "number"],
32 @description Used in the Time & Expense modules
34 extensions: ["time_expense"],
38 @description Shifts can be read by all users and can be created, updated,
39 or deleted by users with the "MaintainShifts" privilege.
42 createUpdateDelete: true,
46 name: "First" + Math.random(),
47 number: "FIRST" + Math.random()
50 name: "Second" + Math.random()