Add NMR option to route notes

This commit is contained in:
Skylar Ittner 2020-03-18 15:52:49 -06:00
parent 6eb2e028e0
commit d702653adf
3 changed files with 12 additions and 5 deletions

View File

@ -578,7 +578,7 @@ function addPackageByAddress(number, unit, street, citystate, zip, type, callbac
prelookup();
} else {
app.dialog.confirm(
"A route note says this address is " + deliverable.reason + ". Add item anyways?",
"A route note says this address " + deliverable.reason + ". Add item anyways?",
"Confirm",
function () {
prelookup();

View File

@ -56,7 +56,7 @@
{{#if notes}}
<p>{{newlinestobr notes}}</p>
{{/if}}
<div>
<div class="margin-vertical-half">
<ul>
{{#each toggles}}
{{#if this}}

View File

@ -322,21 +322,28 @@ var SETTINGS = {
name: "Vacant",
id: "vacant",
preventsDelivery: true,
reason: "vacant",
reason: "is vacant",
icon: "far fa-circle"
},
{
name: "No Mail Receptacle",
id: "nmr",
preventsDelivery: true,
reason: "has no mailbox",
icon: "far fa-times-circle"
},
{
name: "Outside delivery radius",
id: "undeliverable",
preventsDelivery: true,
reason: "too far from the route",
reason: "is too far from the route",
icon: "fas fa-route"
},
{
name: "On hold",
id: "hold",
preventsDelivery: true,
reason: "on hold",
reason: "is on hold",
icon: "fas fa-pause-circle"
}
],