This commit is contained in:
2021-07-28 23:29:41 +00:00
parent a6dc3bc35b
commit aef6cb30dd
4 changed files with 47 additions and 0 deletions

View File

@@ -735,6 +735,17 @@ export default {
});
cp.id = 0;
//PM Defaults copied from PM data object
cp.stopGeneratingDate = null;
cp.excludeDaysOfWeek = 96;
cp.active = true;
cp.nextServiceDate = this.obj.serviceDate;
cp.repeatUnit = 7;
cp.generateBeforeUnit = 4;
cp.repeatInterval = 1;
cp.generateBeforeInterval = 14;
cp.generateDate = null;
//Navigate to new record
this.$router.push({
name: "pm-edit",