ARMS Data Update
This commit is contained in:
@@ -158,11 +158,17 @@ query ENTEGRAL_EXPORT($bodyshopid: uuid!, $start: timestamptz!, $end: timestampt
|
|||||||
|
|
||||||
foreach (dynamic job in data.jobs)
|
foreach (dynamic job in data.jobs)
|
||||||
{
|
{
|
||||||
|
logger.Debug(job.ro_number);
|
||||||
|
if (job.ro_number == "41040")
|
||||||
|
{
|
||||||
|
logger.Debug("the job.");
|
||||||
|
}
|
||||||
|
|
||||||
var RoNumber = string.Join("", Regex.Matches((string)(job.ro_number?.Value), @"\d").OfType<Match>().Select(m => m.Value));
|
var RoNumber = string.Join("", Regex.Matches((string)(job.ro_number?.Value), @"\d").OfType<Match>().Select(m => m.Value));
|
||||||
logger.Debug(RoNumber);
|
var VehicleYr = string.Join("", Regex.Matches((string)(job.v_model_yr?.Value ?? ""), @"\d").OfType<Match>().Select(m => m.Value));
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
RepairOrders.Add(new ARMSRoDataModel()
|
RepairOrders.Add(new ARMSRoDataModel()
|
||||||
{
|
{
|
||||||
ShopShortName = data.bodyshops_by_pk.entegral_id?.Value,
|
ShopShortName = data.bodyshops_by_pk.entegral_id?.Value,
|
||||||
@@ -181,7 +187,7 @@ query ENTEGRAL_EXPORT($bodyshopid: uuid!, $start: timestamptz!, $end: timestampt
|
|||||||
CustomerPhone1 = job.ownr_ph1?.Value,
|
CustomerPhone1 = job.ownr_ph1?.Value,
|
||||||
CustomerPhone2 = job.ownr_ph2?.Value,
|
CustomerPhone2 = job.ownr_ph2?.Value,
|
||||||
//RetWhslCustomer = "R",
|
//RetWhslCustomer = "R",
|
||||||
Year = int.Parse(job.v_model_yr?.Value ?? 0), //TODO STRIP TO 2 NUMBERS
|
Year = VehicleYr != "" ? int.Parse(VehicleYr) : 0, //TODO STRIP TO 2 NUMBERS
|
||||||
Make = job.v_make_desc?.Value,
|
Make = job.v_make_desc?.Value,
|
||||||
Model = job.v_model_desc?.Value,
|
Model = job.v_model_desc?.Value,
|
||||||
VIN = job.v_vin?.Value,
|
VIN = job.v_vin?.Value,
|
||||||
|
|||||||
Reference in New Issue
Block a user