diff --git a/src/cg/cg2102.cpp b/src/cg/cg2102.cpp index 0216fa8aa..cc6cedf33 100755 --- a/src/cg/cg2102.cpp +++ b/src/cg/cg2102.cpp @@ -660,11 +660,14 @@ bool TPrimanota_application::cg_handler(TMask_field& f, KEY k) if (!importo.is_zero()) { TBill c(r, 2, 0x1); + if (!c.ok()) return f.error_box(FR("Il conto della riga %d non è completo"), i+1); if (m.insert_mode() && c.sospeso()) return f.error_box(FR("Il conto della riga %d è sospeso"), i+1); + TBill co(r, 9, 0x1); + if (!co.empty() && !co.ok()) { const bool ok = f.yesno_box(FR("La contropartita della riga %d non è completa:\n" diff --git a/src/cg/cg4304.cpp b/src/cg/cg4304.cpp index d361e71d2..4a6e23255 100755 --- a/src/cg/cg4304.cpp +++ b/src/cg/cg4304.cpp @@ -2429,7 +2429,7 @@ void TLiquidazione_app::set_grand_2000(_DescrItem& d, int &rw) } if (_month == 13) - cre_deb_per += versamenti + TLiquidazione_app::credito_utilizzato_IVA(13); + cre_deb_per += versamenti - TLiquidazione_app::credito_utilizzato_IVA(13); print_importo(rw++, TR("IVA dovuta o a credito per il periodo"), cre_deb_per + corr_acc); diff --git a/src/cg/dir18.xml b/src/cg/dir18.xml deleted file mode 100644 index f40a46de7..000000000 --- a/src/cg/dir18.xml +++ /dev/null @@ -1,4 +0,0 @@ - - - - \ No newline at end of file