fix: removido kg do interior da barra, correcao de foreign keys no relatorio de pecas e multiplos botoes fechar na modal

This commit is contained in:
2026-09-02 19:40:42 +00:00
parent cf0c6cd657
commit 4fe116a9c0
3 changed files with 4 additions and 10 deletions
@@ -319,7 +319,7 @@ export const ApontamentoDiarioChart = () => {
> >
{alturaPixels > 20 && ( {alturaPixels > 20 && (
<span className="transform rotate-90 whitespace-nowrap"> <span className="transform rotate-90 whitespace-nowrap">
{Math.round(ofData.peso).toLocaleString('pt-BR')} Kg {Math.round(ofData.peso).toLocaleString('pt-BR')}
</span> </span>
)} )}
</div> </div>
@@ -47,14 +47,8 @@ export const RelatorioPecasProcessoModal: React.FC<RelatorioPecasProcessoModalPr
<Dialog open={isOpen} onOpenChange={onClose}> <Dialog open={isOpen} onOpenChange={onClose}>
<DialogContent className="max-w-6xl max-h-[90vh] overflow-y-auto bg-card border-border"> <DialogContent className="max-w-6xl max-h-[90vh] overflow-y-auto bg-card border-border">
<DialogHeader> <DialogHeader>
<DialogTitle className="flex items-center justify-between text-card-foreground"> <DialogTitle className="text-card-foreground">
<span>Relatório de Peças por Processo</span> Relatório de Peças por Processo
<button
onClick={onClose}
className="rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2"
>
<X className="h-4 w-4" />
</button>
</DialogTitle> </DialogTitle>
</DialogHeader> </DialogHeader>
+1 -1
View File
@@ -94,7 +94,7 @@ export const useRelatorioPecasProcesso = (ofNumber: string) => {
peca_id, peca_id,
processo_id, processo_id,
quantidade_produzida, quantidade_produzida,
processos_fabricacao!inner(nome) processos_fabricacao!apontamentos_producao_processo_id_fkey(nome)
`) `)
.eq('of_number', ofNumber) .eq('of_number', ofNumber)
.in('peca_id', pecaIds); .in('peca_id', pecaIds);