diff --git a/src/cg/cg4500.cpp b/src/cg/cg4500.cpp index a3de351d9..742a558a9 100755 --- a/src/cg/cg4500.cpp +++ b/src/cg/cg4500.cpp @@ -143,7 +143,8 @@ bool TAp_eser::apertura_es() cur.freeze(); for (cur = 0L; cur.pos() < items; ++cur) { - if (tabreg.get_int("I0") == 5) + const int tipo = tabreg.get_int("I0"); + if (tipo == 5 || tipo == 10) { TString16 cod(tabreg.get("CODTAB")); @@ -159,7 +160,11 @@ bool TAp_eser::apertura_es() tabreg.put("D3", data); tabreg.zero("R1"); tabreg.zero("R2"); - + if (tipo == 10) + { + tabreg.zero("I3"); + tabreg.zero("I4"); + } reg.write(); } }