IO-2130 Resolve paint code on PPG export.

This commit is contained in:
Patrick Fic
2022-12-15 17:01:21 -08:00
parent 5a894ffb5f
commit 521c7ecf96
3 changed files with 4 additions and 4 deletions

View File

@@ -33,7 +33,7 @@ namespace BodyshopPartner.Utils
if (args.Length == 1)
{
#if DEBUG
graphQlEndpoint = "https://db.development.bodyshop.app/v1/graphql";
graphQlEndpoint = "https://db.dev.bodyshop.app/v1/graphql";
RestClient = new RestClient("http://localhost:4000");
FirebaseAPIKey = "AIzaSyDPLT8GiDHDR1R4nI66Qi0BY1aYviDPioc";

View File

@@ -216,7 +216,7 @@ v_paint_codes
foreach (dynamic job in data.jobs)
{
logger.Debug($"{job.ro_number}");
doc.Element("PPG").Element("DataInterface").Element("ROData").Element("RepairOrders").Add(new XElement("RO",
new XElement("RONumber", job.ro_number?.Value),
@@ -228,7 +228,7 @@ v_paint_codes
new XElement("ModelYear", job.v_model_yr?.Value),
new XElement("MakeDesc", job.v_make_desc?.Value),
new XElement("ModelName", job.v_model_desc?.Value),
new XElement("OEMColorCode", job.vehicle?.Value != null ? job.vehicle?.v_paint_codes?.Value == null ? "" : job.vehicle?.v_paint_codes?.paint_cd1?.Value : ""),
new XElement("OEMColorCode", job.vehicle != null ? job.vehicle?.v_paint_codes == null ? "a" : job.vehicle?.v_paint_codes?.paint_cd1.Value : "b"),
new XElement("RefinishLaborHours", job.larhrs?.aggregate?.sum.mod_lb_hrs?.Value),
new XElement("InsuranceCompanyName", job.ins_co_nm?.Value),
new XElement("EstimatorName", $"{job.est_ct_ln}, {job.est_ct_fn}"),

View File

@@ -19,7 +19,7 @@ namespace BodyshopPartner.ViewModels
{
// Utils.OEConnection.SendToOEConnection();
await TestGql();
await Utils.PPGMixData.PushDataToPPG();
});
}
return _testCommand;