🚀 Auto-deploy: TrackSteelAPP atualizado em 21/08/2026 19:16:41
This commit is contained in:
@@ -126,8 +126,11 @@ export const ItensRomaneioModal: React.FC<ItensRomaneioModalProps> = ({
|
|||||||
// Agrupar por peça e calcular quantidade disponível
|
// Agrupar por peça e calcular quantidade disponível
|
||||||
const pecasAgrupadas = new Map<string, PecaDisponivel>();
|
const pecasAgrupadas = new Map<string, PecaDisponivel>();
|
||||||
|
|
||||||
apontamentosData?.forEach(apontamento => {
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||||
const pecaId = apontamento.peca.id;
|
(apontamentosData as any[])?.forEach((apontamento: any) => {
|
||||||
|
const pecaId = apontamento.peca?.id;
|
||||||
|
if (!pecaId) return;
|
||||||
|
|
||||||
const quantidade = apontamento.quantidade_produzida || 0;
|
const quantidade = apontamento.quantidade_produzida || 0;
|
||||||
|
|
||||||
if (pecasAgrupadas.has(pecaId)) {
|
if (pecasAgrupadas.has(pecaId)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user