diff --git a/frontend/src/pages/Monthly.tsx b/frontend/src/pages/Monthly.tsx index e6b7d64..7961458 100644 --- a/frontend/src/pages/Monthly.tsx +++ b/frontend/src/pages/Monthly.tsx @@ -226,6 +226,9 @@ export default function Monthly() {
% Net Sales
{pctSales != null ? `${pctSales.toFixed(1)}%` : '—'}
+ {pyWages != null && pySales > 0 && ( +
{isCurrentMonth ? 'PY MTD' : 'PY'} {((pyWages / pySales) * 100).toFixed(1)}%
+ )}
diff --git a/frontend/src/pages/Weekly.tsx b/frontend/src/pages/Weekly.tsx index 0ba1211..789867c 100644 --- a/frontend/src/pages/Weekly.tsx +++ b/frontend/src/pages/Weekly.tsx @@ -187,6 +187,9 @@ export default function Weekly() {
% of Net Sales
{pctSales != null ? `${pctSales.toFixed(1)}%` : '—'}
+ {pyWages != null && pySales > 0 && ( +
{isCurrentWeek ? 'PY WTD' : 'PY'} {((pyWages / pySales) * 100).toFixed(1)}%
+ )}