Patch level : 12.0 704
Files correlati : fp Commento : Aggiunto controllo tipo documento SDI per dati sporchi
This commit is contained in:
parent
b1452306bf
commit
517fa1f6db
@ -124,7 +124,7 @@ void TMancati_mask::fill()
|
|||||||
#ifdef DBG
|
#ifdef DBG
|
||||||
enable(DLG_OK);
|
enable(DLG_OK);
|
||||||
#else
|
#else
|
||||||
enable(DLG_OK, filter_selected != "X" && filter_selected != "P");
|
enable(DLG_OK, false);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Record di controllo per eventuali elaborazioni precedenti
|
// Record di controllo per eventuali elaborazioni precedenti
|
||||||
|
@ -207,7 +207,16 @@ inline const TString& no_special(char a)
|
|||||||
}
|
}
|
||||||
const TString& tipo_doc_sdi(const TDocumento& doc)
|
const TString& tipo_doc_sdi(const TDocumento& doc)
|
||||||
{
|
{
|
||||||
return doc.get(DOC_TIPODOCSDI).full() ? doc.get(DOC_TIPODOCSDI) : doc.tipo().tipo_doc_sdi();
|
static TString tipo_doc_sdi;
|
||||||
|
tipo_doc_sdi.cut(0) << doc.get(DOC_TIPODOCSDI);
|
||||||
|
|
||||||
|
// Controlli da fare per clienti a cui si fotte la conversione e mi trovo dati sporchi nella colonna
|
||||||
|
if (tipo_doc_sdi.len() == 4 && tipo_doc_sdi.starts_with("TD"))
|
||||||
|
{
|
||||||
|
return tipo_doc_sdi;
|
||||||
|
}
|
||||||
|
|
||||||
|
return doc.tipo().tipo_doc_sdi();
|
||||||
}
|
}
|
||||||
|
|
||||||
bool is_fattura(const TRectype& doc)
|
bool is_fattura(const TRectype& doc)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user