fix: display monetary value
parent
8222eb4b50
commit
69a93b1041
|
@ -497,20 +497,22 @@ export default function TranscriptionTable() {
|
|||
<TableCell>{(item as HitTranscriptionData).total_billsec || "-"}</TableCell>
|
||||
<TableCell>{(item as HitTranscriptionData).total_min || "-"}</TableCell>
|
||||
<TableCell>
|
||||
{(item as HitTranscriptionData).client_total_cost
|
||||
? `R$ ${(item as HitTranscriptionData).client_total_cost.slice(0, 4)}`
|
||||
{(item as HitTranscriptionData)?.client_total_cost
|
||||
? `R$ ${Number((item as HitTranscriptionData).client_total_cost).toFixed(2)}`
|
||||
: "-"}
|
||||
</TableCell>
|
||||
|
||||
<TableCell>
|
||||
{(item as HitTranscriptionData).client_price
|
||||
? `R$ ${(item as HitTranscriptionData).client_price}`
|
||||
: "-"}
|
||||
</TableCell>
|
||||
<TableCell>
|
||||
{(item as HitTranscriptionData).custo_hit
|
||||
? `$ ${(item as HitTranscriptionData).custo_hit.slice(0, 4)}`
|
||||
{(item as HitTranscriptionData)?.custo_hit
|
||||
? `$ ${Number((item as HitTranscriptionData).custo_hit).toFixed(2)}`
|
||||
: "-"}
|
||||
</TableCell>
|
||||
|
||||
<TableCell>{formatDateTime((item as HitTranscriptionData).start_call || "-")}</TableCell>
|
||||
<TableCell>{formatDateTime((item as HitTranscriptionData).end_call || "-")}</TableCell>
|
||||
<TableCell>{(item as HitTranscriptionData).qtd_token_input || "-"}</TableCell>
|
||||
|
@ -525,10 +527,12 @@ export default function TranscriptionTable() {
|
|||
<TableCell>{(item as ClientTranscriptionData).total_billsec || "-"}</TableCell>
|
||||
<TableCell>{(item as ClientTranscriptionData).total_min || "-"}</TableCell>
|
||||
<TableCell>
|
||||
{(item as ClientTranscriptionData).client_total_cost
|
||||
? `R$ ${(item as ClientTranscriptionData).client_total_cost.slice(0, 4)}`
|
||||
{(item as ClientTranscriptionData)?.client_total_cost
|
||||
? `R$ ${Number((item as ClientTranscriptionData).client_total_cost).toFixed(2)}`
|
||||
: "-"}
|
||||
</TableCell>
|
||||
|
||||
|
||||
</>
|
||||
)}
|
||||
</TableRow>
|
||||
|
|
Loading…
Reference in New Issue