This commit is contained in:
2021-08-17 19:52:03 +00:00
parent 1171375191
commit 8bb1774b94

View File

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