Patch level : 12.0 1008
Files correlati : fp0.exe Tutti i profili di inserimento documenti Commento : Corretta esportazione dell'Identificativo fiscale per i clienti Extra-EU (es. cliente CN (cinese)) Corretta visualizzazione tipo documento sdi nell'invio fatture Nei profili documento rimosso checkbox Invio XML Interno : bisogna rigenerare tutti i profili di immissione documento personalizzati
This commit is contained in:
parent
f865d7a165
commit
05a6405cad
@ -461,13 +461,10 @@ bool TAnagrafica::init(const TRectype& rec)
|
||||
}
|
||||
|
||||
// Assegno codice fiscale e partita IVA se validi, altrimenti mantengo quelli dell'anagrafica
|
||||
if (rec.get(CLI_COFI).full())
|
||||
_cofi = rec.get(CLI_COFI);
|
||||
if (rec.get(CLI_PAIV).full())
|
||||
{
|
||||
_paiv = rec.get(CLI_PAIV);
|
||||
_stato_paiv = rec.get(CLI_STATOPAIV);
|
||||
}
|
||||
|
||||
_cofi = rec.get(CLI_COFI);
|
||||
_paiv = rec.get(CLI_PAIV);
|
||||
_stato_paiv = rec.get(CLI_STATOPAIV);
|
||||
|
||||
if (_allegato != 5 && _allegato != 9)
|
||||
{
|
||||
|
@ -151,17 +151,10 @@ void TPA_mask::fill()
|
||||
const TDate al = get(F_DATAEND);
|
||||
TString filter_selected = get(F_FATTSEL);
|
||||
|
||||
#ifdef DBG
|
||||
enable(DLG_OK);
|
||||
enable(DLG_SAVEREC);
|
||||
enable(DLG_FINDREC);
|
||||
enable(DLG_PRINT);
|
||||
#else
|
||||
enable(DLG_OK, filter_selected.empty() || filter_selected == "E");
|
||||
enable(DLG_SAVEREC, (fp_settings().is_f8() && filter_selected == "X") || filter_selected == "D");
|
||||
enable(DLG_FINDREC, filter_selected == "D");
|
||||
enable(DLG_PRINT, _enable_chiave_fixer && filter_selected.empty());
|
||||
#endif
|
||||
|
||||
// Record di controllo per eventuali elaborazioni precedenti
|
||||
TString hfatt(LEN_HFATT), bfatt(LEN_BFATT);
|
||||
@ -221,10 +214,14 @@ void TPA_mask::fill()
|
||||
row.add(rec.get(DOC_ANNO).as_int(), 1);
|
||||
row.add(rec.get(DOC_CODNUM).as_string());
|
||||
row.add(rec.get(DOC_TIPODOC).as_string());
|
||||
if (!rec.get(DOC_TIPODOCSDI).is_empty())
|
||||
row.add(rec.get(DOC_TIPODOCSDI).as_string());
|
||||
|
||||
const TString & tipodoc = rec.get(DOC_TIPODOCSDI).as_string();
|
||||
|
||||
if (tipodoc.full())
|
||||
row.add(tipodoc);
|
||||
else
|
||||
row.add(td.tipo_doc_sdi());
|
||||
|
||||
row.add(rec.get(DOC_NDOC).as_int());
|
||||
row.add(rec.get(DOC_DATADOC).as_date());
|
||||
row.add(rec.get(CFV_CODCF).as_int());
|
||||
|
@ -253,9 +253,10 @@ inline const TString& no_special(char a)
|
||||
|
||||
const TString& tipo_doc_sdi(const TDocumento& doc)
|
||||
{
|
||||
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
|
||||
TString & tipo_doc_sdi = get_tmp_string();
|
||||
|
||||
tipo_doc_sdi = doc.get(DOC_TIPODOCSDI);
|
||||
// Controlli da fare per clienti a cui si corrompe 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;
|
||||
@ -1603,7 +1604,7 @@ bool TDoc_fp::doc_to_paf(TDocumentoEsteso& doc)
|
||||
// </CedentePrestatore>
|
||||
// <CessionarioCommittente>
|
||||
TPaf_record& paf0400f = _paf_container.get_paf("PAF0400F");
|
||||
#ifndef DBG
|
||||
|
||||
TString stato = cliente.stato_partita_IVA();
|
||||
TTable tab_codiso("%SCE");
|
||||
tab_codiso.tab();
|
||||
@ -1641,10 +1642,7 @@ bool TDoc_fp::doc_to_paf(TDocumentoEsteso& doc)
|
||||
else if (piva.full()) // Altrimenti dovrebbe essere nella partita iva
|
||||
paf0400f.set("P4_FISCIVACOD", piva);
|
||||
}
|
||||
#else
|
||||
paf0400f.set("P4_FISCIVAPAESE", "IT");
|
||||
paf0400f.set("P4_FISCIVACOD", "00261170039");
|
||||
#endif
|
||||
|
||||
if (cliente.fisica() && cliente.nome().full())
|
||||
{
|
||||
paf0400f.set("P4_ANANOME", cliente.nome());
|
||||
|
@ -2001,18 +2001,9 @@ X=2
|
||||
Y=1
|
||||
SIZE=40
|
||||
PROMPT="Tipo documento SDI "
|
||||
FIELDNAME=TIPO_SDI
|
||||
FIELDNAME=TIPODOCSDI
|
||||
ITEMS=|@TD01|TD01 Fattura@TD02|TD02 Acconto/Anticipo su fattura@TD03|TD03 Acconto/Anticipo su parcella@TD04|TD04 Nota di credito@TD05|TD05 Nota di debito@TD06|TD06 Parcella@TD16|TD16 Integraz. fatt. rev.ch. interno@TD17|TD17 Integ./autof. acq. servizi estero@TD18|TD18 Integ. acq. beni intracomunitari@TD19|TD19 Integ./autof. acq. beni ex art. 17@TD20|TD20 Autofattura@TD21|TD21 Autofattura per splafonamento@TD22|TD22 Estrazione beni da Deposito IVA@TD23|TD23 Estr. beni Deposito IVA vers. IVA@TD24|TD24 Fatt. differita art.21 c.4 lett. a@TD25|TD25 Fatt. differita art. 21 c.4 per.3 b@TD26|TD26 Cess. beni ammort./passaggi interni@TD27|TD27 Fatt. autoconsumo/cessioni gratuite
|
||||
|
||||
[INVIO_FP]
|
||||
TYPE=T_CHECKBOX
|
||||
GROUP=3100
|
||||
MSKID=F_INVIO_FP
|
||||
X=65
|
||||
Y=1
|
||||
PROMPT="Invio XML"
|
||||
FIELDNAME=INVIO_XML
|
||||
|
||||
[REG_FISCF]
|
||||
TYPE=T_LISTA
|
||||
GROUP=3100
|
||||
|
Loading…
x
Reference in New Issue
Block a user