Payments
-
0.005 ? "text-[#D1495B]" : "text-[#00798C]"}`}>
+
0.005 ? "text-[#D1495B] dark:text-[#D94F60]" : "text-[#00798C] dark:text-[#00A6BE]"}`}>
{r.owingToDate > 0.005 ? `${ZAR2(r.owingToDate)} still owing to date` : r.owingToDate < -0.005 ? `${ZAR2(-r.owingToDate)} paid ahead` : "Settled to date"}
@@ -243,7 +248,7 @@ export function Suppliers2View({
{p.po_no}
{p.invoiceCount === 0 ? "no invoice yet" : p.status === "over"
- ? {ZAR2(p.invoiced)} invoiced — {ZAR2(p.invoiced - p.total)} OVER the PO
+ ? {ZAR2(p.invoiced)} invoiced — {ZAR2(p.invoiced - p.total)} OVER the PO
: `${ZAR2(p.invoiced)} of ${ZAR2(p.total)} invoiced`}
{p.dueMonth && ` · pay ${monthLabel(p.dueMonth)}`}
@@ -272,11 +277,11 @@ function MonthPayLine({ due, paid, past }: { due: number; paid: number; past: bo
return (
{due > 0 &&
due {ZAR(due)}
}
- {paid > 0 &&
paid {ZAR(paid)}
}
+ {paid > 0 &&
paid {ZAR(paid)}
}
{past && Math.abs(diff) > 0.005 && (
diff > 0
- ?
+{ZAR(diff)} surplus
- :
{ZAR(-diff)} short
+ ?
+{ZAR(diff)} surplus
+ :
{ZAR(-diff)} short
)}
);
@@ -298,7 +303,7 @@ function PaymentRow({ p, editMode }: { p: { id: string; paid_on: string; descrip
{p.paid_on}
{p.description || "—"}
- {ZAR2(p.amount)}
+ {ZAR2(p.amount)}
{editMode && (