Corretti errori MI4313, MI4312.
git-svn-id: svn://10.65.10.50/trunk@3578 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
5b7bd85e60
commit
363a958654
@ -215,11 +215,14 @@ void TStampa_deleghe_IVA::print_distinta()
|
|||||||
|
|
||||||
TPrintrow row;
|
TPrintrow row;
|
||||||
|
|
||||||
|
const bool contofis = _profilo.right(2) == "CF";
|
||||||
if (atol(_azienda))
|
if (atol(_azienda))
|
||||||
row.put(_banche->get("S0"), 0);
|
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("Data @>", 106);
|
||||||
row.put("Pag.@#", 124);
|
row.put("Pag. @#", 124);
|
||||||
printer().setheaderline(0, row);
|
printer().setheaderline(0, row);
|
||||||
|
|
||||||
row.reset();
|
row.reset();
|
||||||
@ -238,7 +241,7 @@ void TStampa_deleghe_IVA::print_distinta()
|
|||||||
case 5:
|
case 5:
|
||||||
t << "integrativa : " << itom(_mese); break;
|
t << "integrativa : " << itom(_mese); break;
|
||||||
default:
|
default:
|
||||||
t << "periodica : " << itom(_mese); break;
|
t = "Periodo: " ; t << itom(_mese); break;
|
||||||
}
|
}
|
||||||
t << ' ' << _anno;
|
t << ' ' << _anno;
|
||||||
row.put(t, TAB_SEDE);
|
row.put(t, TAB_SEDE);
|
||||||
@ -254,12 +257,15 @@ void TStampa_deleghe_IVA::print_distinta()
|
|||||||
row.put("Ditta", TAB_DITTA);
|
row.put("Ditta", TAB_DITTA);
|
||||||
row.put("Sede" , TAB_SEDE);
|
row.put("Sede" , TAB_SEDE);
|
||||||
row.put("Importo", TAB_IMPORTO+8);
|
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);
|
printer().setheaderline(3, row);
|
||||||
|
|
||||||
real totale;
|
real totale;
|
||||||
|
|
||||||
TLocalisamfile& com = _nditte->lfile(LF_COMUNI);
|
TLocalisamfile& com = _nditte->lfile(LF_COMUNI);
|
||||||
|
TLocalisamfile& anag = _nditte->lfile(LF_ANAG);
|
||||||
|
|
||||||
for (int i = 0; i < _ditte->items(); i++)
|
for (int i = 0; i < _ditte->items(); i++)
|
||||||
if (_ditte->checked(i))
|
if (_ditte->checked(i))
|
||||||
@ -278,6 +284,13 @@ void TStampa_deleghe_IVA::print_distinta()
|
|||||||
|
|
||||||
const real imp(real::ita2eng(riga.get(3)));
|
const real imp(real::ita2eng(riga.get(3)));
|
||||||
row.put(imp.string("###.###.###.###"), TAB_IMPORTO);
|
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);
|
printer().print(row);
|
||||||
totale += imp;
|
totale += imp;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user