Resolve PPG Paint Scale Output issues.

This commit is contained in:
Patrick Fic
2022-04-18 15:35:32 -07:00
parent 93ae4b5ed1
commit 1a1cc67402
3 changed files with 7 additions and 5 deletions

View File

@@ -112,7 +112,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),
@@ -128,11 +128,11 @@ v_paint_codes
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}"),
new XElement("PaintMaterialsRevenue", ((float)(job.job_totals?.Value != null ? job.job_totals?.rates?.mapa?.total?.amount?.Value : 0)) / 100),
new XElement("PaintMaterialsRevenue", ((float)(job.job_totals != null ? job.job_totals?.rates?.mapa?.total?.amount?.Value : 0)) / 100),
new XElement("PaintMaterialsRate", job.rate_mapa?.Value),
new XElement("BodyHours", job.labhrs?.aggregate.sum?.mod_lb_hrs?.Value),
new XElement("BodyLaborRate", job.rate_lab?.Value),
new XElement("TotalCostOfRepairs", ((float)(job.job_totals?.Value != null ? job.job_totals?.totals?.subtotal?.amount?.Value : 0)) / 100)
new XElement("TotalCostOfRepairs", ((float)(job.job_totals != null ? job.job_totals?.totals?.subtotal?.amount?.Value : 0)) / 100)
));