This commit is contained in:
2020-06-18 17:46:00 +00:00
parent 04d5fd47b7
commit d84317e5c5
3 changed files with 7 additions and 2 deletions

View File

@@ -164,7 +164,7 @@ app.customerSiteEdit = (function () {
if (stateMap.id != "new") {
app.nav.contextAddLink("purchases/" + stateMap.id, "Purchases", "basket");
app.nav.contextAddLink("ravLicenses/" + stateMap.id, "Licenses", "ticket");//from here to new license
app.nav.contextAddLink("ravLicenses/" + stateMap.id +"/"+ stateMap.context.params.cust_id, "Licenses", "ticket");//from here to new license
}
};

View File

@@ -78,6 +78,11 @@ app.ravLicenses = (function () {
app.nav.contextClear(); ///ravLicense/122
app.nav.contextAddLink("ravLicense/" + stateMap.id, "New", "plus");
app.nav.contextAddLink(
"customerSiteEdit/" + stateMap.id + "/" + stateMap.context.params.cust_id,
"Site",
"city"
);
};
//PUBLIC METHODS

View File

@@ -240,7 +240,7 @@ app.shell = (function () {
page('/ops', ops);
page('/trials', trials);
page('/trialEdit/:id', trialEdit);
page('/ravLicenses/:id', ravLicenses);
page('/ravLicenses/:id/:cust_id', ravLicenses);
page('/ravLicense/:id', ravLicense);
page('*', notFound);
page({