diff --git a/ve/ve6100.cpp b/ve/ve6100.cpp index 739b37429..32d850547 100755 --- a/ve/ve6100.cpp +++ b/ve/ve6100.cpp @@ -1495,7 +1495,9 @@ void TContabilizzazione_app::calc_pagament() { TRectype& head = _movimento->lfile().curr(); TString16 codpag(head.get(MOV_CODPAG)); - TString16 data(_doc->get("DATAINSC")); + TString16 data(_doc->get("DATAINSC"));// Il costruttore di TPagamento vuole un const char * + // Se la data di scadenza non e' compilata prende quella del documento + if (data.empty()) data = _doc->get("DATAINSC"); _pagamento = new TPagamento(codpag, data); real totspese = _doc->spese(); real totimposte = _doc->imposta(); @@ -1596,7 +1598,7 @@ error_type TContabilizzazione_app::write_scadenze() const TString abipr(_doc->get("CODABIP")), cabpr(_doc->get("CODCABP")), abi(_doc->get("CODABIA")), - cab(_doc->get("CODCABP")); + cab(_doc->get("CODCABA")); partita.elimina_rata(-1); // Elimina tutte le rate eventuali