diff --git a/ve/ve6100.cpp b/ve/ve6100.cpp index 411161a05..5b6a0814f 100755 --- a/ve/ve6100.cpp +++ b/ve/ve6100.cpp @@ -1454,6 +1454,7 @@ void TContabilizzazione_app::calc_pagament() TRectype& head = _movimento->lfile().curr(); TString16 codpag(head.get(MOV_CODPAG)); TString16 data(_doc->get("DATAINSC")); + if (data.empty()) data = _doc->get("DATADOC"); _pagamento = new TPagamento(codpag, data); real totspese = _doc->spese(); real totimposte = _doc->imposta(); diff --git a/ve/velib02.cpp b/ve/velib02.cpp index 4708bd241..2f84df7ce 100755 --- a/ve/velib02.cpp +++ b/ve/velib02.cpp @@ -196,6 +196,7 @@ void TDocumentoEsteso::scadenze_recalc() _scadenze_current = -1; TString16 codpag(head().get("CODPAG")); TString16 data(head().get("DATAINSC")); + if (data.empty()) data = head().get("DATADOC"); TPagamento pag( codpag, data); real totspese = tot_spese(); real totimposte = tot_imposte();