Aggiunto controllo sulla data inizio scadenza: in caso essa sia vuota

prende la data documento.


git-svn-id: svn://10.65.10.50/trunk@3836 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
guy 1996-10-28 13:00:12 +00:00
parent b9b9d1018e
commit b59a774e03
2 changed files with 2 additions and 0 deletions

View File

@ -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();

View File

@ -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();