diff --git a/src/components/JobCard.tsx b/src/components/JobCard.tsx index 06d0bf0..ecd2ac9 100644 --- a/src/components/JobCard.tsx +++ b/src/components/JobCard.tsx @@ -190,16 +190,24 @@ const JobCard: React.FC = ({ job, onEdit, onDelete }) => { )}
-
Profit
+
+ Profit +
= 0 ? 'text-green-400' : 'text-red-400'}`}> {formatISK(profit)} + = 0 ? 'default' : 'destructive'} className="ml-1 text-xs"> + {margin.toFixed(1)}% +
- = 0 ? 'default' : 'destructive'} className="text-xs"> - {margin.toFixed(1)}% - {job.projectedRevenue > 0 && job.projectedCost > 0 && ( -
+
vs Projected: {formatISK(job.projectedRevenue - job.projectedCost)} + = (job.projectedRevenue - job.projectedCost) ? 'default' : 'destructive'} + className="ml-1 text-xs" + > + {((profit / (job.projectedRevenue - job.projectedCost)) * 100).toFixed(1)}% +
)}