From b995a67b459035f59a9abf1f2e43e4c0dfc8a968 Mon Sep 17 00:00:00 2001 From: angelo Date: Wed, 24 Apr 1996 16:52:19 +0000 Subject: [PATCH] Aggiunto utilizzo tabella %VER e correzione per leggere LIA e PIM con separatore di TToken_string diverso da |. git-svn-id: svn://10.65.10.50/trunk@2763 c028cbd2-c16b-5b4b-a496-9718f37d4682 --- cg/cg4301.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/cg/cg4301.cpp b/cg/cg4301.cpp index 03fe1a198..b07ff79fd 100755 --- a/cg/cg4301.cpp +++ b/cg/cg4301.cpp @@ -944,7 +944,7 @@ void TLiquidazione_app::recalc_att(int month, const char* codatt) real fcv = _pim->get_real("R14"); /* le porche fatture in ritardo */ - TToken_string fr(_pim->get("S1")); + TToken_string fr(_pim->get("S1"),'!'); real rti(fr.get(0)); real rtv(fr.get(1)); @@ -952,7 +952,7 @@ void TLiquidazione_app::recalc_att(int month, const char* codatt) * la stramadonna dei corrispettivi gia' scorporati * Gli si aggiungono i non incassati, sperando in bene */ - TToken_string cs(_pim->get("S2")); + TToken_string cs(_pim->get("S2"),'!'); real csi(cs.get(0)); real csv(cs.get(1)); /* incrociamm'e dituozz' */ @@ -1309,6 +1309,8 @@ void TLiquidazione_app::write_liq(int month, const char* codatts) TToken_string atts(codatts); const char* tmpatt; + if (_ver->read(atoi(_year),_month)!=NOERR) + warning_box("Errore %d in lettura tabella versamenti ed interessi.",_ver->status()); // evita casino se differita ma si sta ricalcolando il primo // mese con ricalcolo di piu' mesi bool wasdifferita = (_isdifferita && month <= _monthinatt &&