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
|
||||
enable(DLG_OK);
|
||||
#else
|
||||
enable(DLG_OK, filter_selected != "X" && filter_selected != "P");
|
||||
enable(DLG_OK, false);
|
||||
#endif
|
||||
|
||||
// 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)
|
||||
{
|
||||
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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user