diff --git a/cg/cg3700.cpp b/cg/cg3700.cpp index 9c15dd00c..73362262a 100755 --- a/cg/cg3700.cpp +++ b/cg/cg3700.cpp @@ -141,7 +141,7 @@ bool TLista_fatture::filter_func1(const TRelation *r) { real percind; const int tipodet = get_tipodet_from_rmi(riv, mov, percind); - if (tipodet == 0 || percind.is_zero()) + if (riv.get(RMI_TIPODET).blank() || percind.is_zero()) return false; const int tiporeg = a.tiporeg(rg);