From 8bb1774b946fa043d77db6e9c8b7aab6b2416f75 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Tue, 17 Aug 2021 19:52:03 +0000 Subject: [PATCH] --- source/Plugins/AyaNova.Plugin.V8/V8.cs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/source/Plugins/AyaNova.Plugin.V8/V8.cs b/source/Plugins/AyaNova.Plugin.V8/V8.cs index c1434f4..ae00f33 100644 --- a/source/Plugins/AyaNova.Plugin.V8/V8.cs +++ b/source/Plugins/AyaNova.Plugin.V8/V8.cs @@ -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;