Breadcrumbs

Consultar Ajustes e cancelamentos nas operações de transporte

Introdução

Consultar ajustes e cancelamentos nas operações de transporte.

Passo a passo

–Ajuste de Operação Select * from tbAjusteParcela ap join tbParcelaCarta pc on pc.id = ap.parcelaId join tbCartaFrete cf on cf.id = pc.cartaFreteId where cf.contratanteId = xxx and ap.dataAjuste between 'xxxx-xx-xx 00:00:00' and 'xxxx-xx-xx 23:59:59' and dataEmissao <= 'xxxx-xx-xx'

–Cancelamento de operação de transporte select * from tbCancelamentoOperacaoTransporte ct join tbCartaFrete cf on cf.id = ct.cartaFreteId where contratanteId = xxx and dataEmissao between 'xxxx-xx-xx 00:00:00' and 'xxxx-xx-xx 23:59:59' and dataCancelamento >= 'xxxx-xx-xx'

Outras informações

Fonte: Emerson Sutil