This commit is contained in:
@@ -3293,7 +3293,7 @@ namespace AyaNova.PlugIn.V8
|
|||||||
if (!progress.KeepGoing) return;
|
if (!progress.KeepGoing) return;
|
||||||
progress.SubOp("Creating Quote Status types");
|
progress.SubOp("Creating Quote Status types");
|
||||||
//InProgress 1:
|
//InProgress 1:
|
||||||
await util.PostAsync("work-order-status", @"{""name"": ""In progress"",
|
await util.PostAsync("quote-status", @"{""name"": ""In progress"",
|
||||||
""active"": true,
|
""active"": true,
|
||||||
""notes"": ""In process of completing this quote"",
|
""notes"": ""In process of completing this quote"",
|
||||||
""color"": ""#00ff00"",
|
""color"": ""#00ff00"",
|
||||||
@@ -3303,7 +3303,7 @@ namespace AyaNova.PlugIn.V8
|
|||||||
""locked"": false}");
|
""locked"": false}");
|
||||||
|
|
||||||
//Submitted 2:
|
//Submitted 2:
|
||||||
await util.PostAsync("work-order-status", @"{""name"": ""Submitted"",
|
await util.PostAsync("quote-status", @"{""name"": ""Submitted"",
|
||||||
""active"": true,
|
""active"": true,
|
||||||
""notes"": ""Use to lock quote after given to customer and wait for approval"",
|
""notes"": ""Use to lock quote after given to customer and wait for approval"",
|
||||||
""color"": ""#c00000"",
|
""color"": ""#c00000"",
|
||||||
@@ -3313,7 +3313,7 @@ namespace AyaNova.PlugIn.V8
|
|||||||
""locked"": true}");
|
""locked"": true}");
|
||||||
|
|
||||||
//Awarded 3:
|
//Awarded 3:
|
||||||
await util.PostAsync("work-order-status", @"{""name"": ""Awarded"",
|
await util.PostAsync("quote-status", @"{""name"": ""Awarded"",
|
||||||
""active"": true,
|
""active"": true,
|
||||||
""notes"": ""Waiting for work order to be generated"",
|
""notes"": ""Waiting for work order to be generated"",
|
||||||
""color"": ""#80ffff"",
|
""color"": ""#80ffff"",
|
||||||
@@ -3323,7 +3323,7 @@ namespace AyaNova.PlugIn.V8
|
|||||||
""locked"": true}");
|
""locked"": true}");
|
||||||
|
|
||||||
//NotAwarded 4:
|
//NotAwarded 4:
|
||||||
await util.PostAsync("work-order-status", @"{""name"": ""Not awarded"",
|
await util.PostAsync("quote-status", @"{""name"": ""Not awarded"",
|
||||||
""active"": true,
|
""active"": true,
|
||||||
""notes"": ""Not successful"",
|
""notes"": ""Not successful"",
|
||||||
""color"": ""#f2f2f2"",
|
""color"": ""#f2f2f2"",
|
||||||
@@ -3333,7 +3333,7 @@ namespace AyaNova.PlugIn.V8
|
|||||||
""locked"": true}");
|
""locked"": true}");
|
||||||
|
|
||||||
//New 5:
|
//New 5:
|
||||||
await util.PostAsync("work-order-status", @"{""name"": ""New"",
|
await util.PostAsync("quote-status", @"{""name"": ""New"",
|
||||||
""active"": true,
|
""active"": true,
|
||||||
""notes"": ""New quote required; Sales to complete this Quote for submission"",
|
""notes"": ""New quote required; Sales to complete this Quote for submission"",
|
||||||
""color"": ""#8080ff"",
|
""color"": ""#8080ff"",
|
||||||
@@ -3344,7 +3344,7 @@ namespace AyaNova.PlugIn.V8
|
|||||||
|
|
||||||
|
|
||||||
//NotAwarded2 6:
|
//NotAwarded2 6:
|
||||||
await util.PostAsync("work-order-status", @"{""name"": ""Beyond economical repair"",
|
await util.PostAsync("quote-status", @"{""name"": ""Beyond economical repair"",
|
||||||
""active"": true,
|
""active"": true,
|
||||||
""notes"": ""Not worth repairing"",
|
""notes"": ""Not worth repairing"",
|
||||||
""color"": ""#ff0000"",
|
""color"": ""#ff0000"",
|
||||||
@@ -3463,7 +3463,7 @@ namespace AyaNova.PlugIn.V8
|
|||||||
//if closed then set that state as well but always first set the current state
|
//if closed then set that state as well but always first set the current state
|
||||||
{
|
{
|
||||||
progress.SubOp("STATE");
|
progress.SubOp("STATE");
|
||||||
if (c.WorkorderService.WorkorderStatusID != Guid.Empty)
|
if (c.WorkorderQuote.QuoteStatus != WorkorderQuoteStatusTypes.NotSet)
|
||||||
{
|
{
|
||||||
dynamic state = new JObject();
|
dynamic state = new JObject();
|
||||||
state.quoteId = RavenId;
|
state.quoteId = RavenId;
|
||||||
|
|||||||
Reference in New Issue
Block a user