import React from 'react' import { formatUTCToLocalTime } from '../../utils/dateUtils' import { formatFigure } from '../../utils/appUtils' import Avatar from '../common/Avatar' const PaymentHistoryTable = ({data}) => { return (
{data?.receivedInvoicePayments?.length > 0 ? (
{data.receivedInvoicePayments.map((payment, index) => ( ))}
Sr.No Transaction ID Received Date Payment Adjustment-Head Amount Updated By
{index + 1} {payment.transactionId} {formatUTCToLocalTime(payment.paymentReceivedDate)} {payment?.paymentAdjustmentHead?.name ?? "--"} {formatFigure(payment.amount, { type: "currency", currency: "INR", })}
{payment.createdBy?.firstName}{" "} {payment.createdBy?.lastName}
):(

No History

)}
) } export default PaymentHistoryTable