Merge branch 'R_10_00' of http://10.65.20.33/sirio/CAMPO/campo into R_10_00

This commit is contained in:
Mattia Tollari 2019-03-06 15:56:08 +01:00
commit d273645f03
6 changed files with 90 additions and 49 deletions

3
cd/test/fp0722.txt Normal file
View File

@ -0,0 +1,3 @@
fp0.exe
Corretta lettura codice IVA incasso

19
cd/test/fp0722a.ini Normal file
View File

@ -0,0 +1,19 @@
[Main]
Demo=0
[fp1]
File(0) = fp0.exe|X
Patch = 0722
Versione = 21511200
[fp]
Data = 06-03-2019
Descrizione = Fattura Elettronica
Dischi = 1
Moduli = cg,ve
OEM =
Patch = 722
PostProcess =
PreProcess =
Versione = 21511200

BIN
cd/test/fp0722a1.zip Normal file

Binary file not shown.

View File

@ -166,12 +166,16 @@ void TPassive_mask::aggiungi_riga(TLocalisamfile& clifo, TSheet_field& sf, TShee
const TString paa_codpaese = fp_db().sq_get("COD_PAESE"); const TString paa_codpaese = fp_db().sq_get("COD_PAESE");
const TString paa_codsdi = fp_db().sq_get("COD_SDI"); const TString paa_codsdi = fp_db().sq_get("COD_SDI");
TString prot = fp_db().sq_get("TIPO_PROT"); TString prot = fp_db().sq_get("TIPO_PROT");
TString filter_elab = get(F_FATTSEL);
TToken_string& row = sf.row(-1); TToken_string& row = sf.row(-1);
clifo.zero(); clifo.zero();
clifo.put(CLI_TIPOCF, 'F'); clifo.put(CLI_TIPOCF, 'F');
forn_code = find_fornitore(clifo);
if( filter_elab.blank() && forn_code != 0 || filter_elab == "E" && forn_code == 0 || filter_elab == "A")
{
if (denom.blank()) { if (denom.blank()) {
denom = fp_db().sq_get("NOME"); denom = fp_db().sq_get("NOME");
denom << " " << fp_db().sq_get("COGNOME"); denom << " " << fp_db().sq_get("COGNOME");
@ -187,7 +191,6 @@ void TPassive_mask::aggiungi_riga(TLocalisamfile& clifo, TSheet_field& sf, TShee
row.add(fp_db().sq_get("TOT_DOC")); row.add(fp_db().sq_get("TOT_DOC"));
// Dopo aver fatto le ricerche se lo trovo lo segno e lo aggiungo, se no coloro la cella // Dopo aver fatto le ricerche se lo trovo lo segno e lo aggiungo, se no coloro la cella
forn_code = find_fornitore(clifo);
TString forn_str; forn_str << forn_code; TString forn_str; forn_str << forn_code;
TString nr_row; nr_row << sf.items(); TString nr_row; nr_row << sf.items();
_forn_code.add(forn_str); _forn_code.add(forn_str);
@ -220,6 +223,8 @@ void TPassive_mask::aggiungi_riga(TLocalisamfile& clifo, TSheet_field& sf, TShee
row.add(key_prot); row.add(key_prot);
} }
}
void TPassive_mask::aggiungi_prot() const void TPassive_mask::aggiungi_prot() const
{ {
TSheet_field& sf_prot = sfield(F_PROT); TSheet_field& sf_prot = sfield(F_PROT);
@ -539,9 +544,13 @@ bool TPassive_mask::on_field_event(TOperable_field& o, TField_event e, long joll
break; break;
case F_DATAINI: case F_DATAINI:
if (e == fe_init) if (e == fe_init)
o.set(ini_get_string(CONFIG_DITTA, "fp", "LastXML", "01-01-2019")); {
else if (e == fe_close) TDate inizio_mese = TDate(TODAY); inizio_mese.set_day(1);
ini_set_string(CONFIG_DITTA, "fp", "LastXML", o.get()); o.set(inizio_mese);
//o.set(ini_get_string(CONFIG_DITTA, "fp", "LastXML", "01-01-2019"));
}
//else if (e == fe_close)
// ini_set_string(CONFIG_DITTA, "fp", "LastXML", o.get());
break; break;
case F_DATAEND: case F_DATAEND:
if (e == fe_init) if (e == fe_init)

View File

@ -2,6 +2,7 @@
#define F_DATAINI 501 #define F_DATAINI 501
#define F_DATAEND 502 #define F_DATAEND 502
#define F_SAVEFOR 503 #define F_SAVEFOR 503
#define F_FATTSEL 504
#define END_MASK 599 #define END_MASK 599

View File

@ -48,6 +48,15 @@ BEGIN
CHECKTYPE REQUIRED CHECKTYPE REQUIRED
END END
RADIOBUTTON F_FATTSEL 3 80
BEGIN
PROMPT 1 2 "Fatture da visualizzare"
ITEM "|Non elaborate"
ITEM "E|Elaborate"
ITEM "A|Tutte"
FLAGS "Z"
END
SPREADSHEET F_PROT 25 10 SPREADSHEET F_PROT 25 10
BEGIN BEGIN
PROMPT 1 6 "Selezionare o aggiungere un filtro sul Tipo Progressivo" PROMPT 1 6 "Selezionare o aggiungere un filtro sul Tipo Progressivo"