Aggiunto controllo sulla data inizio scadenza e corretto il nome
del campo per i codici ABI/CAB git-svn-id: svn://10.65.10.50/trunk@4414 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
b82a5292a2
commit
24987e3bbb
@ -1495,7 +1495,9 @@ 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"));// 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);
|
_pagamento = new TPagamento(codpag, data);
|
||||||
real totspese = _doc->spese();
|
real totspese = _doc->spese();
|
||||||
real totimposte = _doc->imposta();
|
real totimposte = _doc->imposta();
|
||||||
@ -1596,7 +1598,7 @@ error_type TContabilizzazione_app::write_scadenze()
|
|||||||
const TString abipr(_doc->get("CODABIP")),
|
const TString abipr(_doc->get("CODABIP")),
|
||||||
cabpr(_doc->get("CODCABP")),
|
cabpr(_doc->get("CODCABP")),
|
||||||
abi(_doc->get("CODABIA")),
|
abi(_doc->get("CODABIA")),
|
||||||
cab(_doc->get("CODCABP"));
|
cab(_doc->get("CODCABA"));
|
||||||
|
|
||||||
|
|
||||||
partita.elimina_rata(-1); // Elimina tutte le rate eventuali
|
partita.elimina_rata(-1); // Elimina tutte le rate eventuali
|
||||||
|
Loading…
x
Reference in New Issue
Block a user