From 6f4d8ba60750cbb084e0457b4fed9e215a37c55f Mon Sep 17 00:00:00 2001 From: villa Date: Thu, 19 Jan 1995 10:00:40 +0000 Subject: [PATCH] Cast e putipu' per colpa di UNIX git-svn-id: svn://10.65.10.50/trunk@881 c028cbd2-c16b-5b4b-a496-9718f37d4682 --- cg/cg4300.cpp | 7 ++++--- cg/cg4304.cpp | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/cg/cg4300.cpp b/cg/cg4300.cpp index 36e1ee3a8..edeca4ea8 100755 --- a/cg/cg4300.cpp +++ b/cg/cg4300.cpp @@ -364,8 +364,9 @@ bool TLiquidazione_app::ch_year_handler(TMask_field& f, KEY key) app().begin_wait(); app().set_year(f.get()); app().build_nomiditte(); - // TBI rivedi per chiamata da deleghe o acconto ************* - app().build_ditte_sheet((wht)atoi(f.mask().get(CG43_RDB_VERS))); + app().build_ditte_sheet(f.mask().source_file() == "cg4300a.msk" ? + (wht)atoi(f.mask().get(CG43_RDB_VERS)) : + all); app().end_wait(); } return TRUE; @@ -480,7 +481,7 @@ bool TLiquidazione_app::what_freq_handler(TMask_field& f, KEY key) { if (key == K_SPACE && f.dirty()) { - if (*(f.get()) == '3') // trimestre intelligente + if (f.get()[0] == '3') // trimestre intelligente { int month = f.mask().get_int(CG43_LST_MESE); if (month > 3) diff --git a/cg/cg4304.cpp b/cg/cg4304.cpp index fde34198b..2487da937 100755 --- a/cg/cg4304.cpp +++ b/cg/cg4304.cpp @@ -1030,7 +1030,7 @@ void TLiquidazione_app::set_grand(_DescrItem& d) } // debito liq. precedente < 50000 - if (d._r10 > real(0.0)) + if (d._r10 > ZERO) { rd += d._r10; set_row(rw++,"@11gDebito da liquidazione precedente@75g%r", &(d._r10));