Rejeição 532

Update para resolver problema provisoriamente da rejeição BASE CALCULO ICMS 

Captura de Tela 2019-04-05 às 10.42.10.png

 

Acesse https://dnet.inovaclick.com.br/sqlbuilder.aspx

update nota_fiscal set base_calculo_icms = (select sum(ni.base_calculo_icms) from nota_fiscal_itens ni where ni.id_nota = :id_nota and ni.cst <> '060'),
valor_icms = (select sum(ni.valor_icms) from nota_fiscal_itens ni where ni.id_nota = :id_nota and ni.cst <> '060')
where id = :id_nota  

Lembrar de alterar todos os ID_NOTA para o id da nota que está com problema 

Exemplo:
update nota_fiscal set
base_calculo_icms = (select sum(ni.base_calculo_icms) from nota_fiscal_itens ni where ni.id_nota = 269667 and ni.cst <> '060'),
valor_icms = (select sum(ni.valor_icms) from nota_fiscal_itens ni where ni.id_nota = 269667 and ni.cst <> '060')
where id = 269667