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:
@@ -319,7 +319,7 @@ export const ApontamentoDiarioChart = () => {
|
||||
>
|
||||
{alturaPixels > 20 && (
|
||||
<span className="transform rotate-90 whitespace-nowrap">
|
||||
{Math.round(ofData.peso).toLocaleString('pt-BR')} Kg
|
||||
{Math.round(ofData.peso).toLocaleString('pt-BR')}
|
||||
</span>
|
||||
)}
|
||||
</div>
|
||||
|
||||
@@ -47,14 +47,8 @@ export const RelatorioPecasProcessoModal: React.FC<RelatorioPecasProcessoModalPr
|
||||
<Dialog open={isOpen} onOpenChange={onClose}>
|
||||
<DialogContent className="max-w-6xl max-h-[90vh] overflow-y-auto bg-card border-border">
|
||||
<DialogHeader>
|
||||
<DialogTitle className="flex items-center justify-between text-card-foreground">
|
||||
<span>Relatório de Peças por Processo</span>
|
||||
<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 className="text-card-foreground">
|
||||
Relatório de Peças por Processo
|
||||
</DialogTitle>
|
||||
</DialogHeader>
|
||||
|
||||
|
||||
@@ -94,7 +94,7 @@ export const useRelatorioPecasProcesso = (ofNumber: string) => {
|
||||
peca_id,
|
||||
processo_id,
|
||||
quantidade_produzida,
|
||||
processos_fabricacao!inner(nome)
|
||||
processos_fabricacao!apontamentos_producao_processo_id_fkey(nome)
|
||||
`)
|
||||
.eq('of_number', ofNumber)
|
||||
.in('peca_id', pecaIds);
|
||||
|
||||
Reference in New Issue
Block a user