oidfj
This commit is contained in:
@@ -75,7 +75,7 @@ router.get('/plans', async (req, res, next) => {
|
|||||||
ue.custom_name as equipment_name, et.name as equipment_type,
|
ue.custom_name as equipment_name, et.name as equipment_type,
|
||||||
COUNT(app.id) as product_count,
|
COUNT(app.id) as product_count,
|
||||||
SUM(app.calculated_product_amount) as total_product_amount,
|
SUM(app.calculated_product_amount) as total_product_amount,
|
||||||
SUM(app.calculated_water_amount) as total_water_amount,
|
MAX(app.calculated_water_amount) as total_water_amount,
|
||||||
AVG(app.target_speed_mph) as avg_speed_mph
|
AVG(app.target_speed_mph) as avg_speed_mph
|
||||||
FROM application_plans ap
|
FROM application_plans ap
|
||||||
JOIN lawn_sections ls ON ap.lawn_section_id = ls.id
|
JOIN lawn_sections ls ON ap.lawn_section_id = ls.id
|
||||||
|
|||||||
@@ -319,6 +319,9 @@ const Applications = () => {
|
|||||||
{application.avgSpeedMph > 0 && (
|
{application.avgSpeedMph > 0 && (
|
||||||
<p>• Target Speed: {application.avgSpeedMph.toFixed(1)} mph</p>
|
<p>• Target Speed: {application.avgSpeedMph.toFixed(1)} mph</p>
|
||||||
)}
|
)}
|
||||||
|
{application.spreaderSetting && (
|
||||||
|
<p>• Spreader Setting: {application.spreaderSetting}</p>
|
||||||
|
)}
|
||||||
</>
|
</>
|
||||||
) : (
|
) : (
|
||||||
<>
|
<>
|
||||||
|
|||||||
Reference in New Issue
Block a user