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:
parent
b9b9d1018e
commit
b59a774e03
@ -1454,6 +1454,7 @@ void TContabilizzazione_app::calc_pagament()
|
|||||||
TRectype& head = _movimento->lfile().curr();
|
TRectype& head = _movimento->lfile().curr();
|
||||||
TString16 codpag(head.get(MOV_CODPAG));
|
TString16 codpag(head.get(MOV_CODPAG));
|
||||||
TString16 data(_doc->get("DATAINSC"));
|
TString16 data(_doc->get("DATAINSC"));
|
||||||
|
if (data.empty()) data = _doc->get("DATADOC");
|
||||||
_pagamento = new TPagamento(codpag, data);
|
_pagamento = new TPagamento(codpag, data);
|
||||||
real totspese = _doc->spese();
|
real totspese = _doc->spese();
|
||||||
real totimposte = _doc->imposta();
|
real totimposte = _doc->imposta();
|
||||||
|
@ -196,6 +196,7 @@ void TDocumentoEsteso::scadenze_recalc()
|
|||||||
_scadenze_current = -1;
|
_scadenze_current = -1;
|
||||||
TString16 codpag(head().get("CODPAG"));
|
TString16 codpag(head().get("CODPAG"));
|
||||||
TString16 data(head().get("DATAINSC"));
|
TString16 data(head().get("DATAINSC"));
|
||||||
|
if (data.empty()) data = head().get("DATADOC");
|
||||||
TPagamento pag( codpag, data);
|
TPagamento pag( codpag, data);
|
||||||
real totspese = tot_spese();
|
real totspese = tot_spese();
|
||||||
real totimposte = tot_imposte();
|
real totimposte = tot_imposte();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user