Corretti errori MI4313, MI4312.

git-svn-id: svn://10.65.10.50/trunk@3578 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
angelo 1996-09-13 07:36:05 +00:00
parent 5b7bd85e60
commit 363a958654

View File

@ -215,11 +215,14 @@ void TStampa_deleghe_IVA::print_distinta()
TPrintrow row;
const bool contofis = _profilo.right(2) == "CF";
if (atol(_azienda))
row.put(_banche->get("S0"), 0);
row.put("@bDISTINTA DELEGHE DI VERSAMENTO", TAB_SEDE);
TString hdr("@bDISTINTA DELEGHE DI VERSAMENTO");
if (contofis) hdr << " - CONTO FISCALE";
row.put(hdr, contofis ? TAB_SEDE - 8: TAB_SEDE);
row.put("Data @>", 106);
row.put("Pag.@#", 124);
row.put("Pag. @#", 124);
printer().setheaderline(0, row);
row.reset();
@ -238,7 +241,7 @@ void TStampa_deleghe_IVA::print_distinta()
case 5:
t << "integrativa : " << itom(_mese); break;
default:
t << "periodica : " << itom(_mese); break;
t = "Periodo: " ; t << itom(_mese); break;
}
t << ' ' << _anno;
row.put(t, TAB_SEDE);
@ -254,12 +257,15 @@ void TStampa_deleghe_IVA::print_distinta()
row.put("Ditta", TAB_DITTA);
row.put("Sede" , TAB_SEDE);
row.put("Importo", TAB_IMPORTO+8);
row.put("Note", TAB_NOTE);
if (contofis)
row.put("Conto fiscale", TAB_NOTE); // Colonna per il conto fiscale, alla posizione delle note
row.put("Note", contofis ? TAB_NOTE + 22 : TAB_NOTE);
printer().setheaderline(3, row);
real totale;
TLocalisamfile& com = _nditte->lfile(LF_COMUNI);
TLocalisamfile& anag = _nditte->lfile(LF_ANAG);
for (int i = 0; i < _ditte->items(); i++)
if (_ditte->checked(i))
@ -278,6 +284,13 @@ void TStampa_deleghe_IVA::print_distinta()
const real imp(real::ita2eng(riga.get(3)));
row.put(imp.string("###.###.###.###"), TAB_IMPORTO);
if (contofis)
{
TString cfis(anag.get("UFFCONC"));
if (cfis.empty()) cfis = com.get("UFFCONC");
cfis << " " << anag.get("COFI");
row.put(cfis,TAB_NOTE); // Stampa il conto fiscale alla posizione delle note
}
printer().print(row);
totale += imp;