Changes
Co-authored-by: renee-png <262607627+renee-png@users.noreply.github.com>
This commit is contained in:
co-authored by
renee-png
parent
886af00339
commit
1d2ee77c51
@@ -517,6 +517,19 @@ function InvoiceDetail() {
|
||||
</div>
|
||||
<div className="flex items-center gap-2">
|
||||
<span className="tabular-nums font-medium">{formatCurrency(p.amount)}</span>
|
||||
{canEdit && p.method !== "trust" && (
|
||||
<PushPaymentToTrustButton
|
||||
payment={p}
|
||||
invoice={{
|
||||
id: invoice.id,
|
||||
invoice_number: invoice.invoice_number,
|
||||
client_id: invoice.client?.id ?? invoice.client_id,
|
||||
case_id: invoice.case_id ?? null,
|
||||
}}
|
||||
userId={user?.id ?? null}
|
||||
onPushed={load}
|
||||
/>
|
||||
)}
|
||||
{canEdit && (
|
||||
<Button variant="ghost" size="icon" className="h-6 w-6 text-muted-foreground hover:text-destructive"
|
||||
onClick={async () => {
|
||||
|
||||
Reference in New Issue
Block a user