Telefone é outro campo no detalhe do recibo.
[cascardo/declara.git] / lib / gera.c
index 5bc6075..a6aaa01 100644 (file)
@@ -697,8 +697,12 @@ static void gera_recibodetalhe(struct declaracao *dec, FILE *f)
        fprintf(f, "%-100.100s", ""); /* FILLER */
        fprintf(f, "%-4.4s", ""); /* FILLER */
        fprintf(f, "%-8.8s", ""); /* FILLER */
-       fprintf(f, "%-4.4s", dec->contribuinte.ddd ?: "");
-       fprintf(f, "%-9.9s", dec->contribuinte.telefone ?: "");
+       if (dec->ano >= 2018) {
+               fprintf(f, "%-13.13s", "");
+       } else {
+               fprintf(f, "%-4.4s", dec->contribuinte.ddd ?: "");
+               fprintf(f, "%-9.9s", dec->contribuinte.telefone ?: "");
+       }
        fprintf(f, "%s", dec->retifica ? "S" : "N"); /* Retificadora */
        fprintf(f, "%013lld", totais_get(dec, "RENDTRIB")); /* Total tributavel */
        fprintf(f, "%013lld", dec->devido); /* Imposto devido */