Patch level : 12.0 1098

Files correlati     : li0.exe fp0.exe ve1.exe
Commento        :

Aggiunta la data di protocollo dell'Agenzia delle Entrate sulle lettere d'intento.
Modificati i dati gestionali per le lettere d'intento.
This commit is contained in:
Alessandro Bonazzi 2021-11-28 20:52:11 +01:00
parent 8bb2ebba5b
commit 6cecf68dc8
4 changed files with 10 additions and 10 deletions

@ -90,7 +90,7 @@ void TPAR_mask::load_all_fields()
for (int i = 0;; i++)
{
TString16 caus = ini_get_string(CONFIG_DITTA, "fp", "CAUSALE", "", i);
if (caus.full())
scaus.set_row_cell(S_COD_CAUS, caus);
else
@ -127,7 +127,7 @@ void TPAR_mask::fill()
VECCHIA QUERY
query << "USE " << LF_MOV << " KEY 3 SELECT (BETWEEN(" << MOV_DATAREG << ","
<< dal.date2ansi() << ',' << al.date2ansi() << "))&&(REG!=\"\")"
<< dal.date2ansi() << ',' << al.date2ansi() << "))&&(REG!=\"\")"
<< "\nFROM " << MOV_TIPO << "=C\nTO " << MOV_TIPO "=C";
*/
@ -143,7 +143,7 @@ void TPAR_mask::fill()
//query << "USE " << LF_MOV << " WHERE CODCAUS IN ('A01') AND DATADOC BETWEEN " << dal.date2ansi() << " AND " << al.date2ansi();
TISAM_recordset rec(query);
rec.set_filterfunction(caus_filter);
TProgress_monitor pi(rec.items(), nullptr);
@ -307,7 +307,7 @@ void TPAR_mask::connect_keys()
bool found = false;
// Valori nel db
static TString db_prginv, db_hfatt, db_bfatt;
// Posso avere più di un risulatato, per esempio se effettuo la fatturazione di gennaio potrei avere la fattura 1, 10 e 11 del cliente 100.
for (bool ok = fp_db().sq_set_exec(query); ok && !found; ok = fp_db().sq_next())
{
@ -626,7 +626,6 @@ void TPAR_mask::set_err_paf()
TString err = "Impossibile salvare la regolarizzazione "; err << nreg << "\nVerrà saltata.";
error_box(err);
}
}
else
{

@ -58,7 +58,7 @@ DATE F_DATAEND
BEGIN
PROMPT 50 1 "Data finale "
VALIDATE DATE_CMP_FUNC >= F_DATAINI
WARNING "La data finale non pu essere minore della data iniziale"
WARNING "La data finale non può essere minore della data iniziale"
CHECKTYPE REQUIRED
END
@ -284,4 +284,4 @@ BEGIN
END
ENDPAGE
ENDMASK
ENDMASK

@ -669,7 +669,7 @@ protected:
const TString& descrizione(const TMovimento_contabile& mov, int n_riga) const { return mov.cg()[n_riga].get((RMV_DESCR));}
void save_log() { TReport_book b; b.add(_log); b.export_text(TFilename("fp_err.log"), false, 132); }
void save_log() { TReport_book b; b.add(_log); b.export_text(TFilename("fp_err.log")); }
const TString & natura(const char* codiva) const;
static const char* get_esigibilita_iva(const TMovimento_contabile& Reg);
void set_IVA(TString codiva, TPaf_record& paf) const;

@ -1112,7 +1112,7 @@ bool TDoc_fp::show_log()
TFilename name = "fp_err.log";
b.add(_log);
b.export_text(name, false, 132);
b.export_text(name);
return _log.preview();
}
@ -2196,8 +2196,9 @@ bool TDoc_fp::doc_to_paf(TDocumentoEsteso& doc)
reset(paf2100f);
paf2100f.set("PK_KEYNLINEA", static_cast<long>(riga));
paf2100f.set("PK_KEYNLINAR", _idx_adg_doc_row++);
paf2100f.set("PK_TIPODATO", rif);
paf2100f.set("PK_TIPODATO", "INTENTO");
paf2100f.set("PK_RIFDATO", dichiar);
paf2100f.set("PK_RIFDATA", dataprot);
ok &= paf2100f.insert();
}
riga++;